1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00

Fix schema urls (#7288)

The 1.0.0 schema now returns a 404 on opentelemetry.io.
This commit is contained in:
Damien Mathieu
2025-09-02 14:51:02 +02:00
committed by GitHub
parent 5e3b939f4b
commit 0174808b2b
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import (
func TestNewLoggerConfig(t *testing.T) { func TestNewLoggerConfig(t *testing.T) {
version := "v1.1.1" version := "v1.1.1"
schemaURL := "https://opentelemetry.io/schemas/1.0.0" schemaURL := "https://opentelemetry.io/schemas/1.37.0"
attr := attribute.NewSet( attr := attribute.NewSet(
attribute.String("user", "alice"), attribute.String("user", "alice"),
attribute.Bool("admin", true), attribute.Bool("admin", true),
+1 -1
View File
@@ -14,7 +14,7 @@ import (
func TestConfig(t *testing.T) { func TestConfig(t *testing.T) {
version := "v1.1.1" version := "v1.1.1"
schemaURL := "https://opentelemetry.io/schemas/1.0.0" schemaURL := "https://opentelemetry.io/schemas/1.37.0"
attr := attribute.NewSet( attr := attribute.NewSet(
attribute.String("user", "alice"), attribute.String("user", "alice"),
attribute.Bool("admin", true), attribute.Bool("admin", true),
+1 -1
View File
@@ -145,7 +145,7 @@ func ExampleNewView() {
Scope: instrumentation.Scope{ Scope: instrumentation.Scope{
Name: "http", Name: "http",
Version: "0.34.0", Version: "0.34.0",
SchemaURL: "https://opentelemetry.io/schemas/1.0.0", SchemaURL: "https://opentelemetry.io/schemas/1.37.0",
}, },
}) })
fmt.Println("name:", stream.Name) fmt.Println("name:", stream.Name)
+1 -1
View File
@@ -18,7 +18,7 @@ import (
) )
var ( var (
schemaURL = "https://opentelemetry.io/schemas/1.0.0" schemaURL = "https://opentelemetry.io/schemas/1.37.0"
completeIP = Instrument{ completeIP = Instrument{
Name: "foo", Name: "foo",
Description: "foo desc", Description: "foo desc",