Class DistributedTracingExtension

java.lang.Object
io.cloudevents.core.extensions.DistributedTracingExtension
All Implemented Interfaces:
io.cloudevents.CloudEventExtension

public final class DistributedTracingExtension extends Object implements io.cloudevents.CloudEventExtension
This extension embeds context from Distributed Tracing so that distributed systems can include traces that span an event-driven system.
See Also:
  • Field Details

  • Constructor Details

    • DistributedTracingExtension

      public DistributedTracingExtension()
  • Method Details

    • getTraceparent

      public String getTraceparent()
      Returns:
      the traceparent contained in this extension.
    • setTraceparent

      public void setTraceparent(String traceparent)
      Parameters:
      traceparent - the string to set as traceparent.
    • getTracestate

      public String getTracestate()
      Returns:
      the tracestate contained in this extension.
    • setTracestate

      public void setTracestate(String tracestate)
      Parameters:
      tracestate - the string to set as tracestate.
    • readFrom

      public void readFrom(io.cloudevents.CloudEventExtensions extensions)
      Specified by:
      readFrom in interface io.cloudevents.CloudEventExtension
    • getValue

      public Object getValue(String key)
      Specified by:
      getValue in interface io.cloudevents.CloudEventExtension
    • getKeys

      public Set<String> getKeys()
      Specified by:
      getKeys in interface io.cloudevents.CloudEventExtension
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object