-
Notifications
You must be signed in to change notification settings - Fork 825
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
Instrument descriptor semantics are unclear when using views #3439
Comments
I think this is the intended behavior but we should look into other SIGs |
I don't see any Instrument Descriptor exposed in Java's Important to note that instrument descriptor is not a part of the OTel data model in general. |
Looking into this a bit more, the InstrumentDescriptor looks like the only place the metric name is available.. I'm not sure where we would indicate the instrument name vs the view name in that case. |
It looks that I made a mistake while I was working on #3158. 😞 What As we already released Sorry about this, I can see that this can be confusing for exporter authors. After reviewing the code in our repo here, I can even see an instance of this being improperly used internally in the prometheus exporter. 😕 |
+1 to some kind of deprecation. Do you mean deprecating the
No worries at all thanks for working on this 😄 |
I meant the latter, yes. Just deprecating the
I agree having it renamed would be good. I'll see if I can come up with a solution and will link the PR here 🙂 |
I agree we should deprecate the usage of Renaming |
We've made some progress on this, and have introduced PR #5266 now drops the |
I'm adding this to the 2.0 Milestone as removing deprecated properties is in scope. |
Move the field to the internal `InstrumentDescriptor` type and keep it for internal use. Fixes open-telemetry#3439
What happened?
It's not clear to me if the instrument descriptor should represent the view or the original instrument when views are configured. When I tested it out, it seems to be a hybrid of both which is difficult to use when implementing an exporter.
Steps to Reproduce
Create a view to change a Counter instrument's aggregation to Histogram and rename it:
Expected Result
I would expect either:
type
would beHISTOGRAM
.Actual Result
Somewhere in between; the descriptor's name is changed to match the view, but the type is still
COUNTER
:Additional Details
OpenTelemetry Setup Code
No response
package.json
Relevant log output
No response
The text was updated successfully, but these errors were encountered: