Skip to content

Commit dd9c18b

Browse files
committed
fix(metrics): drop otel_scope_info, expose scope as labels
The otel prometheus exporter v0.59.0 stopped emitting the standalone otel_scope_info metric. Scope identity is now carried by otel_scope_name, otel_scope_version, and otel_scope_schema_url labels on every metric, added in v0.58.0. The bump to v0.65.0 in this branch crosses that boundary, so the t0119 baseline failed. Update the sharness baseline, docs/metrics.md, and add a v0.42 changelog highlight so operators scraping otel_scope_info know to switch their dashboards to the per-metric labels.
1 parent 681a4b9 commit dd9c18b

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

β€Ždocs/changelogs/v0.42.mdβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This release was brought to you by the [Shipyard](https://ipshipyard.com/) team.
1111
- [Overview](#overview)
1212
- [πŸ”¦ Highlights](#-highlights)
1313
- [πŸ› Fixed pin operations hanging under pinned reprovide strategies](#-fixed-pin-operations-hanging-under-pinned-reprovide-strategies)
14+
- [πŸ“Š OpenTelemetry: scope info now exposed as labels](#-opentelemetry-scope-info-now-exposed-as-labels)
15+
- [πŸ“¦οΈ Dependency updates](#-dependency-updates)
1416
- [πŸ“ Changelog](#-changelog)
1517
- [πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Contributors](#-contributors)
1618

@@ -24,6 +26,15 @@ This release was brought to you by the [Shipyard](https://ipshipyard.com/) team.
2426

2527
The pinner now snapshots the index under the read lock and releases it before the reprovider starts, so pin operations are no longer blocked by the reprovide cycle. The default `Provide.Strategy=all` was not affected.
2628

29+
#### πŸ“Š OpenTelemetry: scope info now exposed as labels
30+
31+
The Prometheus endpoint no longer emits the `otel_scope_info` metric. Each metric now carries `otel_scope_name`, `otel_scope_version`, and `otel_scope_schema_url` labels identifying the instrumentation library that produced it. Update dashboards or queries that read `otel_scope_info` to consume these labels instead. See [`docs/metrics.md`](https://github.com/ipfs/kubo/blob/master/docs/metrics.md) for details.
32+
33+
#### πŸ“¦οΈ Dependency updates
34+
35+
- update `go-libp2p-pubsub` to [v0.16.0](https://github.com/libp2p/go-libp2p-pubsub/releases/tag/v0.16.0)
36+
- update `go-fuse/v2` to [v2.10.1](https://github.com/hanwen/go-fuse/releases/tag/v2.10.1)
37+
2738
### πŸ“ Changelog
2839

2940
### πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Contributors

β€Ždocs/metrics.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@ These metrics are automatically added to Gateway handlers, Hostname Gateway, Lib
121121

122122
Kubo uses Prometheus for metrics collection for historical reasons, but OpenTelemetry metrics are automatically exposed through the same Prometheus endpoint. These metadata metrics provide context about the instrumentation:
123123

124-
- `otel_scope_info` - Information about instrumentation libraries producing metrics
124+
- `otel_scope_name`, `otel_scope_version`, `otel_scope_schema_url` - Per-metric labels identifying the instrumentation library that produced each metric
125125
- `target_info` - Service metadata including version and instance information

β€Žtest/sharness/t0119-prometheus-data/prometheus_metricsβ€Ž

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)