replace go.opencensus.io with opentelemetry

This commit is contained in:
A.Unger
2021-08-09 15:52:06 +02:00
parent 43a97f6bac
commit 0eb403d658
4 changed files with 79 additions and 74 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ var propagator = propagation.NewCompositeTextMapPropagator(
propagation.TraceContext{},
)
// LogTrace unpacks the request context looking for an existing trace id.
// LogTrace Sets the initial trace in the ocs service.
func LogTrace(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx, span := ocstracing.TraceProvider.Tracer("ocs").Start(r.Context(), r.URL.Path)