Ayush
de8158f87a
fix(semconv): share metric option pools ( #8371 )
...
Share the AddOption and RecordOption pools used by generated semconv
metric helpers through a small internal package, instead of emitting one
pair of pools in every generated metric package.
Regenerate semconv/v1.41.0 from the updated templates.
Fixes #8356
---------
Co-authored-by: Robert Pająk <pellared@hotmail.com >
2026-05-29 12:17:09 +02:00
David Ashpole
30fbc996a7
Fix semconv generation to include Attr helpers for required attributes on observable instruments ( #8361 )
...
The semconv generator only emitted Attr* helpers for not_required
attributes. For synchronous metrics, required attributes become
positional parameters on Record/Add methods. But observable instruments
don't get a generated observe wrapper, so there was no way to easily
pass the required attributes in callbacks.
Fixes #8357
2026-05-22 07:28:13 +02:00
Robert Pająk
4e7ae497e4
fix(semconv): clear pooled slices to enable GC ( #8352 )
...
Fixes #8320
Credits to ash2k
2026-05-21 08:00:44 +02:00
David Ashpole
597532c4d4
Add observable instrument variants to semconv v1.41.0 ( #8350 )
...
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/7342
Generates both observable and synchronous variants of instruments per
https://github.com/open-telemetry/opentelemetry-go/issues/7342#issuecomment-3292806559
2026-05-21 06:50:33 +02:00
Tyler Yahn
442cdbdd94
Generate and upgrade to semconv/v1.41.0 ( #8324 )
...
Fix https://github.com/open-telemetry/opentelemetry-go/issues/8299
Relevant upstream v1.41.0 release notes:
> ### 🛑 Breaking changes 🛑
>
> - `graphql`: Change `graphql.document` attribute requirement level
from Recommended to Opt-In due to sensitive data, cardinality, and size
concerns
([#2985 ](https://github.com/open-telemetry/semantic-conventions/issues/2985 ))
> - `process`: Move process.executable to its own entity.
([#3535 ](https://github.com/open-telemetry/semantic-conventions/issues/3535 ))
> - `process`: Update requirement levels for process attributes to
ensure consistent identification and description across platforms.
([#864 ](https://github.com/open-telemetry/semantic-conventions/issues/864 ))
> - `rpc`: Remove `client.address` and `client.port` attributes from RPC
server spans.
([#3487 ](https://github.com/open-telemetry/semantic-conventions/issues/3487 ),
[#3488 ](https://github.com/open-telemetry/semantic-conventions/issues/3488 ))
>
> ### 💡 Enhancements 💡
>
> - `Go`: Add opt-in go.memory.gc.pause.duration histogram metric.
([#3353 ](https://github.com/open-telemetry/semantic-conventions/issues/3353 ))
> - `deployment`: Stabilize `deployment.environment.name` attribute.
([#3339 ](https://github.com/open-telemetry/semantic-conventions/issues/3339 ))
> - `deployment`: Add enum values for `deployment.environment.name`
attribute.
([#2910 ](https://github.com/open-telemetry/semantic-conventions/issues/2910 ))
> - `go`: Add the go.cpu.time opt-in metric, and add
go.cpu.detailed_state and go.memory.detailed_type attributes to CPU and
memory metrics respectively with wildcard values.
([#3354 ](https://github.com/open-telemetry/semantic-conventions/issues/3354 ))
> - `go`: Add the opt-in go.memory.gc.cycles metric.
([#3353 ](https://github.com/open-telemetry/semantic-conventions/issues/3353 ))
> - `telemetry`: Promote `telemetry.distro.name` and
`telemetry.distro.version` attributes to 'stable'.
([#3650 ](https://github.com/open-telemetry/semantic-conventions/issues/3650 ))
This PR also:
- fixes semconv migration generation to ignore unexported declarations
when computing renames/removals
- upgrades repo imports, depguard, docs, templates, and schema URL
expectations to `go.opentelemetry.io/otel/semconv/v1.41.0`
- adds missing generated-file headers to semconvkit templates and
regenerates the affected `v1.41.0` files via `TAG="v1.41.0" make
semconv-generate`
---------
Co-authored-by: David Ashpole <dashpole@google.com >
2026-05-14 14:06:05 -04:00