From 1052861b3792e237ab0184281b3a0789e887823a Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Tue, 10 Sep 2024 16:02:04 -0600 Subject: [PATCH] adding default service name as tracetest for root span --- server/traces/span_entitiess.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/traces/span_entitiess.go b/server/traces/span_entitiess.go index 6a005bf33f..d893783c4d 100644 --- a/server/traces/span_entitiess.go +++ b/server/traces/span_entitiess.go @@ -23,7 +23,8 @@ const ( TracetestMetadataFieldStatusCode string = "tracetest.span.status_code" TracetestMetadataFieldStatusDescription string = "tracetest.span.status_description" - MetadataServiceName string = "service.name" + MetadataServiceName string = "service.name" + TracetestServiceName string = "tracetest" ) func NewAttributes(inputs ...map[string]string) Attributes { @@ -372,5 +373,6 @@ func (span Span) setTriggerResultAttributes(result trigger.TriggerResult) Span { span.Attributes.Set("tracetest.response.headers", string(jsonheaders)) } + span.Attributes.Set(MetadataServiceName, TracetestServiceName) return span }