Skip to content

Commit

Permalink
Revert "Handle translation of OC span.kind attribute for client/server (
Browse files Browse the repository at this point in the history
#1636)" (#1775)

This reverts commit 7071a9d.

I am reverting the commit since it broke the master build.
  • Loading branch information
tigrannajaryan authored Sep 14, 2020
1 parent b7c9d92 commit 319c6da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions translator/internaldata/oc_to_traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 0 additions & 20 deletions translator/internaldata/oc_to_traces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 319c6da

Please sign in to comment.