OpenFeature: Fix instrumentation in OFREP API (#112845)

OpenFeature: Fix instrumentation in ofrep api
This commit is contained in:
Tania
2025-10-23 10:09:41 +00:00
committed by GitHub
parent 876bfeb9ad
commit 82e5b81a30
3 changed files with 15 additions and 19 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import (
)
func (b *APIBuilder) proxyAllFlagReq(ctx context.Context, isAuthedUser bool, w http.ResponseWriter, r *http.Request) {
ctx, span := tracer.Start(ctx, "ofrep.proxy.evalAllFlags")
ctx, span := tracing.Start(ctx, "ofrep.proxy.evalAllFlags")
defer span.End()
r = r.WithContext(ctx)
@@ -70,7 +70,7 @@ func (b *APIBuilder) proxyAllFlagReq(ctx context.Context, isAuthedUser bool, w h
}
func (b *APIBuilder) proxyFlagReq(ctx context.Context, flagKey string, isAuthedUser bool, w http.ResponseWriter, r *http.Request) {
ctx, span := tracer.Start(ctx, "ofrep.proxy.evalFlag")
ctx, span := tracing.Start(ctx, "ofrep.proxy.evalFlag")
defer span.End()
r = r.WithContext(ctx)