Skip to content

Commit 17dd1b8

Browse files
author
Anuraag Agrawal
committed
Set experimental attributes on by default
1 parent 5d2e5b8 commit 17dd1b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsAgentProperties.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
package software.amazon.opentelemetry.javaagent.providers;
1717

1818
import io.opentelemetry.javaagent.spi.config.PropertySource;
19-
import java.util.Collections;
19+
import java.util.HashMap;
2020
import java.util.Map;
2121

2222
public class AwsAgentProperties implements PropertySource {
2323
@Override
2424
public Map<String, String> getProperties() {
25-
return Collections.singletonMap("otel.propagators", "xray,tracecontext,b3,b3multi");
25+
Map<String, String> properties = new HashMap<>();
26+
properties.put("otel.propagators", "xray,tracecontext,b3,b3multi");
27+
properties.put("otel.instrumentation.aws-sdk.experimental-span-attributes", "true");
28+
return properties;
2629
}
2730
}

0 commit comments

Comments
 (0)