(ctx context.Context)
| 790 | } |
| 791 | |
| 792 | func getSpanContext(ctx context.Context) (jaeger.SpanContext, bool) { |
| 793 | span := opentracing.SpanFromContext(ctx) |
| 794 | if span == nil { |
| 795 | return jaeger.SpanContext{}, false |
| 796 | } |
| 797 | |
| 798 | spanContext, ok := span.Context().(jaeger.SpanContext) |
| 799 | if !ok { |
| 800 | return jaeger.SpanContext{}, false |
| 801 | } |
| 802 | |
| 803 | return spanContext, true |
| 804 | } |
| 805 | |
| 806 | // extractStats returns the stats for a given time range |
| 807 | // this function is similar to extractSampleStream |
no test coverage detected