Is your feature request related to a problem? Please describe.
When using declarative config, getResource() (it's protected) returns an empty instance.
In the agent, we access this instance.
Describe the solution you'd like
Possible solutions
- populate the resource in the SDK
- extract the resource from the tracer provider using reflection
- use some plugin from the SDK (not sure which)
Describe alternatives you've considered
No response
Additional context
No response