From db9e51668dd33a32d4caf76063537e7734723012 Mon Sep 17 00:00:00 2001 From: Martin Parm Date: Fri, 2 Aug 2024 12:12:03 +0200 Subject: [PATCH] feat: Add support for "length" span attribute --- routingv8/request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routingv8/request.go b/routingv8/request.go index da4e9d7..ebecabb 100644 --- a/routingv8/request.go +++ b/routingv8/request.go @@ -493,6 +493,7 @@ type SpanAttribute string const ( SpanAttributeNames SpanAttribute = "names" SpanAttributeMaxSpeed SpanAttribute = "maxSpeed" + SpanAttributeLength SpanAttribute = "length" ) func (t *SpanAttribute) String() string { @@ -501,6 +502,8 @@ func (t *SpanAttribute) String() string { return string(SpanAttributeNames) case SpanAttributeMaxSpeed: return string(SpanAttributeMaxSpeed) + case SpanAttributeLength: + return string(SpanAttributeLength) default: return invalid }