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

Metrics terminology #121

Merged

Conversation

SergeyKanzhelev
Copy link
Member

Fix #45

terminology.md Show resolved Hide resolved
terminology.md Outdated Show resolved Hide resolved
terminology.md Outdated Show resolved Hide resolved
terminology.md Outdated Show resolved Hide resolved
SergeyKanzhelev and others added 3 commits June 14, 2019 15:06
Co-Authored-By: Yang Song <[email protected]>
Co-Authored-By: Yang Song <[email protected]>
Co-Authored-By: Yang Song <[email protected]>
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

LGTM

terminology.md Outdated Show resolved Hide resolved
terminology.md Outdated Show resolved Hide resolved
terminology.md Show resolved Hide resolved
Copy link
Member

@iredelmeier iredelmeier left a comment

Choose a reason for hiding this comment

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

Core content LGTM, however:

  • I believe it's worth pulling out separate sections (i.e., with headers) for the definitions of Measure and Measurement
  • Some of the content feels like it's more about why and how than what, where I believe that the terminology sections should be primarily about what. In other words, someone implementing the spec shouldn't need to reference the terminology sections in order to understand how to implement it; other files should be sufficient. Given that those files should be sufficient, having the why and how be in both places makes it more likely that the content will eventually diverge and become stale or otherwise inaccurate.
    • e.g., Because of this, Metrics puts minimal constraints on the data (e.g. which characters are allowed in keys), and code dealing with Metrics should avoid validation and sanitization of the Metrics data. Instead, pass the data to the backend, rely on the backend to perform validation, and pass back any errors from the backend.
  • DistributedContext is already defined elsewhere. We should link instead of re-defining it as, again, duplication leads to inaccuracy.
  • Some grammar and typo fixes. I started going through these (and don't mind doing so!), but it probably makes sense to hold off until after other things are addressed?

General comment: having hard wraps in Markdown files makes editing, changing, and tracking history a lot harder than having only natural breaks at paragraph ends with soft wraps in editors :/ (Most Markdown viewers - GitHub's included - are able to handle this decently.)

@SergeyKanzhelev
Copy link
Member Author

  • I believe it's worth pulling out separate sections (i.e., with headers) for the definitions of Measure and Measurement

This separation will be done in specification documents. This is terminology and it's hard to separate definition of a Measure from Measurement.

  • Some of the content feels like it's more about why and how than what, where I believe that the terminology sections should be primarily about what. In other words, someone implementing the spec shouldn't need to reference the terminology sections in order to understand how to implement it; other files should be sufficient. Given that those files should be sufficient, having the why and how be in both places makes it more likely that the content will eventually diverge and become stale or otherwise inaccurate.

I have the same feeling. Was planning to move some of these into SDK section when it will be created.

  • DistributedContext is already defined elsewhere. We should link instead of re-defining it as, again, duplication leads to inaccuracy.

There is also SpanContext that can be passed. I was thinking I will leave specifics to the API and only mention vaguely "context".

  • Some grammar and typo fixes. I started going through these (and don't mind doing so!), but it probably makes sense to hold off until after other things are addressed?

It's time!

General comment: having hard wraps in Markdown files makes editing, changing, and tracking history a lot harder than having only natural breaks at paragraph ends with soft wraps in editors :/ (Most Markdown viewers - GitHub's included - are able to handle this decently.)

Worth a separate discussion. Please file an issue if you feel strongly. It's a tabs-spaces level conversation. The idea way to resolve it is with the linter. @yurishkuro was suggesting some that they are using in Jaeger.

@SergeyKanzhelev
Copy link
Member Author

@iredelmeier for the grammar changes - would it work to merge it first and then work on grammar separately? Or you'd prefer to do it as part of this PR?

@iredelmeier
Copy link
Member

  • I believe it's worth pulling out separate sections (i.e., with headers) for the definitions of Measure and Measurement

This separation will be done in specification documents. This is terminology and it's hard to separate definition of a Measure from Measurement.

Clarifying: I meant separate sections within the same doc. Very much agree that it's hard to separate the definitions.

  • Some of the content feels like it's more about why and how than what, where I believe that the terminology sections should be primarily about what. In other words, someone implementing the spec shouldn't need to reference the terminology sections in order to understand how to implement it; other files should be sufficient. Given that those files should be sufficient, having the why and how be in both places makes it more likely that the content will eventually diverge and become stale or otherwise inaccurate.

I have the same feeling. Was planning to move some of these into SDK section when it will be created.

  • DistributedContext is already defined elsewhere. We should link instead of re-defining it as, again, duplication leads to inaccuracy.

There is also SpanContext that can be passed. I was thinking I will leave specifics to the API and only mention vaguely "context".

Not sure that I follow your meaning?

  • Some grammar and typo fixes. I started going through these (and don't mind doing so!), but it probably makes sense to hold off until after other things are addressed?

It's time!

Per your added comment, I think a separate PR makes the most sense to keep the core content unblocked :)

General comment: having hard wraps in Markdown files makes editing, changing, and tracking history a lot harder than having only natural breaks at paragraph ends with soft wraps in editors :/ (Most Markdown viewers - GitHub's included - are able to handle this decently.)

Worth a separate discussion. Please file an issue if you feel strongly. It's a tabs-spaces level conversation. The idea way to resolve it is with the linter. @yurishkuro was suggesting some that they are using in Jaeger.

👍

@SergeyKanzhelev
Copy link
Member Author

@iredelmeier would you than sign off so I can merge? Or anything needed to be addressed before the merge?

terminology.md Outdated Show resolved Hide resolved
terminology.md Outdated
@@ -104,7 +104,65 @@ Trace instead of trusting incoming Trace context.

## Metrics

TODO: Describe metrics terminology https://github.com/open-telemetry/opentelemetry-specification/issues/45
OpenTelemetry allows to record raw measurements or already aggregated metrics
with predefined aggregation and labels.
Copy link
Contributor

Choose a reason for hiding this comment

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

Another way of stating this is that "predefined aggregation" should be independent of "predefined labels". I think if predefined labels were available for all measurements, the concept of "Raw" measurement wouldn't be needed: raw would just mean measurements without pre-defined aggregation.

Copy link
Member Author

Choose a reason for hiding this comment

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

it's a good point. label keys are predefined, not the values. I'll rephrase

terminology.md Show resolved Hide resolved
@jmacd
Copy link
Contributor

jmacd commented Jun 18, 2019

👍

.vscode/settings.json Outdated Show resolved Hide resolved
@SergeyKanzhelev
Copy link
Member Author

PR was active for more than a day. Merging

@SergeyKanzhelev SergeyKanzhelev merged commit 1862166 into open-telemetry:master Jun 19, 2019
@SergeyKanzhelev SergeyKanzhelev deleted the metricsTerminology branch June 19, 2019 18:17
SergeyKanzhelev added a commit to SergeyKanzhelev/opentelemetry-specification that referenced this pull request Feb 18, 2020
TuckTuckFloof pushed a commit to TuckTuckFloof/opentelemetry-specification that referenced this pull request Oct 15, 2020
rockb1017 pushed a commit to rockb1017/opentelemetry-specification that referenced this pull request Nov 18, 2021
* Add support for the OTEL_SERVICE_NAME env var

* Account for srv name in code

* Rely on OTel for assignment and precedence

Co-authored-by: Owais Lone <[email protected]>
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 21, 2024
* Otep for dynamic configuration

* Revisions

* Further explanation

* Fix link

* Revise proposal

Co-authored-by: Sergey Kanzhelev <[email protected]>

* Revisions

* Make experimental

* Slight revisions

* Revisions

* Phase 1

* Revisions

* Change filename

* Fix lint errors

* Update text/0121-config-service.md

Co-authored-by: Chris Kleinknecht <[email protected]>

* Revisions

* Fix lint errors

* Add metadata explanation

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Change period from enum to int

* Specified service for metrics, removed tracing

* Switch to MetricConfig

* Clarify period description

* Remove metadata field

* Move to experimental folder

Co-authored-by: Sergey Kanzhelev <[email protected]>
Co-authored-by: Chris Kleinknecht <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Bogdan Drutu <[email protected]>
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 23, 2024
* Otep for dynamic configuration

* Revisions

* Further explanation

* Fix link

* Revise proposal

Co-authored-by: Sergey Kanzhelev <[email protected]>

* Revisions

* Make experimental

* Slight revisions

* Revisions

* Phase 1

* Revisions

* Change filename

* Fix lint errors

* Update text/0121-config-service.md

Co-authored-by: Chris Kleinknecht <[email protected]>

* Revisions

* Fix lint errors

* Add metadata explanation

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Update text/0121-config-service.md

Co-authored-by: Yuri Shkuro <[email protected]>

* Change period from enum to int

* Specified service for metrics, removed tracing

* Switch to MetricConfig

* Clarify period description

* Remove metadata field

* Move to experimental folder

Co-authored-by: Sergey Kanzhelev <[email protected]>
Co-authored-by: Chris Kleinknecht <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Bogdan Drutu <[email protected]>
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
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.

Terminology: describe metrics terminology
7 participants