Skip to content

Commit

Permalink
remove double import
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Mar 6, 2024
1 parent 19fae1d commit 1fc2a34
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"go.opentelemetry.io/otel/trace"

"go.opentelemetry.io/otel/attribute"
oteltrace "go.opentelemetry.io/otel/trace"
)

func init() {
Expand Down Expand Up @@ -86,7 +85,7 @@ func TestTrace200(t *testing.T) {
require.Len(t, spans, 1)
span := spans[0]
assert.Equal(t, "/user/:id", span.Name())
assert.Equal(t, oteltrace.SpanKindServer, span.SpanKind())
assert.Equal(t, trace.SpanKindServer, span.SpanKind())
attr := span.Attributes()
assert.Contains(t, attr, attribute.String("net.host.name", "foobar"))
assert.Contains(t, attr, attribute.Int("http.status_code", http.StatusOK))
Expand Down

0 comments on commit 1fc2a34

Please sign in to comment.