Getting Error Cannot invoke "io.opentelemetry.api.trace.Tracer.spanBuilder(String)" because "this.tracer" is null #12280
-
I am trying to create a new span using the trace Id that we are getting from web socket communication from another micro-service and getting below error
We are using the tracer as below in our code
Can someone tell us what could be the reason for this and below are the maven dependnecies
We are trying to achieve the common traceId between the microservices which are communicating using web-socket. Problem Can be reproduced using the code here in the repositroy https://github.com/yatamraghu7/ManualInstrumentationOtel Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks @laurit for your support as always. |
Beta Was this translation helpful? Give feedback.
But you aren't https://github.com/yatamraghu7/ManualInstrumentationOtel/blob/d8272498d03dc1b2c81cabf8d705b48a415ff2dd/Producer/src/main/java/com/microservice/producer/Producer/Controller/ProducerController.java#L26-L27