Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public void onStart(Context parentContext, ReadWriteSpan span) {
if (propagationData != null) {
span.setAttribute(propagationDataKey, propagationData);
}
span.setAttribute(AwsAttributeKeys.AWS_TRACE_FLAG_SAMPLED, span.getSpanContext().isSampled());
}

private boolean isConsumerKind(ReadableSpan span) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ private AwsAttributeKeys() {}
static final AttributeKey<Boolean> AWS_TRACE_FLAG_SAMPLED =
AttributeKey.booleanKey("aws.trace.flag.sampled");

static final AttributeKey<String> AWS_XRAY_SAMPLING_RULE =
AttributeKey.stringKey("aws.xray.sampling_rule");

// use the same AWS Resource attribute name defined by OTel java auto-instr for aws_sdk_v_1_1
// TODO: all AWS specific attributes should be defined in semconv package and reused cross all
// otel packages. Related sim -
Expand Down
Loading