-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Metadata type field is mapped to receiver instrumentation scope metadata and factory id #21382
Comments
One possibility is to change the metrics template to append the metadata class to the generated metrics code. |
To avoid going through 2 breaking changes, we should probably wait until #21469 is resolved |
This can be resolved by setting the actuall type in metadata.yaml with what we need, like |
If we choose to continue w/ the current, then I agree this approach could work. I supposed the thing we have to decide is whether this is the scheme we want moving forward, or if we want to go with the package name (ie. The way I see it, continuing with the current scheme means we don't have to subject users that are making use of this field today to breaking changes (at least according to #21501 it's a small subset of components impacted). That being said, the scope naming as it exists today grew somewhat organically in this repository. A name like Switching to the package name does have the disadvantage of being much longer today: Another proposed option was to use vanity URLs to make the naming more compact: So we have at least 3 options, with the 4th one to be nothing at all
Are there other options here? I'd like to agree on what we want to move forward with before we make any breaking changes for users. |
@open-telemetry/collector-contrib-approvers, @codeboten posted a pretty important poll ^ PTAL |
Please put ❤️ in #21382 (comment) :) |
I'd prefer option 5, but at this point I'm only comfortable with option 4 as it is unclear what the impact to users, developers and downstream distributions would be to change the package import paths. If we have a clear transition plan and can have minimal or no impact to consumers of these modules then I think option 5 is the best approach. |
This would be really cool and would help a lot I think. |
We need to understand how to move forward with the use of the type metadata field. We now are trying to use it for 2 incompatible purposes:
the type string used to register the factory
the instrumentation library name in scope instrumentation library
cc @open-telemetry/collector-contrib-approvers
Originally posted by @dmitryax in #21272 (comment)
The text was updated successfully, but these errors were encountered: