Sampler attributes with Phoenix #93
Replies: 2 comments 2 replies
-
@chad-g-adams there isn't but there should be (may not be in the Phoenix library yet) an option for telling the instrumentation library to include certain headers as attributes. Maybe that should also include an optional transformation function, which would allow you to calculate the new attribute and it would be included in the attributes passed to the sampler. |
Beta Was this translation helpful? Give feedback.
-
You'll be able to use filters in an upcoming release which will act as simple predicate and won't even start a span. Does that cover your use case or does it need to be more complex? |
Beta Was this translation helpful? Give feedback.
-
When using
opentelemetry_phoenix
, is there any way to control which attributes are sent to the sampler? In my case, I would like to inject a new attribute (calculated based on details from the headers of the HTTP request), and have this attribute available to my sampler as it will affect the sampling decision.Having access to the
conn
in the sampler would be another way to do what I need...Beta Was this translation helpful? Give feedback.
All reactions