-
Hi, What kind of concept should I use to set the current browser URL to all the spans? As I understand, resources are immutable, detectors are initiated only once, and instrumentation is more of a tool to wrap some functionality to create a span. So what should I use to make a "plugin" which could add custom dynamic attributes for each span? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There doesn't really exist such a mechanism. You could probably use a custom span processor to build it yourself |
Beta Was this translation helpful? Give feedback.
-
Some instrumentations have a config parameter called applyCustomAttributesOnSpan - this can also be used for the purpose. We are also working on adding this to the semantic conventions so we can include it by default. |
Beta Was this translation helpful? Give feedback.
There doesn't really exist such a mechanism. You could probably use a custom span processor to build it yourself