I would like to measure the TPS and response time at the beginning of trace data to evaluate the system's processing performance. #12760
Unanswered
zerocooldog
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking into the OTEL instrumentation module, I found that there are advice classes related to servlets.
And by registering a CustomSpanProcessor, I get that the context object in the onStart method of the SpanProcessor logs information such as HttpRouteState or opentelemetry-servlet-app-server-bridge.
-CustomSpanProcc
Here are my questions:
Can TPS or response time be measured during tracing using the SpanProcessor?
If yes, could you provide guidance on how to implement it?
I'm unable to retrieve the HttpRouteState value using context.get(KEY);. The log outputs null. Am I using it incorrectly? When I log the context object itself, it appears to contain values.
Would it be a better choice to create a separate advice class to add TPS or response time as metrics?
I’m asking because I don’t want to modify the existing advice classes or convert them using ByteBuddy.
Beta Was this translation helpful? Give feedback.
All reactions