-
Notifications
You must be signed in to change notification settings - Fork 894
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
Metrics terminology #121
Conversation
Co-Authored-By: Yang Song <[email protected]>
Co-Authored-By: Yang Song <[email protected]>
Co-Authored-By: Yang Song <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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
andMeasurement
- 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.
- e.g.,
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.)
This separation will be done in specification documents. This is terminology and it's hard to separate definition of a
I have the same feeling. Was planning to move some of these into SDK section when it will be created.
There is also SpanContext that can be passed. I was thinking I will leave specifics to the API and only mention vaguely "context".
It's time!
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. |
@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? |
Clarifying: I meant separate sections within the same doc. Very much agree that it's hard to separate the definitions.
Not sure that I follow your meaning?
Per your added comment, I think a separate PR makes the most sense to keep the core content unblocked :)
👍 |
@iredelmeier would you than sign off so I can merge? Or anything needed to be addressed before the merge? |
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
👍 |
PR was active for more than a day. Merging |
Metrics terminology
* 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]>
* 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]>
* 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]>
Metrics terminology
Fix #45