Replies: 1 comment 4 replies
-
Hi @pwfarwell . The opentelemetry-java project does have an InMemorySpanExporter, but it's a testing artifact, not something intended for use in production code. First question: are you using the OpenTelemetry javaagent, or are you doing all manual instrumentation? I'm a little confused about what your needs are. You don't need to have any exporter configured at all, if you don't want to export any spans from your application. If all you want is having traceids injected into your logging MDC, then you can skip the exporter configuration altogether and just use the MDC injection piece that you need. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the simplest way to create a tracer? Our application doesn't need to export info to a remote provider like Jaeger. We are using OpenTelemetry to track our traceIds in our logs.
The getting started example on your manual instrumentation page uses a OtlpGrpcSpanExporter:
However, that is more heavy-weight than we need, as it attempts to connect to a remote server.
I've heard that OpenTelemetry supports something called an "In-memory exporter", but I don't see any documentation for that in the Java OTEL release. Does it exist for Java?
When we started with java OTEL version 0.12, we used the io.opentelemetry.instrumentation.api.tracer.BaseTracer to create a simple tracer. However, the BaseTracer was removed in more recent version, and there doesn't appear to be a replacement.
Any help is greatly appreciated, especially an example or a link to documentation.
Beta Was this translation helpful? Give feedback.
All reactions