Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Nov 9, 2024
1 parent df2e1ed commit 1ba1f71
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions internal/pkg/opentelemetry/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,16 @@ func TestTrace(t *testing.T) {
EndTime: endTime,
Resource: instResource(),
InstrumentationLibrary: instrumentation.Scope{
Name: "go.opentelemetry.io/auto/foo/bar",
Version: "test",
SchemaURL: semconv.SchemaURL,
Name: "go.opentelemetry.io/auto/foo/bar",
Version: "test",
SchemaURL: semconv.SchemaURL,
Attributes: attribute.NewSet(),
},
InstrumentationScope: instrumentation.Scope{
Name: "go.opentelemetry.io/auto/foo/bar",
Version: "test",
SchemaURL: semconv.SchemaURL,
Name: "go.opentelemetry.io/auto/foo/bar",
Version: "test",
SchemaURL: semconv.SchemaURL,
Attributes: attribute.NewSet(),
},
},
},
Expand Down Expand Up @@ -165,12 +167,14 @@ func TestTrace(t *testing.T) {
EndTime: endTime,
Resource: instResource(),
InstrumentationLibrary: instrumentation.Scope{
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Attributes: attribute.NewSet(),
},
InstrumentationScope: instrumentation.Scope{
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Attributes: attribute.NewSet(),
},
Attributes: []attribute.KeyValue{
semconv.HTTPRequestMethodKey.String("GET"),
Expand Down Expand Up @@ -220,12 +224,14 @@ func TestTrace(t *testing.T) {
EndTime: endTime,
Resource: instResource(),
InstrumentationLibrary: instrumentation.Scope{
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Attributes: attribute.NewSet(),
},
InstrumentationScope: instrumentation.Scope{
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Name: "go.opentelemetry.io/auto/net/http",
Version: "test",
Attributes: attribute.NewSet(),
},
Attributes: []attribute.KeyValue{
semconv.HTTPRequestMethodKey.String("GET"),
Expand Down Expand Up @@ -277,14 +283,16 @@ func TestTrace(t *testing.T) {
EndTime: endTime,
Resource: instResource(),
InstrumentationLibrary: instrumentation.Scope{
Name: "user-tracer",
Version: "v1",
SchemaURL: "user-schema",
Name: "user-tracer",
Version: "v1",
SchemaURL: "user-schema",
Attributes: attribute.NewSet(),
},
InstrumentationScope: instrumentation.Scope{
Name: "user-tracer",
Version: "v1",
SchemaURL: "user-schema",
Name: "user-tracer",
Version: "v1",
SchemaURL: "user-schema",
Attributes: attribute.NewSet(),
},
Attributes: []attribute.KeyValue{
attribute.Int64("int.value", 42),
Expand Down

0 comments on commit 1ba1f71

Please sign in to comment.