You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2023/01/03 03:41:59 UTC

[GitHub] [skywalking-rust] jmjoy commented on a diff in pull request #50: Add authentication and custom intercept support.

jmjoy commented on code in PR #50:
URL: https://github.com/apache/skywalking-rust/pull/50#discussion_r1060262166


##########
README.md:
##########
@@ -144,6 +144,8 @@ async fn handle_metric(mut metricer: Metricer) {
 async fn main() -> Result<(), Box<dyn Error>> {
     // Connect to skywalking oap server.
     let reporter = GrpcReporter::connect("http://0.0.0.0:11800").await?;
+    // Optional authentication, based on backend setting.
+    let reporter = reporter.with_authentication("<TOKEN>");

Review Comment:
   @wu-sheng The authentication feature is described in the example.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org