Class OpenTelemetryContext

  • All Implemented Interfaces:
    TraceContext

    public class OpenTelemetryContext
    extends java.lang.Object
    implements TraceContext
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenTelemetryContext​(io.opentelemetry.api.trace.Tracer tracer, io.opentelemetry.context.Context context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openqa.selenium.remote.tracing.opentelemetry.OpenTelemetrySpan createSpan​(java.lang.String name)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getId()  
      int hashCode()  
      java.lang.String toString()  
      java.lang.Runnable wrap​(java.lang.Runnable runnable)  
      <V> java.util.concurrent.Callable<V> wrap​(java.util.concurrent.Callable<V> callable)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpenTelemetryContext

        public OpenTelemetryContext​(io.opentelemetry.api.trace.Tracer tracer,
                                    io.opentelemetry.context.Context context)
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface TraceContext
      • createSpan

        public org.openqa.selenium.remote.tracing.opentelemetry.OpenTelemetrySpan createSpan​(java.lang.String name)
        Specified by:
        createSpan in interface TraceContext
      • wrap

        public java.lang.Runnable wrap​(java.lang.Runnable runnable)
        Specified by:
        wrap in interface TraceContext
      • wrap

        public <V> java.util.concurrent.Callable<V> wrap​(java.util.concurrent.Callable<V> callable)
        Specified by:
        wrap in interface TraceContext
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object