Skip to content

Commit 1f8ad00

Browse files
authored
Fix schema URLs (#2744)
* Fix schema URLs * Add changelog entry
1 parent b89da6f commit 1f8ad00

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
88

99
## [Unreleased]
1010

11+
### Fixed
12+
13+
- The `go.opentelemetry.io/otel/schema/*` packages now use the correct schema URL for their `SchemaURL` constant.
14+
Instead of using `"https://opentelemetry.io/schemas/v<version>"` they now use the correct URL without a `v` prefix, `"https://opentelemetry.io/schemas/<version>"`. (#2743, #2744)
15+
1116
### Security
1217

1318
- Upgrade `go.opentelemetry.io/proto/otlp` from `v0.12.0` to `v0.12.1`.

semconv/v1.4.0/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.4.0"
1717
// SchemaURL is the schema URL that matches the version of the semantic conventions
1818
// that this package defines. Semconv packages starting from v1.4.0 must declare
1919
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
20-
const SchemaURL = "https://opentelemetry.io/schemas/v1.4.0"
20+
const SchemaURL = "https://opentelemetry.io/schemas/1.4.0"

semconv/v1.5.0/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.5.0"
1717
// SchemaURL is the schema URL that matches the version of the semantic conventions
1818
// that this package defines. Semconv packages starting from v1.4.0 must declare
1919
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
20-
const SchemaURL = "https://opentelemetry.io/schemas/v1.5.0"
20+
const SchemaURL = "https://opentelemetry.io/schemas/1.5.0"

semconv/v1.6.1/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.6.1"
1717
// SchemaURL is the schema URL that matches the version of the semantic conventions
1818
// that this package defines. Semconv packages starting from v1.4.0 must declare
1919
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
20-
const SchemaURL = "https://opentelemetry.io/schemas/v1.6.1"
20+
const SchemaURL = "https://opentelemetry.io/schemas/1.6.1"

semconv/v1.7.0/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.7.0"
1717
// SchemaURL is the schema URL that matches the version of the semantic conventions
1818
// that this package defines. Semconv packages starting from v1.4.0 must declare
1919
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
20-
const SchemaURL = "https://opentelemetry.io/schemas/v1.7.0"
20+
const SchemaURL = "https://opentelemetry.io/schemas/1.7.0"

0 commit comments

Comments
 (0)