Otel implementation approach for Themis. #44
-
We have added otel tracing in Themis as per the approach in xmidt-org/tr1d1um#202 . We have added the same in themis/xhttp/xhttpserver/unmarshal.go as per the code below. We have also added the application name as configuration in talaria.yaml for the same. Kindly review the code logic below and let us know if the approach seems fine. We have tested the same and the traceID and spanID are being generated as expected. The same code in xhttp/xhttpserver/unmarshal.go would work for argus as well. package xhttpserver import ( func (u Unmarshal) name() string {
} **type firstNodeTraceEchoer struct { type application struct { // EchoStartNodeTrace should be run after the middleware that starts the main span of this application. // Provide unmarshals a server using the Key field and creates a *mux.Router which is the root handler for
....................................................................
} // Annotated is like Unmarshal, save that it emits a named *mux.Router. This method is appropriate |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@utsavbatra5, how critical is it for you guys to add tracing to Themis as part of the 7 services you mentioned on #43? We will soon be making some large refactor to Themis and adding tracing to it might add complexity we're trying to avoid. I will try to post the GitHub issues here with the refactor details. Also, I'm assuming that tracing will be most helpful to you for the path |
Beta Was this translation helpful? Give feedback.
@utsavbatra5, how critical is it for you guys to add tracing to Themis as part of the 7 services you mentioned on #43?
We will soon be making some large refactor to Themis and adding tracing to it might add complexity we're trying to avoid. I will try to post the GitHub issues here with the refactor details.
Also, I'm assuming that tracing will be most helpful to you for the path
Tr1d1um => Scytale => Petasos => Talaria
for API requests andTalaria => Caduceus
for events