-
Notifications
You must be signed in to change notification settings - Fork 291
use seconds for all durations as specified for durations #176
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
Conversation
| | Name | Instrument Type ([*](/docs/general/metrics-general.md#instrument-types)) | Unit | Unit ([UCUM](/docs/general/metrics-general.md#instrument-units)) | Description | | ||
| |------------------------|---------------------------------------------------|--------------|-------------------------------------------|------------------------------------------------------------------------------| | ||
| | `faas.invoke_duration` | Histogram | milliseconds | `ms` | Measures the duration of the invocation | | ||
| | `faas.init_duration` | Histogram | milliseconds | `ms` | Measures the duration of the function's initialization, such as a cold start | |
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.
Shouldn't these changes come with explicit bucket boundary advice so that the distribution is useful out of the box?
This question applies to all the histogram metrics that appear in this PR.
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.
good catch - added
jsuereth
left a comment
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.
Given this is a breaking change, I think we should treat it similarly to the HTTP semconv breaking changes and give guidance on how to migrate and flag-guard this change.
At a minimum, I'd like a plan for how to roll out this change to instrumentation prior to accepting the PR.
See: https://github.com/open-telemetry/semantic-conventions/tree/main/docs/http
What do you think about re-using the feature flag you linked, i.e. to use seconds if |
FYI - reusing this is the right thing to do. You can add one for database, fass, rpc, etc. However we may want to tie changing these to an overall effort to stabilize those components. Do you plan to make progress on this PR or should we close and tackle individual semconv areas separately? |
|
Let's discuss how to continue with those changes. Options I see:
|
|
Discussed in today's semantic convention SIG meeting. FaaS metrics don't seem to be used currently (at least we didn't find any evidence for it), RPC and database metrics are used by OTel and third-party libraries. The proposed approach:
@jsuereth What do you think? |
|
@pyohannes The plan looks good to me. |
|
As proposed in #176 (comment), this PR will be closed and the changes it proposes will be addressed by the following issues: |
No description provided.