-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Define attributes for internal metrics in metadata.yaml #10801
Comments
@codeboten, please let me know if it makes sense |
100% i would like to move in that direction for all internal telemetry as well |
Just to confirm with the assignment, I'll work on this 👍 |
Part of open-telemetry#10801 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Part of open-telemetry#10801 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Started working on this, just want to bring up a limitation of the upstream However, From mdatagen's metadata schema:
Types supported by The missing types are as follows: Edit: I've submitted #10997 to clearly state this limitation in the schema. |
…ric attributes (#10997) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description The context can be found [here.](#10801 (comment)) Only a subset of attribute types are supported for `telemetry` metrics vs. regular `metrics`. There's no instrumentation equivalent for attributes of the type `bytes`, `slice`, and `map`.
I've got most of the functionality working, but I'd like to make sure it's tested more thoroughly before going forward. My current plan is as follows:
My goal is to be able to have tests that ensure existing behavior of recording telemetry metrics and their attributes doesn't change as a result of this. |
This is good, but less than ideal. See #11365 The best performant way is to actually construct the full |
This still should be possible to hide in the builder and provide the suggested simplified interface, right? |
Define all the attributes for internal metrics in the metadata.yaml similar to what we do for the scraper metrics.
Those attribute definitions should be used to generate documentation and helpers that replace the directly exposed counters with
Record...
functions.For example:
Instead of
we would generate
The text was updated successfully, but these errors were encountered: