Skip to content

Commit 3ee1365

Browse files
authored
Allow using no-context propagation and make sure tracecontext is not always used (#247)
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 594f3ae commit 3ee1365

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: javaagent-core/src/main/java/org/hypertrace/agent/core/config/EnvironmentConfig.java

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public static AgentConfig.Builder applyPropertiesAndEnvVars(AgentConfig.Builder
7373
private static void applyPropagationFormat(AgentConfig.Builder builder) {
7474
String propagationFormats = getProperty(PROPAGATION_FORMATS);
7575
if (propagationFormats != null) {
76+
builder.clearPropagationFormats();
7677
String[] formats = propagationFormats.split(",");
7778
for (String format : formats) {
7879
builder.addPropagationFormats(PropagationFormat.valueOf(format));

0 commit comments

Comments
 (0)