Currently I am trying to POC OpenTelemetry for a web project (war) and upon reading lots of different documentations I still don't have a proper grasp on some issues, wonder if someone could help pointing out in right direction?
Basically:
1) Is it possible to have OpenTelemetry without any exporter?
I have used the config to do this (OTEL_TRACES_EXPORTER=none, OTEL_METRICS_EXPORTER=none). Would not having any exporter "work"?
2) Do I need to have a span processor in the SdkTracerProvider for Otel to work?
When building the SdkTracerProvider, I wonder if I MUST set a spanProcessor (like BatchSpanProcessor with LoggingSpanExporter) or if since I don't want to use a exporter, just not set a spanProcessor?
To be honest what I am trying to achieve is:
- NOT to use the agent
- NOT to use a collector (gateway/local)
- NOT to use a exporter
- ONLY In logs (logback) populate spanId and traceId (configured currently with %X{trace_id} and %X{span_id}, but not being populated at the moment, so wonder if have to include also code wise manually in every Log)
Not sure if this is something that is possible.