-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...mule-4/src/main/java/datadog/trace/instrumentation/mule4/AbstractMuleInstrumentation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package datadog.trace.instrumentation.mule4; | ||
|
||
import datadog.trace.agent.tooling.InstrumenterModule; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public abstract class AbstractMuleInstrumentation extends InstrumenterModule.Tracing { | ||
public AbstractMuleInstrumentation() { | ||
super("mule"); | ||
} | ||
|
||
@Override | ||
protected boolean defaultEnabled() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public Map<String, String> contextStore() { | ||
final Map<String, String> contextStore = new HashMap<>(); | ||
contextStore.put("org.mule.runtime.api.event.EventContext", packageName + ".SpanState"); | ||
contextStore.put( | ||
"org.mule.runtime.tracer.api.span.info.InitialSpanInfo", | ||
"org.mule.runtime.api.component.Component"); | ||
return contextStore; | ||
} | ||
|
||
@Override | ||
public String[] helperClassNames() { | ||
return new String[] { | ||
packageName + ".MuleDecorator", | ||
packageName + ".DDEventTracer", | ||
packageName + ".SpanState", | ||
packageName + ".NoopMuleSpan", | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters