Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Add experimental observability metrics for manual reader in `go.opentelemetry.io/otel/sdk/metric`. (#7524)
- Add experimental observability metrics for periodic reader in `go.opentelemetry.io/otel/sdk/metric`. (#7571)
- Support `OTEL_EXPORTER_OTLP_LOGS_INSECURE` and `OTEL_EXPORTER_OTLP_INSECURE` environmental variables in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#7608)
- The `go.opentelemetry.io/otel/semconv/v1.38.0` package.
The package contains semantic conventions from the `v1.38.0` version of the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.38.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.37.0.`(#7648)

### Fixed

Expand Down
1 change: 0 additions & 1 deletion internal/tools/semconvkit/templates/error_type.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
//
// ErrorType() string
//
//
// then the returned attribute has the value of err.ErrorType(). Otherwise, the
// returned attribute has a value derived from the concrete type of err.
//
Expand Down
1 change: 1 addition & 0 deletions semconv/templates/registry/go/instrument.j2
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func (m {{ name }}) Record(ctx context.Context, val {{ value_type(metric) | lowe
func (m {{ name }}) RecordSet(ctx context.Context, val {{ value_type(metric) | lower }}, set attribute.Set) {
if set.Len() == 0 {
m.{{ inst }}.Record(ctx, val)
return
}

o := recOptPool.Get().(*[]metric.RecordOption)
Expand Down
5 changes: 3 additions & 2 deletions semconv/templates/registry/go/metric.go.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

// Package httpconv provides types and functionality for OpenTelemetry semantic
{% set pkg = ctx.root_namespace | camel_case | lower ~ "conv" -%}
// Package {{ pkg }} provides types and functionality for OpenTelemetry semantic
// conventions in the "{{ ctx.root_namespace }}" namespace.
package {{ ctx.root_namespace | camel_case | lower }}conv
package {{ pkg }}

import (
"context"
Expand Down
29 changes: 29 additions & 0 deletions semconv/v1.38.0/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!-- Generated. DO NOT MODIFY. -->
# Migration from v1.37.0 to v1.38.0

The `go.opentelemetry.io/otel/semconv/v1.38.0` package should be a drop-in replacement for `go.opentelemetry.io/otel/semconv/v1.37.0` with the following exceptions.

## Removed

The following declarations have been removed.
Refer to the [OpenTelemetry Semantic Conventions documentation] for deprecation instructions.

If the type is not listed in the documentation as deprecated, it has been removed in this version due to lack of applicability or use.
If you use any of these non-deprecated declarations in your Go application, please [open an issue] describing your use-case.

- `ProcessPagingFaultTypeKey`
- `ProcessPagingFaultTypeMajor`
- `ProcessPagingFaultTypeMinor`
- `SystemCPULogicalNumber`
- `SystemCPULogicalNumberKey`
- `SystemPagingTypeKey`
- `SystemPagingTypeMajor`
- `SystemPagingTypeMinor`
- `SystemProcessStatusDefunct`
- `SystemProcessStatusKey`
- `SystemProcessStatusRunning`
- `SystemProcessStatusSleeping`
- `SystemProcessStatusStopped`

[OpenTelemetry Semantic Conventions documentation]: https://github.com/open-telemetry/semantic-conventions
[open an issue]: https://github.com/open-telemetry/opentelemetry-go/issues/new?template=Blank+issue
3 changes: 3 additions & 0 deletions semconv/v1.38.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Semconv v1.38.0

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/semconv/v1.38.0)](https://pkg.go.dev/go.opentelemetry.io/otel/semconv/v1.38.0)
Loading
Loading