Skip to content

Commit f282f43

Browse files
fix: Add provider name attribute to beforeEvaluationInternal
Restored SEMCONV_FEATURE_FLAG_PROVIDER_NAME attribute in beforeEvaluationInternal that was accidentally removed. The provider name should be included in both the span attributes (beforeEvaluationInternal) and event attributes (afterEvaluation). Addresses PR feedback from tanderson-ld and kinyoklion. Co-Authored-By: rlamb@launchdarkly.com <rlamb@launchdarkly.com>
1 parent 05961de commit f282f43

File tree

1 file changed

+1
-0
lines changed
  • lib/java-server-sdk-otel/src/main/java/com/launchdarkly/integrations

1 file changed

+1
-0
lines changed

lib/java-server-sdk-otel/src/main/java/com/launchdarkly/integrations/TracingHook.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Map<String, Object> beforeEvaluationInternal(Tracer tracer, EvaluationSeriesCont
6161

6262
AttributesBuilder attrBuilder = Attributes.builder();
6363
attrBuilder.put(SEMCONV_FEATURE_FLAG_KEY, seriesContext.flagKey);
64+
attrBuilder.put(SEMCONV_FEATURE_FLAG_PROVIDER_NAME, PROVIDER_NAME);
6465
attrBuilder.put(SEMCONV_FEATURE_FLAG_CONTEXT_ID, seriesContext.context.getFullyQualifiedKey());
6566
builder.setAllAttributes(attrBuilder.build());
6667
Span span = builder.startSpan();

0 commit comments

Comments
 (0)