Class ElasticApmTracer

java.lang.Object
co.elastic.apm.opentracing.ElasticApmTracer
All Implemented Interfaces:
io.opentracing.Tracer, Closeable, AutoCloseable

public class ElasticApmTracer extends Object implements io.opentracing.Tracer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.opentracing.Tracer

    io.opentracing.Tracer.SpanBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentracing.Scope
    activateSpan(io.opentracing.Span span)
     
    io.opentracing.Span
     
    io.opentracing.Tracer.SpanBuilder
    buildSpan(String operationName)
     
    void
     
    <C> io.opentracing.SpanContext
    extract(io.opentracing.propagation.Format<C> format, C carrier)
     
    <C> void
    inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
     
    co.elastic.apm.opentracing.ApmScopeManager
     

    Methods inherited from class java.lang.Object

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

    • ElasticApmTracer

      public ElasticApmTracer()
  • Method Details

    • scopeManager

      public co.elastic.apm.opentracing.ApmScopeManager scopeManager()
      Specified by:
      scopeManager in interface io.opentracing.Tracer
    • activeSpan

      @Nullable public io.opentracing.Span activeSpan()
      Specified by:
      activeSpan in interface io.opentracing.Tracer
    • activateSpan

      public io.opentracing.Scope activateSpan(io.opentracing.Span span)
      Specified by:
      activateSpan in interface io.opentracing.Tracer
    • buildSpan

      public io.opentracing.Tracer.SpanBuilder buildSpan(String operationName)
      Specified by:
      buildSpan in interface io.opentracing.Tracer
    • inject

      public <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
      Specified by:
      inject in interface io.opentracing.Tracer
    • extract

      @Nullable public <C> io.opentracing.SpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
      Specified by:
      extract in interface io.opentracing.Tracer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface io.opentracing.Tracer