-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
area/documentationImprovements or additions to documentation.Improvements or additions to documentation.
Milestone
Description
I only found this by mistake. It isn't obvious from the reference documentation how you would use this.
I'm assuming it works as follows.
extension SpanAttribute {
var httpMethod: SpanAttributeKey<String> { .init(name: "http.method") }
}
span.attributes.httpMethod = .string("GET")
Is there anyway to get this to work
func setMethod(_ method: String) {
span.attributes.httpMethod = method
}
Metadata
Metadata
Assignees
Labels
area/documentationImprovements or additions to documentation.Improvements or additions to documentation.