We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the config spec, mdatagen lists an attributes key for telemetry metrics:
attributes
opentelemetry-collector/cmd/mdatagen/metadata-schema.yaml
Lines 167 to 168 in fce1d46
however, when trying to use it:
attributes: test: type: string description: test telemetry: metrics: test: description: test unit: "1" enabled: true gauge: value_type: int attributes: [test]
mdatagen fails:
$ go generate . 2024/08/20 16:49:09 failed loading /home/tbraack/work/otelcol-contrib/processor/deltatocumulativeprocessor/metadata.yaml: unused attributes: [test] doc.go:4: running "mdatagen": exit status 1
looking at the code, it appears to only check metrics, not telemetry.metrics for attribute usage.
metrics
telemetry.metrics
Adding a fake metric to silence the check succeeds, but also does not generate anything.
The text was updated successfully, but these errors were encountered:
I think the same fix that will address #10925 will address this issue as well, can you confirm @sh0rez
Sorry, something went wrong.
No branches or pull requests
In the config spec, mdatagen lists an
attributes
key for telemetry metrics:opentelemetry-collector/cmd/mdatagen/metadata-schema.yaml
Lines 167 to 168 in fce1d46
however, when trying to use it:
mdatagen fails:
looking at the code, it appears to only check
metrics
, nottelemetry.metrics
for attribute usage.Adding a fake metric to silence the check succeeds, but also does not generate anything.
The text was updated successfully, but these errors were encountered: