Skip to content

Adding resource attributes post-creation (e.g. via auto-discovery) #1298

Open
@vovencij

Description

@vovencij

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

No one assigned

    Labels

    area:data-modelFor issues related to data modelarea:sdkRelated to the SDKentitiessig-issueA specific SIG should look into this before discussing at the specspec:protocolRelated to the specification/protocol directoryspec:resourceRelated to the specification/resource directory

    Type

    No type

    Projects

    Status

    EntityManager OTEP

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions