Skip to content

Commit

Permalink
fix contextstore access
Browse files Browse the repository at this point in the history
  • Loading branch information
amarziali committed Jul 2, 2024
1 parent b1385ac commit 92b2ee8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import datadog.trace.agent.tooling.InstrumenterModule;
import datadog.trace.bootstrap.instrumentation.api.AgentSpan;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public abstract class AbstractTibcoInstrumentation extends InstrumenterModule.Tracing {
Expand All @@ -17,7 +17,11 @@ protected boolean defaultEnabled() {

@Override
public Map<String, String> contextStore() {
return Collections.singletonMap("com.tibco.pvm.api.PmWorkUnit", AgentSpan.class.getName());
Map<String, String> stores = new HashMap<>();
stores.put("com.tibco.pvm.api.PmWorkUnit", AgentSpan.class.getName());
stores.put(
"com.tibco.bw.jms.shared.api.receive.JMSMessageCallBackHandler", String.class.getName());
return stores;
}

@Override
Expand Down

0 comments on commit 92b2ee8

Please sign in to comment.