-
Couldn't load subscription status.
- Fork 29
Description
Semconv tooling is being expanded to support attributes with any value (on logs/events for the time being) in open-telemetry/weaver#707.
Once such attribute is defined in semconv (ETA 1-2 month from now), Java code generation here
Line 44 in 3c7edf3
| {% if attribute is deprecated %}@Deprecated{% endif %} public static final {{ to_java_key_type(attribute) | trim }} {{ attribute.name | screaming_snake_case }} = {{ to_java_key_factory(attribute) | trim }}("{{ attribute.name }}"); |
will start producing invalid code since there is no mapping defined for any in java_template_key_factory and it's not trivial to add it (given incubating ExtendedAttributes and other uncertainties around this).
The recommendation is to update jinja to exclude all any (and other future unknown) attribute types from codegen for the time being.
Note: another supported variation of this would be template[any]