Skip to content

Proposal: rename "Resources" to "StaticContext" #239

@toumorokoshi

Description

@toumorokoshi

I was running through the propagators, and I think it would be worth considering renaming "Resources" to "StaticContext".

Motivation:

  1. Resources effectively are a set of labels that are static for the lifetime of the application. As there is currently no way to represent other values that are static for the lifetime of the application, people will add Resources that have nothing to do with the underlying 'resource' (e.g, environment or version).

  2. When one is constructing a set of labels to attach to some piece of telemetry (logs, traces, etc), they will be extracted from the various "Context" objects. by calling this StaticContext, it immediately signals to consumers of labels that this is another pool of values they can retrieve context from. i.e. you could switch from:

  • you can pull telemetry tags from SpanContext, DistributedContext, and Resources
    to:

  • you can pull telemetry tags from any of the contexts: SpanContext, DistributedContext, and StaticContext.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiCross language API specification issuerelease:after-gaNot required before GA release, and not going to work on before GAspec:resourceRelated to the specification/resource directory

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions