You've already forked opentelemetry-go
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:
+1
-1
@@ -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),
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user