opentelemetry-js-api icon indicating copy to clipboard operation
opentelemetry-js-api copied to clipboard

setGlobalPropagator/getGlobalPropagator for each propagator type

Open srikanthccv opened this issue 3 years ago • 0 comments

This is probably not a big issue. The current setGlobalPropagator and getGlobalPropagator only accept the TextMapPropagator type but it is possible that there can be other propagator types such as binary propagator. We can introduce the new global set/get methods for new propagator types to solve that problem. It would be nice if the names are more explicit to indicate what they do setGlobalPropagator -> setGlobalTextMapPropagator and getGlobalPropagator -> getGlobalTextMapPropagator.

srikanthccv avatar Jan 04 '22 21:01 srikanthccv