Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that Scope attributes are not part of its identity #2794

Conversation

tigrannajaryan
Copy link
Member

Resolves #2762

This change says that Scope attributes are NOT part of the Tracer/Meter/Logger identity.

The consequence of this change is the following:

  • It is no longer possible to obtain a Logger with different sets of attributes from the same instrumentation library (using the same name, version,schema_url). It may be desirable to make this possible in the future, but right now it is impossible since the attributes are not part of the Scope's identity.

  • Likewise, it is no longer possible to obtain a Tracer and Meter with different sets of attributes from the same instrumentation library (using the same name, version,schema_url). This is likely the only desirable way for Tracer and Meter.

This is an alternate to draft #2780

Resolves open-telemetry#2762

This change says that Scope attributes are NOT part of the Tracer/Meter/Logger identity.

The consequence of this change is the following:

- It is no longer possible to obtain a Logger with different sets of
  attributes from the same instrumentation library (using the same name,
  version,schema_url). It may be desirable to make this possible in the
  future, but right now it is impossible since the attributes are not
  part of the Scope's identity.

- Likewise, it is no longer possible to obtain a Tracer and Meter with
  different sets of attributes from the same instrumentation library (using the
  same name, version,schema_url). This is likely the only desirable way
  for Tracer and Meter.
@bogdandrutu
Copy link
Member

Duplicate of #2789

@bogdandrutu bogdandrutu marked this as a duplicate of #2789 Sep 13, 2022
@tigrannajaryan
Copy link
Member Author

Closed in favour of #2789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scope attributes as part of identity is a breaking change
2 participants