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
@@ -10,7 +10,7 @@ import (
)
func (b *APIBuilder) evalAllFlagsStatic(ctx context.Context, isAuthedUser bool, w http.ResponseWriter) {
_, span := tracer.Start(ctx, "ofrep.static.evalAllFlags")
_, span := tracing.Start(ctx, "ofrep.static.evalAllFlags")
defer span.End()
result, err := b.staticEvaluator.EvalAllFlags(ctx)
@@ -40,7 +40,7 @@ func (b *APIBuilder) evalAllFlagsStatic(ctx context.Context, isAuthedUser bool,
}
func (b *APIBuilder) evalFlagStatic(ctx context.Context, flagKey string, w http.ResponseWriter) {
_, span := tracer.Start(ctx, "ofrep.static.evalFlag")
_, span := tracing.Start(ctx, "ofrep.static.evalFlag")
defer span.End()
span.SetAttributes(attribute.String("flag_key", flagKey))