From 1fc2a3438a87b4ce519e5a43b1619f28fb080054 Mon Sep 17 00:00:00 2001 From: dmathieu <42@dmathieu.com> Date: Wed, 6 Mar 2024 14:40:34 +0100 Subject: [PATCH] remove double import --- .../github.com/gin-gonic/gin/otelgin/test/gintrace_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go b/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go index c2c9355b578..8083deeff7a 100644 --- a/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go +++ b/instrumentation/github.com/gin-gonic/gin/otelgin/test/gintrace_test.go @@ -25,7 +25,6 @@ import ( "go.opentelemetry.io/otel/trace" "go.opentelemetry.io/otel/attribute" - oteltrace "go.opentelemetry.io/otel/trace" ) func init() { @@ -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))