Skip to content

Commit

Permalink
Fix schema URLs (#2744)
Browse files Browse the repository at this point in the history
* Fix schema URLs

* Add changelog entry
  • Loading branch information
MrAlias authored Mar 28, 2022
1 parent b89da6f commit 1f8ad00
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Fixed

- The `go.opentelemetry.io/otel/schema/*` packages now use the correct schema URL for their `SchemaURL` constant.
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)

### Security

- Upgrade `go.opentelemetry.io/proto/otlp` from `v0.12.0` to `v0.12.1`.
Expand Down
2 changes: 1 addition & 1 deletion semconv/v1.4.0/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.4.0"
// SchemaURL is the schema URL that matches the version of the semantic conventions
// that this package defines. Semconv packages starting from v1.4.0 must declare
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
const SchemaURL = "https://opentelemetry.io/schemas/v1.4.0"
const SchemaURL = "https://opentelemetry.io/schemas/1.4.0"
2 changes: 1 addition & 1 deletion semconv/v1.5.0/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.5.0"
// SchemaURL is the schema URL that matches the version of the semantic conventions
// that this package defines. Semconv packages starting from v1.4.0 must declare
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
const SchemaURL = "https://opentelemetry.io/schemas/v1.5.0"
const SchemaURL = "https://opentelemetry.io/schemas/1.5.0"
2 changes: 1 addition & 1 deletion semconv/v1.6.1/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.6.1"
// SchemaURL is the schema URL that matches the version of the semantic conventions
// that this package defines. Semconv packages starting from v1.4.0 must declare
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
const SchemaURL = "https://opentelemetry.io/schemas/v1.6.1"
const SchemaURL = "https://opentelemetry.io/schemas/1.6.1"
2 changes: 1 addition & 1 deletion semconv/v1.7.0/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ package semconv // import "go.opentelemetry.io/otel/semconv/v1.7.0"
// SchemaURL is the schema URL that matches the version of the semantic conventions
// that this package defines. Semconv packages starting from v1.4.0 must declare
// non-empty schema URL in the form https://opentelemetry.io/schemas/<version>
const SchemaURL = "https://opentelemetry.io/schemas/v1.7.0"
const SchemaURL = "https://opentelemetry.io/schemas/1.7.0"

0 comments on commit 1f8ad00

Please sign in to comment.