SetAttributes adds extra attributes to the span. Use for MCP extensions or for response-side attributes the caller learns later (e.g. rpc.response.status_code).
(attrs ...attribute.KeyValue)
| 162 | // or for response-side attributes the caller learns later |
| 163 | // (e.g. rpc.response.status_code). |
| 164 | func (s *Span) SetAttributes(attrs ...attribute.KeyValue) { |
| 165 | if s == nil { |
| 166 | return |
| 167 | } |
| 168 | s.span.SetAttributes(attrs...) |
| 169 | } |
| 170 | |
| 171 | // RecordError marks the span as failed and stores error.type for the |
| 172 | // duration metric. errType should be a short, low-cardinality string; |
no outgoing calls
no test coverage detected