-
public final class FilteringSpanExporterBuilder
-
-
Method Summary
Modifier and Type Method Description FilteringSpanExporterBuilderrejectSpansNamed(String name)Creates a SpanExporter that will not export any spans whose name matches the given name. FilteringSpanExporterBuilderrejectSpansNamed(Predicate<String> spanNamePredicate)Creates a SpanExporter that will not export any spans whose name matches the given predicate.All other spans will be exported by the delegate. FilteringSpanExporterBuilderrejectSpansWithNameContaining(String substring)Creates a SpanExporter that will not export any spans whose name contains the givensubstring. FilteringSpanExporterBuilderrejecting(Predicate<SpanData> predicate)Creates a span exporter that will not export any spans whose SpanData matches the rejectingpredicate. FilteringSpanExporterBuilderrejectSpansWithAttributesMatching(Map<AttributeKey<out Object>, Predicate<out Object>> attrRejection)SpanExporterbuild()-
-
Method Detail
-
rejectSpansNamed
FilteringSpanExporterBuilder rejectSpansNamed(String name)
Creates a SpanExporter that will not export any spans whose name matches the given name. Allother spans will be exported by the delegate.
- Parameters:
name- - Entire case sensitive span name to match for exclusion
-
rejectSpansNamed
FilteringSpanExporterBuilder rejectSpansNamed(Predicate<String> spanNamePredicate)
Creates a SpanExporter that will not export any spans whose name matches the given predicate.All other spans will be exported by the delegate.
- Parameters:
spanNamePredicate- - predicate to test the span name atainst
-
rejectSpansWithNameContaining
FilteringSpanExporterBuilder rejectSpansWithNameContaining(String substring)
Creates a SpanExporter that will not export any spans whose name contains the givensubstring. All other spans will be exported by the delegate.
- Parameters:
substring- - Substring go match within the span name
-
rejecting
FilteringSpanExporterBuilder rejecting(Predicate<SpanData> predicate)
Creates a span exporter that will not export any spans whose SpanData matches the rejectingpredicate.
- Parameters:
predicate- A predicate that returns true when a span is to be rejected
-
rejectSpansWithAttributesMatching
FilteringSpanExporterBuilder rejectSpansWithAttributesMatching(Map<AttributeKey<out Object>, Predicate<out Object>> attrRejection)
-
build
SpanExporter build()
-
-
-
-