Description
What are you trying to achieve?
I would like to have a possibility to add resource attributes via some auto-discovery mechanism, where attribute values are not known at the Resource creation time, but rather become known during application initialization. In case of auto-instrumentation Otel SDK is created very early in process runtime. Some useful information about the process may not be accessible yet.
An example may be a process of discovering an app server name and its version (#1143) by instrumentation, rather than setting these values via environment. Even without instrumentation, discovering and setting a version of an application (or whatever component that makes sense at the Resource
level) at runtime is much easier than obtaining it before an application starts (as is needed for setting attributes via environment).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status