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

Consistency between Span and Resource attributes #777

Merged

Conversation

thisthat
Copy link
Member

Fixes #763

Changes

The requirements for Resource and Span attributes are now consistent w.r.t.:

  • empty values are not discarded
  • null values are dropped and can remove an existing attribute iff overwriting is possible

@thisthat thisthat requested review from a team and carlosalberto August 11, 2020 08:11
specification/common/common.md Outdated Show resolved Hide resolved
specification/trace/api.md Outdated Show resolved Hide resolved
specification/trace/api.md Show resolved Hide resolved
@Oberon00 Oberon00 added area:api Cross language API specification issue spec:miscellaneous For issues that don't match any other spec label spec:resource Related to the specification/resource directory spec:trace Related to the specification/trace directory labels Aug 11, 2020
Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, this was really confusing me on that PR! :P

specification/trace/api.md Outdated Show resolved Hide resolved
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

specification/common/common.md Show resolved Hide resolved
@bogdandrutu bogdandrutu merged commit e1fbfe5 into open-telemetry:master Aug 13, 2020
@bogdandrutu
Copy link
Member

Sorry @carlosalberto, I merged this one since it had 5+ approvers

@carlosalberto
Copy link
Contributor

@bogdandrutu Sounds good to me! (as it was approved and was a non-controversial change)

@thisthat thisthat deleted the attributes-consistency branch October 5, 2020 06:45
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
* Consistency between Span and Resource attributes

* Address feedback

* Wording
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api Cross language API specification issue spec:miscellaneous For issues that don't match any other spec label spec:resource Related to the specification/resource directory spec:trace Related to the specification/trace directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attributes restrictions are different between Resource and Spans
7 participants