Interface Instrumentation


public interface Instrumentation
Azure Instrumentation for Event Hubs or Service Bus processor.
  • Method Details

    • getName

      String getName()
      Get the name of destination entity.
      Returns:
      name the name of destination entity
    • getType

      Get type.
      Returns:
      type the type
      See Also:
    • getException

      Throwable getException()
      Returns:
      the exception.
    • getStatus

      Get the status of the instrumented component.
      Returns:
      the status.
    • setStatus

      void setStatus(Instrumentation.Status status)
      Set the status of the component.
      Parameters:
      status - the status to set.
    • setStatus

      void setStatus(Instrumentation.Status status, Throwable exception)
      Set the status of the component.
      Parameters:
      status - the status to set.
      exception - the exception thrown by the component.
    • getId

      default String getId()
      Get the unique id.
      Returns:
      the id string.
    • buildId

      static String buildId(Instrumentation.Type type, String name)
      Build the unique id.
      Parameters:
      type - the instrumentation type.
      name - the instrumentation name.
      Returns:
      the unique strings.