Slackbot
10/26/2021, 9:07 AMAnkit Nayan
Ankit Nayan
main.go
with attached file, I was able to receive traces. Hope it helps!Ankit Nayan
tp := initTracer()
// tp := config.Init()
Ankit Nayan
initTracer()
function as given in docsAnkit Nayan
Davide Fastoso
10/26/2021, 1:32 PMAnkit Nayan
otlptracegrpc
in the shared file https://files.slack.com/files-pri/T01HWUTP0LT-F02JVMYJMP0/main.goAnkit Nayan
Davide Fastoso
10/27/2021, 7:35 AMs := grpc.NewServer(
grpc.UnaryInterceptor(otelgrpc.UnaryServerInterceptor()),
grpc.StreamInterceptor(otelgrpc.StreamServerInterceptor()),
)
api.RegisterHelloServiceServer(s, &server{})
the last row what id does ?
To be specific , my API implement as signature just an http.ResponseWriter and Request, how can i intercept them with grpc and how can i integrate them within my gorilla mux route ?Ankit Nayan
api.RegisterHelloServiceServer(s, &server{})
this is specific to grpc. Are you using http server or grpc server in your application? How do you create your server in application?
Also, does the If you are using gorillamux:
section at https://signoz.io/docs/instrumentation/golang/ not work? Otel has specific middleware for gorillamuxDavide Fastoso
10/27/2021, 8:31 AMDavide Fastoso
10/27/2021, 8:31 AM