Events returns the events of the span
()
| 146 | |
| 147 | // Events returns the events of the span |
| 148 | func (ros *readOnlySpan) Events() []sdktrace.Event { |
| 149 | var events []*otlptracev1.Span_Event |
| 150 | if err := UnmarshalProtoJSONs(ros.DB.Events, &otlptracev1.Span_Event{}, &events); err != nil { |
| 151 | slog.Warn("failed to unmarshal events", "error", err) |
| 152 | } |
| 153 | return telemetry.SpanEventsFromPB(events) |
| 154 | } |
| 155 | |
| 156 | // Status returns the status of the span |
| 157 | func (ros *readOnlySpan) Status() sdktrace.Status { |
no test coverage detected