Skip to content

Commit

Permalink
feat: Add support for "length" span attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
parmus committed Aug 2, 2024
1 parent 038b5c2 commit db9e516
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routingv8/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ type SpanAttribute string
const (
SpanAttributeNames SpanAttribute = "names"
SpanAttributeMaxSpeed SpanAttribute = "maxSpeed"
SpanAttributeLength SpanAttribute = "length"
)

func (t *SpanAttribute) String() string {
Expand All @@ -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
}
Expand Down

0 comments on commit db9e516

Please sign in to comment.