From 6f9429bdd4d029aaeefb3bca8b34b92bfd52fc9d Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Tue, 3 Oct 2023 17:09:03 -0700 Subject: [PATCH] Fixing comment --- exporter/awsxrayexporter/internal/translator/segment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awsxrayexporter/internal/translator/segment.go b/exporter/awsxrayexporter/internal/translator/segment.go index d6a96f93ffbd..ff0e4079292a 100644 --- a/exporter/awsxrayexporter/internal/translator/segment.go +++ b/exporter/awsxrayexporter/internal/translator/segment.go @@ -91,11 +91,11 @@ func MakeSegmentDocuments(span ptrace.Span, resource pcommon.Resource, indexedAt return nil, err } -// HasDependencySubsegment We will move to using isRemote once the collector supports deserializing it. Until then, we will rely on aws.span.kind. func HasDependencySubsegment(span ptrace.Span) bool { return (span.Kind() != ptrace.SpanKindServer) && (span.Kind() != ptrace.SpanKindInternal) } +// IsLocalRoot We will move to using isRemote once the collector supports deserializing it. Until then, we will rely on aws.span.kind. func IsLocalRoot(span ptrace.Span) bool { if myAwsSpanKind, ok := span.Attributes().Get(awsSpanKind); ok { if localRoot == myAwsSpanKind.Str() {