Robert Pająk
e186baaf9e
prometheus: remove otel_scope_info ( #6770 )
...
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/6768
Towards
https://github.com/open-telemetry/opentelemetry-specification/issues/4223
(last point from from
https://github.com/open-telemetry/opentelemetry-specification/issues/4223#issuecomment-2839595942 )
- Remove instrumentation scope attributes as `otel_scope_info` metric
2025-05-28 07:09:36 +02:00
Robert Pająk
69f189f0b6
prometheus: Add otel_scope_schema_url and otel_scope_[attribute] labels ( #5947 )
...
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/5846
Towards
https://github.com/open-telemetry/opentelemetry-specification/issues/4223
(first two points from
https://github.com/open-telemetry/opentelemetry-specification/issues/4223#issuecomment-2839595942 )
- Add instrumentation scope schema URL as `otel_scope_schema_url` label
to exported metrics
- Add instrumentation scope attributes as `otel_scope_[attribute]`
labels to exported metrics
Side notes:
- The exporter does not seem to work correctly if the end user adds e.g.
an `otel_scope_name` attribute. I think the exporter should ignore all
attributes with names that have prefix `otel_scope_`. This scenario is
also not covered by the spec. I think it may be covered by a separate PR
and issue.
- Removal of `otel_scope_info` metric would be handled as a separate PR.
https://github.com/open-telemetry/opentelemetry-go/pull/6770
2025-05-24 19:35:21 +02:00
Ajat Prabha
921e0e679e
chore(deps): update github.com/prometheus/client_golang to v1.21.1 ( #6433 )
...
There are changes in how testutil.GatherAndCompare behaves in tests,
this PR updates the testcases and bumps the
`github.com/prometheus/client_golang` dependency to `v1.21.1`
Signed-off-by: ajatprabha <ajat.prabha.leo@gmail.com >
Co-authored-by: Damien Mathieu <42@dmathieu.com >
2025-03-18 10:22:12 +01:00
Robert Pająk
ff07838976
prometheus: Add instrumentation scope attributes to otel_scope_info ( #5932 )
...
Towards https://github.com/open-telemetry/opentelemetry-go/issues/5846
2024-11-05 14:24:52 +01:00
Gustavo Paiva
1c05d9c0b7
prometheus: add WithNamespace option to prefix metrics ( #3970 )
...
* prometheus: add WithNamespace option to prefix metrics
* sanitize namespace, add config test
* Update CHANGELOG.md
Co-authored-by: Robert Pająk <pellared@hotmail.com >
---------
Co-authored-by: Robert Pająk <pellared@hotmail.com >
2023-04-06 13:44:13 -05:00