The implementation of logger API/SDK was inspired by the initial trace implementation. And there was no support of resources at that time. This support needs to be added to Logger. It would be good to replicate the implementation from the latest trace.
- Introduce LoggerContext to manager ownership of resources and processor ( similar to TracerContext )
- Inject resource through LoggerProvider, as done by TracerProvider:
|
opentelemetry::sdk::resource::Resource::Create({}), |
- Propagating resources to exporters through recordable ( Need to validate if this is fully supported, or any changes required).
The implementation of logger API/SDK was inspired by the initial trace implementation. And there was no support of resources at that time. This support needs to be added to Logger. It would be good to replicate the implementation from the latest trace.
opentelemetry-cpp/sdk/include/opentelemetry/sdk/trace/tracer_provider.h
Line 41 in 089b04d