Skip to content

Commit

Permalink
sapmreceiver: migrate to latest semconv version (open-telemetry#35312)
Browse files Browse the repository at this point in the history
Description: The version of semconv is upgraded from v1.6.1 to v1.27.0

Link to tracking Issue:
open-telemetry#22095

Testing: Tests passed
  • Loading branch information
narcis96 committed Sep 20, 2024
1 parent d614c4a commit 1487e43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions receiver/sapmreceiver/trace_receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"go.opentelemetry.io/collector/pdata/ptrace"
"go.opentelemetry.io/collector/receiver"
"go.opentelemetry.io/collector/receiver/receivertest"
conventions "go.opentelemetry.io/collector/semconv/v1.6.1"
conventions "go.opentelemetry.io/collector/semconv/v1.27.0"

"github.com/open-telemetry/opentelemetry-collector-contrib/internal/common/testutil"
"github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk"
Expand Down Expand Up @@ -93,8 +93,8 @@ func grpcFixture(t1 time.Time) *model.Batch {
StartTime: t1,
Duration: 10 * time.Minute,
Tags: []model.KeyValue{
model.String(conventions.OtelStatusDescription, "Stale indices"),
model.String(conventions.OtelStatusCode, "ERROR"),
model.String(conventions.AttributeOTelStatusDescription, "Stale indices"),
model.String(conventions.AttributeOTelStatusCode, "ERROR"),
model.Bool("error", true),
},
References: []model.SpanRef{
Expand All @@ -112,8 +112,8 @@ func grpcFixture(t1 time.Time) *model.Batch {
StartTime: t1.Add(10 * time.Minute),
Duration: 2 * time.Second,
Tags: []model.KeyValue{
model.String(conventions.OtelStatusDescription, "Frontend crash"),
model.String(conventions.OtelStatusCode, "ERROR"),
model.String(conventions.AttributeOTelStatusDescription, "Frontend crash"),
model.String(conventions.AttributeOTelStatusCode, "ERROR"),
model.Bool("error", true),
},
},
Expand Down

0 comments on commit 1487e43

Please sign in to comment.