Generate semconv/v1.36.0#7032
Merged
MrAlias merged 8 commits intoopen-telemetry:mainfrom Jul 16, 2025
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7032 +/- ##
=====================================
Coverage 82.7% 82.8%
=====================================
Files 261 261
Lines 24341 24341
=====================================
+ Hits 20154 20156 +2
+ Misses 3812 3810 -2
Partials 375 375 🚀 New features to boost your workflow:
|
Resolves the collision of `OSTypeZOS`.
Contributor
Author
|
Links that are failing the link checker are from the semantic conventions themselves. I do not plan to address any of these failures. |
Member
|
Should we ignore the link checker in all generated semconv? |
pellared
approved these changes
Jul 16, 2025
Member
dashpole
approved these changes
Jul 16, 2025
Contributor
Author
I'm open to someone adding that if you want. |
dmathieu
approved these changes
Jul 16, 2025
Merged
MrAlias
added a commit
that referenced
this pull request
Aug 29, 2025
This release is the last to support [Go 1.23]. The next release will require at least [Go 1.24]. ### Added - Add native histogram exemplar support in `go.opentelemetry.io/otel/exporters/prometheus`. (#6772) - Add template attribute functions to the `go.opentelmetry.io/otel/semconv/v1.34.0` package. (#6939) - `ContainerLabel` - `DBOperationParameter` - `DBSystemParameter` - `HTTPRequestHeader` - `HTTPResponseHeader` - `K8SCronJobAnnotation` - `K8SCronJobLabel` - `K8SDaemonSetAnnotation` - `K8SDaemonSetLabel` - `K8SDeploymentAnnotation` - `K8SDeploymentLabel` - `K8SJobAnnotation` - `K8SJobLabel` - `K8SNamespaceAnnotation` - `K8SNamespaceLabel` - `K8SNodeAnnotation` - `K8SNodeLabel` - `K8SPodAnnotation` - `K8SPodLabel` - `K8SReplicaSetAnnotation` - `K8SReplicaSetLabel` - `K8SStatefulSetAnnotation` - `K8SStatefulSetLabel` - `ProcessEnvironmentVariable` - `RPCConnectRPCRequestMetadata` - `RPCConnectRPCResponseMetadata` - `RPCGRPCRequestMetadata` - `RPCGRPCResponseMetadata` - Add `ErrorType` attribute helper function to the `go.opentelmetry.io/otel/semconv/v1.34.0` package. (#6962) - Add `WithAllowKeyDuplication` in `go.opentelemetry.io/otel/sdk/log` which can be used to disable deduplication for log records. (#6968) - Add `WithCardinalityLimit` option to configure the cardinality limit in `go.opentelemetry.io/otel/sdk/metric`. (#6996, #7065, #7081, #7164, #7165, #7179) - Add `Clone` method to `Record` in `go.opentelemetry.io/otel/log` that returns a copy of the record with no shared state. (#7001) - Add experimental self-observability span and batch span processor metrics in `go.opentelemetry.io/otel/sdk/trace`. Check the `go.opentelemetry.io/otel/sdk/trace/internal/x` package documentation for more information. (#7027, #6393, #7209) - The `go.opentelemetry.io/otel/semconv/v1.36.0` package. The package contains semantic conventions from the `v1.36.0` version of the OpenTelemetry Semantic Conventions. See the [migration documentation](./semconv/v1.36.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.34.0.`(#7032, #7041) - Add support for configuring Prometheus name translation using `WithTranslationStrategy` option in `go.opentelemetry.io/otel/exporters/prometheus`. The current default translation strategy when UTF-8 mode is enabled is `NoUTF8EscapingWithSuffixes`, but a future release will change the default strategy to `UnderscoreEscapingWithSuffixes` for compliance with the specification. (#7111) - Add experimental self-observability log metrics in `go.opentelemetry.io/otel/sdk/log`. Check the `go.opentelemetry.io/otel/sdk/log/internal/x` package documentation for more information. (#7121) - Add experimental self-observability trace exporter metrics in `go.opentelemetry.io/otel/exporters/stdout/stdouttrace`. Check the `go.opentelemetry.io/otel/exporters/stdout/stdouttrace/internal/x` package documentation for more information. (#7133) - Support testing of [Go 1.25]. (#7187) - The `go.opentelemetry.io/otel/semconv/v1.37.0` package. The package contains semantic conventions from the `v1.37.0` version of the OpenTelemetry Semantic Conventions. See the [migration documentation](./semconv/v1.37.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.36.0.`(#7254) ### Changed - Optimize `TraceIDFromHex` and `SpanIDFromHex` in `go.opentelemetry.io/otel/sdk/trace`. (#6791) - Change `AssertEqual` in `go.opentelemetry.io/otel/log/logtest` to accept `TestingT` in order to support benchmarks and fuzz tests. (#6908) - Change `DefaultExemplarReservoirProviderSelector` in `go.opentelemetry.io/otel/sdk/metric` to use `runtime.GOMAXPROCS(0)` instead of `runtime.NumCPU()` for the `FixedSizeReservoirProvider` default size. (#7094) ### Fixed - `SetBody` method of `Record` in `go.opentelemetry.io/otel/sdk/log` now deduplicates key-value collections (`log.Value` of `log.KindMap` from `go.opentelemetry.io/otel/log`). (#7002) - Fix `go.opentelemetry.io/otel/exporters/prometheus` to not append a suffix if it's already present in metric name. (#7088) - Fix the `go.opentelemetry.io/otel/exporters/stdout/stdouttrace` self-observability component type and name. (#7195) - Fix partial export count metric in `go.opentelemetry.io/otel/exporters/stdout/stdouttrace`. (#7199) ### Deprecated - Deprecate `WithoutUnits` and `WithoutCounterSuffixes` options, preferring `WithTranslationStrategy` instead. (#7111) - Deprecate support for `OTEL_GO_X_CARDINALITY_LIMIT` environment variable in `go.opentelemetry.io/otel/sdk/metric`. Use `WithCardinalityLimit` option instead. (#7166)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolve #7030
This generation fixes the following:
semconv/weaver.yamlfile is moved to thesemconv/templates/registry/goto fix the generation.vars are no longer generate.OSTypeZOS(z_os) conflicts with the replacement (zos).jqfunctionsemconv_signaldoes not filter deprecated weaver#847).The release notes for v1.35.0 are included as we do not plan to add a package for that release and it includes breaking changes being released here (i.e.
az.namespaceandaz.service_request_id)v1.36.0semantic convention release notes🚩 Deprecations 🚩
os: Adds the 'deprecated:' tag/attribute to thez_osenum value ofos.type. This value was recently deprecated in v1.35.0. (#2479)💡 Enhancements 💡
otel: Replacesotel.sdk.span.endedwithotel.sdk.span.startedand allow differentiation based on the parent span origin (#2431)db: Add database context propagation viaSET CONTEXT_INFOfor SQL Server (#2162)entities: Adds support for Entity registry and Entity stabilization policies. (#2246)🧰 Bug fixes 🧰
cloud: Exclude deprecated Azure members from code generation on thecloud.platformattribute (#2477, #2455)v1.35.0semantic convention release notes🛑 Breaking changes 🛑
azure: Align azure events, attributes, and enum members with general naming guidelines. (#608, #1708, #1698)az.service_request_idtoazure.service.request.idaz.namespacetoazure.resource_provider.namespaceaz.resource.logtoazure.resource.logaz.ai.inferencetoazure.ai.inference(ongen_ai.system)az.ai.openaitoazure.ai.openai(ongen_ai.system)azure_akstoazure.aks(oncloud.platform)azure_app_servicetoazure.app_service(oncloud.platform)azure_container_appstoazure.container_apps(oncloud.platform)azure_container_instancestoazure.container_instances(oncloud.platform)azure_functionstoazure.functions(oncloud.platform)azure_openshifttoazure.open_shift(oncloud.platform)azure_vmtoazure.vm(oncloud.platform)system: Revert the change that movedsystem.cpu.*tocpu.*. The 3 affected metrics are back insystem.cpu.*. (#1873)system: Changes system.network.connections to system.network.connection.count (#1800)k8s: Change instrument type for .limit/.request container metrics from gauge to updowncounter (#2354)🚩 Deprecations 🚩
os: Deprecate os.type='z_os' and replace with os.type='zos' (#1687)🚀 New components 🚀
mainframe, zos: Add initial semantic conventions for mainframes (#1687)💡 Enhancements 💡
dotnet: Define .NET-specific network spans for DNS resolution, TLS handshake, and socket connections, along with HTTP-level spans to (optionally) record relationships between HTTP requests and connections.(#1192)
k8s: Addk8s.node.allocatable.cpu,k8s.node.allocatable.ephemeral_storage,k8s.node.allocatable.memory,k8s.node.allocatable.podsmetrics (#2243)k8s: Add k8s.container.restart.count metric (#2191)k8s: Add K8s container resource related metrics (#2074)k8s: Add k8s.container.ready metric (#2074)k8s: Add k8s.node.condition metric (#2077)k8s: Add k8s resource quota metrics (#2076)events: Update general event guidance to allow complex attributes on events and use them instead of the body fields.(#1651, #1669)
k8s: Add k8s.container.status.state and k8s.container.status.reason metrics (#1672)feature_flags: Mark feature flag semantic convention as release candidate. (#2277)k8s: Add new resource attributes fork8s.hpato capture thescaleTargetReffields (#2008)Adds below attributes to the
k8s.hparesource:k8s.hpa.scaletargetref.kindk8s.hpa.scaletargetref.namek8s.hpa.scaletargetref.api_versionk8s: Adds metrics and attributes to track k8s HPA's metric target values for CPU resources. (#2182)Below metrics are introduced to provide insight into HPA scaling configuration for CPU.
k8s.hpa.metric.target.cpu.valuek8s.hpa.metric.target.cpu.average_valuek8s.hpa.metric.target.cpu.average_utilizationk8s: Explains the rationale behind the Kubernetes resource naming convention. (#2245)all: Adds modelling guide for resource and entity. (#2246)service: Adds stability policies for Entity groups. (#2378)Entity groups now require
roleto be filled for attributes.otel: Specifies component.type values for Zipkin and Prometheus exporters (#2229)🧰 Bug fixes 🧰
otel: Removesotel.scopeentity. (#2310)