Revert "Add InstrumentationLibrary to Sampler.ShouldSample (#1850)"#1942
Conversation
…metry#1850)" This reverts commit f936f2e.
+1. Do we need to improve our community guidelines to make it clear that "was discussed in a meeting" is never a justification for any change? |
|
Sorry, updated PR's description |
|
Please ensure a follow-up issue for this new configuration design is created before merging. |
|
@Oberon00 I'm not sure what you mean here. Can you clarify? I'd like to understand what you'd like to see before moving this PR forward. |
|
Quoting the description:
There should be an issue for that. Probably it will be best to use the existing #1588, copying & pasting the gist to that issuewould make sense. And of course, adding a "Closes #1588" to the description to close the PR for adding resources, which then wouldn't make sense at all. |
|
Added #1588 (comment) |
|
@Oberon00 Wanted to double confirm you are fine with Nikita's comment, and we can merge this one? |
…metry#1850)" (open-telemetry#1942) This reverts commit f936f2e. Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
This reverts commit f936f2e.
During today Maintainers meeting @jmacd expressed his concern about #1658 and the direction that it moves SDK: runtime decisions in
Samplersas opposed to configuration-time decisions of configuring SDK and/orTracerswith the correctSamplers. His opinion was that we should use the latter: all decisions based onResourcesandInstrumentationLibrariescan be done before providingTracersto the users. Thus thoseTracerscan already useSamplerschosen/narrowed down based on that information. Thus they don't need to accept it inShouldSamplemethod.Several attendees, myself including, agreed that this is a reasonable idea. It was thus decided to revert introducing
InstrumentationLibrarytoShouldSamplemethod and get back to the drawing board to choose between two approaches:either pass both
ResourcesandInstrumentationLibrarytoShouldSamplein one spec release OR don't pass neither of them and allow SDKs to configure specificSamplerfor a specificTracer.