TestNew | Basic middleware creation | Creates span with trace ID and span ID for each request |
TestWithOptions_ServiceName | Custom service name configuration | Sets service tag to configured value |
TestWithOptions_PropagateTraceID | Existing trace ID propagation | Preserves incoming trace ID from request headers |
TestWithOptions_ParentID | Parent span ID propagation | Extracts and stores parent span ID from request headers |
TestWithOptions_OnSpan | Span completion callback | Invokes OnSpan callback with completed span including duration |
TestWithOptions_Sampler | Sampling control | Skips span creation when sampler returns false |
TestAddTag | Custom tag addition | Adds custom key-value tags to span |
TestAddEvent | Event logging | Records timestamped events with metadata in span |
TestTraceID | Trace ID retrieval | Returns current trace ID from context |
TestSpanID | Span ID retrieval | Returns current span ID from context |
TestCollector | Span collection | Collects multiple spans and supports clearing |
TestResponseHeader | Response header propagation | Sets X-Trace-ID header in response |
TestHTTPHeaders | Downstream header generation | Generates headers for propagating trace context to downstream services |