Skip to content

Commit 6f3786d

Browse files
authored
Java Agent Migration - add steps for shim and classpath (#39)
* add step to migration to add shim and update classpath * md formatting
1 parent 1ed6248 commit 6f3786d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

migration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ distribution of Splunk Distribution of OpenTelemetry Java Instrumentation:
4646
setting.
4747
4. In your application startup script, replace `-javaagent:./signalfx-tracing.jar`
4848
with `-javaagent:/path/to/splunk-otel-javaagent-all.jar`.
49+
5. If you manually instrumented any code with an OpenTracing tracer, expose
50+
the OpenTelemetry tracer as an implementation of an OpenTracing tracer with
51+
the OpenTracing Shim. For more information, see
52+
[OpenTelemetry - OpenTracing Shim](https://github.com/open-telemetry/opentelemetry-java/tree/master/opentracing-shim).
53+
If you use another API for manual instrumentation, such as for the `@Trace`
54+
annotation in the SignalFx Java Agent, ensure it's in your application's
55+
`classpath` as well. For an example of what this looks like, see this
56+
[SignalFx Java Agent example application](https://github.com/signalfx/tracing-examples/blob/master/signalfx-tracing/signalfx-java-tracing/okhttp-and-jedis/src/main/java/com/signalfx/tracing/examples/javaagent/App.java).
4957

5058
## Changes in functionality
5159

0 commit comments

Comments
 (0)