Skip to content

On how to use extensions #6350

Answered by mateuszrzeszutek
MALPI asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @MALPI ,
For simple use cases, you can just use OpenTelemetry API in your application directly -- just get the current Span and set whatever attributes you need. This will be a part of your application code, and you should have no problems when accessing the request attributes (of whatever framework/library you're using).
If you absolutely have to avoid modifying your application in any way, this can be achieved with extensions too, but it will be considerably more difficult, as it will require implementing a custom instrumentation that does that.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MALPI
Comment options

Answer selected by MALPI
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants