fixup! Add draft of tracing package.

This commit is contained in:
2024-06-20 00:27:18 +01:00
parent 934bddae1b
commit fe34a03eb8
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ func TraceContextExtract(ctx context.Context, traceContext map[string]string) co
func StartSpanFromContext(ctx context.Context, operationName string) (context.Context, oteltrace.Span) {
tr := otel.GetTracerProvider().Tracer("")
return tr.Start(ctx, operationName, oteltrace.WithSpanKind(oteltrace.SpanKindInternal))
return tr.Start(ctx, operationName, oteltrace.WithSpanKind(oteltrace.SpanKindServer))
}
func ContinueSpanFromContext(ctx context.Context, operationName string) (context.Context, oteltrace.Span) {