Why does the SDK allow changing the TraceConfig (span limits) but not the Sampler? #2628
Replies: 2 comments 5 replies
-
Sampler is an interface so it's pretty easy to provide a dynamic implementation unlike span limits, which is what zpages does. If accepting supplier for it seems useful we could, but it doesn't seem as valuable. |
Beta Was this translation helpful? Give feedback.
-
I am a bit confused that TraceConfig is different than all of the other and also has two ways of setting it Supplier or directly the object. Maybe we can just remove the direct call for setting the TraceConfig and leave only with Supplier than users will call |
Beta Was this translation helpful? Give feedback.
-
Sampler is probably the most important config part to change while debugging issues in a not sample all environment. It is at least strange that we allow changing the TraceConfig but not the Sampler.
Beta Was this translation helpful? Give feedback.
All reactions