Add Sampler.shutdown #1295
Labels
area:sampling
Related to trace sampling
area:sdk
Related to the SDK
release:after-ga
Not required before GA release, and not going to work on before GA
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
We have
TracerProvide.shutdown
to allow a top-level entrypoint to shutdown all parts of the tracing SDK. However, we only haveshutdown
on span processors and exporters, butSampler
, where it is relatively common to have versions that fetch config from a remote source and need to be closed properly, does not. If we want the top-level entrypoint to be able to close all parts of the tracing SDK,Sampler
also needs a shutdown method.Additional context.
Related discussion on the desire for a top-level shutdown: #1288
The text was updated successfully, but these errors were encountered: