Interface OpenTelemetryInfo


public interface OpenTelemetryInfo
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.api.OpenTelemetry
    Get the contained OpenTelemetry object
    boolean
    Checks if the contained OpenTelemetry object is a no-op at the time of creation.
  • Method Details

    • isEnabled

      boolean isEnabled()
      Checks if the contained OpenTelemetry object is a no-op at the time of creation. This method is intended to be used to avoid activating functions that uses OpenTelemetry if OpenTelemetry will no-op for performance enhancement.
      Returns:
      true if the contained OpenTelemetry object was enabled at the time this OpenTelemetryInfo was created and false if it is a no-op
    • getOpenTelemetry

      io.opentelemetry.api.OpenTelemetry getOpenTelemetry()
      Get the contained OpenTelemetry object
      Returns:
      the openTelemetry object contained within this OpenTelemetryInfo