Class AttributeModifyingSpanExporter

  • All Implemented Interfaces:
    io.opentelemetry.sdk.trace.export.SpanExporter , java.io.Closeable , java.lang.AutoCloseable

    
    public final class AttributeModifyingSpanExporter
     implements SpanExporter
                        

    A SpanExporter that is configured to modify some of its attributes at export time.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      CompletableResultCode export(Collection<SpanData> spans)
      CompletableResultCode flush()
      CompletableResultCode shutdown()
      • Methods inherited from class io.opentelemetry.sdk.trace.export.SpanExporter

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributeModifyingSpanExporter

        AttributeModifyingSpanExporter(SpanExporter delegate, Function2<AttributeKey<?>, Object, Object> spanAttributeReplacements)