Skip to content

Commit

Permalink
Linted test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfonseca-tc committed Dec 9, 2021
1 parent 151d4c3 commit 48c496d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporter/datadogexporter/translate_traces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ func TestTracesSpanNamingOption(t *testing.T) {
// create mock resource span data
// toggle on errors and custom service naming to test edge case code paths
rs := NewResourceSpansData(mockTraceID, mockSpanID, mockParentSpanID, pdata.StatusCodeUnset, false, mockEndTime)

// start with span name as resource name set to true
cfgSpanNameAsResourceName := config.Config{
Traces: config.TracesConfig{
Expand All @@ -1554,7 +1554,7 @@ func TestTracesSpanNamingOption(t *testing.T) {

// translate mocks to datadog traces
datadogPayloadSpanNameAsResourceName := resourceSpansToDatadogSpans(rs, hostname, &cfgSpanNameAsResourceName, denylister, map[string]string{})

// ensure the resource name is replaced with the span name when the option is set
assert.Equal(t, "End-To-End Here", datadogPayloadSpanNameAsResourceName.Traces[0].Spans[0].Name)
}
}

0 comments on commit 48c496d

Please sign in to comment.