SpanFromContext returns the current Span from the context.
(ctx context.Context)
| 69 | |
| 70 | // SpanFromContext returns the current Span from the context. |
| 71 | func SpanFromContext(ctx context.Context) *Span { |
| 72 | return &Span{ |
| 73 | otelSpan: trace.SpanFromContext(ctx), |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | // Span is wrapper around otel trace.Span. |
| 78 | // Span is the individual component of a trace. It represents a |
no outgoing calls
no test coverage detected
searching dependent graphs…