-
Notifications
You must be signed in to change notification settings - Fork 814
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]: Use API common Attributes definition #2587
Comments
Submitted a spec issue on re-using the common |
Was advised by @jsuereth to emulate the collector behavior while the prometheus spec is finished. |
@dyladan can you elaborate on the emulation details? Like say do we need to export |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Looks like the collector handles this here: https://github.com/open-telemetry/opentelemetry-collector/blob/model/v0.45.0/model/pdata/common.go#L370 The suggested mapping to follow the collector:
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
I'd like to put in a huge +1 to having this done. I'm working on metrics now and having to export a set of attributes to include in every call to an instrument is causing my eye to twitch. :) Is there any ETA? Thanks! |
Not sure this issue is what you think it is. This is just using the |
if we use type This seems to got in the opposite direction. |
There is no metrics API in 1.0 or 1.1 anyway so any metrics users will need to be at least on 1.2 (or whatever version we add metrics to the main API package). |
well, |
I fail to see in which scenario this will be a problem, there will be breaking changes for instrumentation anyway since metrics types will change no ? |
It's not really a problem. I have no problme with API 1.x |
I meant that we'll need to bump all instrumentations to require 1.2 (or whatever will be the metrics version) since need to depend on the new API so duplicate issue will solves itself (at least until we ship another api minor) ? |
@dyladan Sorry, I just missed the fact that this issue was assigned before I got my hands on the stale issue #2585 😅.
I'd find the most smooth adoption path for the
WDYT? |
Sounds good to me |
Related to open-telemetry/opentelemetry-js-api#130 but does not depend on it because the public interface of the API will not change.
Depends on #2586
The text was updated successfully, but these errors were encountered: