Interface SpanLinksExtractor<REQUEST>
- All Known Implementing Classes:
PropagatorBasedSpanLinksExtractor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extractor of span links for a request.
-
Method Summary
Modifier and TypeMethodDescriptionvoidextract(SpanLinksBuilder spanLinks, io.opentelemetry.context.Context parentContext, REQUEST request) ExtractsSpanContexts that should be linked to the newly created span and adds them tospanLinks.
-
Method Details
-
extract
void extract(SpanLinksBuilder spanLinks, io.opentelemetry.context.Context parentContext, REQUEST request) ExtractsSpanContexts that should be linked to the newly created span and adds them tospanLinks.A link points to a related span other than the parent (for example, the producer span of a message being processed). Implementations should not derive link targets from the span currently in
parentContext;parentContextis provided for access to request-scoped state attached viaContextKeys (for example, baggage set earlier in the pipeline).
-