Skip to content

Commit ce2eb02

Browse files
authored
Merge branch 'master' into expose-opts-via-expvar
2 parents 31da46a + 2e1b869 commit ce2eb02

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/opentelemetry/app/exporter/elasticsearchexporter/esmodeltranslator/modeltranslator.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ func getTagFromSpanKind(spanKind pdata.SpanKind) (dbmodel.KeyValue, bool) {
367367

368368
func getTagFromStatusCode(statusCode pdata.StatusCode) (dbmodel.KeyValue, bool) {
369369
return dbmodel.KeyValue{
370-
Key: tracetranslator.TagStatusCode,
371-
// TODO is this ok?
370+
Key: tracetranslator.TagStatusCode,
372371
Value: statusCode.String(),
373372
Type: dbmodel.StringType,
374373
}, true

cmd/opentelemetry/app/exporter/elasticsearchexporter/esmodeltranslator/modeltranslator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestConvertSpan(t *testing.T) {
151151
StartTimeMillis: 1,
152152
Tags: []dbmodel.KeyValue{
153153
{Key: "span.kind", Type: dbmodel.StringType, Value: "client"},
154-
{Key: "status.code", Type: dbmodel.StringType, Value: "Cancelled"},
154+
{Key: "status.code", Type: dbmodel.StringType, Value: "STATUS_CODE_CANCELLED"},
155155
{Key: "error", Type: dbmodel.BoolType, Value: "true"},
156156
{Key: "status.message", Type: dbmodel.StringType, Value: "messagetext"},
157157
{Key: "foo", Type: dbmodel.BoolType, Value: "true"},

0 commit comments

Comments
 (0)