Skip to content

Commit 0174808

Browse files
authored
Fix schema urls (#7288)
The 1.0.0 schema now returns a 404 on opentelemetry.io.
1 parent 5e3b939 commit 0174808

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

log/logger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func TestNewLoggerConfig(t *testing.T) {
1616
version := "v1.1.1"
17-
schemaURL := "https://opentelemetry.io/schemas/1.0.0"
17+
schemaURL := "https://opentelemetry.io/schemas/1.37.0"
1818
attr := attribute.NewSet(
1919
attribute.String("user", "alice"),
2020
attribute.Bool("admin", true),

metric/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func TestConfig(t *testing.T) {
1616
version := "v1.1.1"
17-
schemaURL := "https://opentelemetry.io/schemas/1.0.0"
17+
schemaURL := "https://opentelemetry.io/schemas/1.37.0"
1818
attr := attribute.NewSet(
1919
attribute.String("user", "alice"),
2020
attribute.Bool("admin", true),

sdk/metric/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func ExampleNewView() {
145145
Scope: instrumentation.Scope{
146146
Name: "http",
147147
Version: "0.34.0",
148-
SchemaURL: "https://opentelemetry.io/schemas/1.0.0",
148+
SchemaURL: "https://opentelemetry.io/schemas/1.37.0",
149149
},
150150
})
151151
fmt.Println("name:", stream.Name)

sdk/metric/view_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
var (
21-
schemaURL = "https://opentelemetry.io/schemas/1.0.0"
21+
schemaURL = "https://opentelemetry.io/schemas/1.37.0"
2222
completeIP = Instrument{
2323
Name: "foo",
2424
Description: "foo desc",

0 commit comments

Comments
 (0)