Class StTelemetryNoOp

java.lang.Object
com.io7m.stonesignal.server.telemetry.StTelemetryNoOp
All Implemented Interfaces:
com.io7m.darco.api.DDatabaseTelemetryType, com.io7m.repetoir.core.RPServiceType, StTelemetryServiceType

public final class StTelemetryNoOp extends Object implements StTelemetryServiceType
A no-op telemetry service.
  • Method Details

    • noop

      public static StTelemetryNoOp noop()
      Returns:
      A completely no-op service
    • openTelemetry

      public io.opentelemetry.api.OpenTelemetry openTelemetry()
      Specified by:
      openTelemetry in interface StTelemetryServiceType
      Returns:
      The underlying OpenTelemetry service
    • textMapPropagator

      public io.opentelemetry.context.propagation.TextMapPropagator textMapPropagator()
      Specified by:
      textMapPropagator in interface StTelemetryServiceType
      Returns:
      The text map propagator for trace contexts
    • tracer

      public io.opentelemetry.api.trace.Tracer tracer()
      Specified by:
      tracer in interface com.io7m.darco.api.DDatabaseTelemetryType
      Specified by:
      tracer in interface StTelemetryServiceType
      Returns:
      The main tracer
    • meter

      public io.opentelemetry.api.metrics.Meter meter()
      Specified by:
      meter in interface com.io7m.darco.api.DDatabaseTelemetryType
      Specified by:
      meter in interface StTelemetryServiceType
      Returns:
      The main meter
    • logger

      public io.opentelemetry.api.logs.Logger logger()
      Specified by:
      logger in interface com.io7m.darco.api.DDatabaseTelemetryType
      Specified by:
      logger in interface StTelemetryServiceType
      Returns:
      The main logger
    • isNoOp

      public boolean isNoOp()
      Specified by:
      isNoOp in interface com.io7m.darco.api.DDatabaseTelemetryType
      Specified by:
      isNoOp in interface StTelemetryServiceType
      Returns:
      true if this telemetry is in no-op mode
    • toString

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

      public String description()
      Specified by:
      description in interface com.io7m.repetoir.core.RPServiceType