diff --git a/translator/internaldata/oc_to_traces.go b/translator/internaldata/oc_to_traces.go index 9b97c089a33..d6835d079e3 100644 --- a/translator/internaldata/oc_to_traces.go +++ b/translator/internaldata/oc_to_traces.go @@ -248,10 +248,6 @@ func ocSpanKindToInternal(ocKind octrace.Span_SpanKind, ocAttrs *octrace.Span_At if ok && strVal != nil { var otlpKind pdata.SpanKind switch tracetranslator.OpenTracingSpanKind(strVal.StringValue.GetValue()) { - case tracetranslator.OpenTracingSpanKindClient: - otlpKind = pdata.SpanKindCLIENT - case tracetranslator.OpenTracingSpanKindServer: - otlpKind = pdata.SpanKindSERVER case tracetranslator.OpenTracingSpanKindConsumer: otlpKind = pdata.SpanKindCONSUMER case tracetranslator.OpenTracingSpanKindProducer: diff --git a/translator/internaldata/oc_to_traces_test.go b/translator/internaldata/oc_to_traces_test.go index 34aa46b95cb..18a46e18e0a 100644 --- a/translator/internaldata/oc_to_traces_test.go +++ b/translator/internaldata/oc_to_traces_test.go @@ -161,26 +161,6 @@ func TestOcSpanKindToInternal(t *testing.T) { }, otlpKind: otlptrace.Span_SPAN_KIND_PRODUCER, }, - { - ocKind: octrace.Span_SPAN_KIND_UNSPECIFIED, - ocAttrs: &octrace.Span_Attributes{ - AttributeMap: map[string]*octrace.AttributeValue{ - "span.kind": {Value: &octrace.AttributeValue_StringValue{ - StringValue: &octrace.TruncatableString{Value: "client"}}}, - }, - }, - otlpKind: otlptrace.Span_CLIENT, - }, - { - ocKind: octrace.Span_SPAN_KIND_UNSPECIFIED, - ocAttrs: &octrace.Span_Attributes{ - AttributeMap: map[string]*octrace.AttributeValue{ - "span.kind": {Value: &octrace.AttributeValue_StringValue{ - StringValue: &octrace.TruncatableString{Value: "server"}}}, - }, - }, - otlpKind: otlptrace.Span_SERVER, - }, { ocKind: octrace.Span_SPAN_KIND_UNSPECIFIED, ocAttrs: &octrace.Span_Attributes{