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

Rename "labels" to "attributes" OTEP 0152 #181

Merged

Conversation

tigrannajaryan
Copy link
Member

Fixes open-telemetry/opentelemetry-specification#1989

OTEP 0152 predates renaming of labels to attributes in the spec. Unfortunately
the schema file format still uses the term "label" in the metrics section this way:

    metrics:
      changes:
        - rename_labels:
            label_map:
              # map of key/values. The keys are the old label name used
              # in the previous version, the values are the new label name
              # starting from this version.

            apply_to_metrics:
              # Optional. If it is missing the transformation is applied
              # to all metrics. If it is present the transformation is applied
              # only to the metrics with the name that is found in the sequence
              # specified below.

We don't want the word label in the schema files, instead we want the word
attribute to be used instead.

Discussed in spec meeting, decided:

  • OTEPs which are not part of the spec repo are not considered to be final,
    or be an actual part of stable spec (OTEPs are not labeled "stable" in any way).
  • Modify the OTEP, rename label to attribute (this commit).
  • Merge the OTEP with the spec.

Fixes open-telemetry/opentelemetry-specification#1989

OTEP 0152 predates renaming of labels to attributes in the spec. Unfortunately
the schema file format still uses the term "label" in the metrics section this way:
```yaml
    metrics:
      changes:
        - rename_labels:
            label_map:
              # map of key/values. The keys are the old label name used
              # in the previous version, the values are the new label name
              # starting from this version.

            apply_to_metrics:
              # Optional. If it is missing the transformation is applied
              # to all metrics. If it is present the transformation is applied
              # only to the metrics with the name that is found in the sequence
              # specified below.
```

We don't want the word `label` in the schema files, instead we want the word
`attribute` to be used instead.

Discussed in spec meeting, decided:
- OTEPs which are not part of the spec repo are not considered to be final,
  or be an actual part of stable spec (OTEPs are not labeled "stable" in any way).
- Modify the OTEP, rename `label` to `attribute` (this commit).
- Merge the OTEP with the spec.
@tigrannajaryan
Copy link
Member Author

@open-telemetry/specs-metrics-approvers @open-telemetry/specs-approvers please review.

@tigrannajaryan tigrannajaryan requested a review from a team October 7, 2021 10:28
@tigrannajaryan
Copy link
Member Author

I need 2 more approvals, please.

@tigrannajaryan
Copy link
Member Author

open-telemetry/opentelemetry-go#2267 is blocked on this.

@carlosalberto carlosalberto merged commit 6b78882 into open-telemetry:main Oct 7, 2021
@tigrannajaryan tigrannajaryan deleted the otep0152labeltoattr branch October 7, 2021 20:13
tigrannajaryan added a commit to tigrannajaryan/opentelemetry-go that referenced this pull request Oct 8, 2021
tigrannajaryan added a commit to tigrannajaryan/opentelemetry-go that referenced this pull request Oct 12, 2021
MrAlias added a commit to open-telemetry/opentelemetry-go that referenced this pull request Oct 15, 2021
* Add ability to parse Schema files according to OTEP 0152

The parser and parsed representation (AST) are placed in a separate
Go module so that they are can be consumed independently without
the need to bring the rest of the SDK.

Ability to use the parsed representation for schema conversions
can be added later.

* Fixes based on PR comments

* Rename "label" to "attributes"

See open-telemetry/oteps#181

* Fixes based on PR comments

* Add README.md

* Wrap the error in Parse()

* Add docs for exporter types

* Use yaml.NewDecoder

* Verify parsed content in the test

* Fix indentation in README example

* Fix README spaces vs tabs

* Correctly space imports

* Add heading to README

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
shbieng added a commit to shbieng/opentelemetry-go that referenced this pull request Aug 26, 2022
* Add ability to parse Schema files according to OTEP 0152

The parser and parsed representation (AST) are placed in a separate
Go module so that they are can be consumed independently without
the need to bring the rest of the SDK.

Ability to use the parsed representation for schema conversions
can be added later.

* Fixes based on PR comments

* Rename "label" to "attributes"

See open-telemetry/oteps#181

* Fixes based on PR comments

* Add README.md

* Wrap the error in Parse()

* Add docs for exporter types

* Use yaml.NewDecoder

* Verify parsed content in the test

* Fix indentation in README example

* Fix README spaces vs tabs

* Correctly space imports

* Add heading to README

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
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.

OTEP 0152 Telemetry Schemas still uses "label" terminology for metrics
5 participants