Attributes returns the attributes of the span
()
| 128 | |
| 129 | // Attributes returns the attributes of the span |
| 130 | func (ros *readOnlySpan) Attributes() []attribute.KeyValue { |
| 131 | var attrs []*otlpcommonv1.KeyValue |
| 132 | if err := UnmarshalProtoJSONs(ros.DB.Attributes, &otlpcommonv1.KeyValue{}, &attrs); err != nil { |
| 133 | slog.Warn("failed to unmarshal attributes", "error", err) |
| 134 | } |
| 135 | return telemetry.AttributesFromProto(attrs) |
| 136 | } |
| 137 | |
| 138 | // Links returns the links of the span |
| 139 | func (ros *readOnlySpan) Links() []sdktrace.Link { |