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
A no-op telemetry service.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisNoOp()io.opentelemetry.api.logs.Loggerlogger()io.opentelemetry.api.metrics.Metermeter()static StTelemetryNoOpnoop()io.opentelemetry.api.OpenTelemetryio.opentelemetry.context.propagation.TextMapPropagatortoString()io.opentelemetry.api.trace.Tracertracer()
-
Method Details
-
noop
- Returns:
- A completely no-op service
-
openTelemetry
public io.opentelemetry.api.OpenTelemetry openTelemetry()- Specified by:
openTelemetryin interfaceStTelemetryServiceType- Returns:
- The underlying OpenTelemetry service
-
textMapPropagator
public io.opentelemetry.context.propagation.TextMapPropagator textMapPropagator()- Specified by:
textMapPropagatorin interfaceStTelemetryServiceType- Returns:
- The text map propagator for trace contexts
-
tracer
public io.opentelemetry.api.trace.Tracer tracer()- Specified by:
tracerin interfacecom.io7m.darco.api.DDatabaseTelemetryType- Specified by:
tracerin interfaceStTelemetryServiceType- Returns:
- The main tracer
-
meter
public io.opentelemetry.api.metrics.Meter meter()- Specified by:
meterin interfacecom.io7m.darco.api.DDatabaseTelemetryType- Specified by:
meterin interfaceStTelemetryServiceType- Returns:
- The main meter
-
logger
public io.opentelemetry.api.logs.Logger logger()- Specified by:
loggerin interfacecom.io7m.darco.api.DDatabaseTelemetryType- Specified by:
loggerin interfaceStTelemetryServiceType- Returns:
- The main logger
-
isNoOp
public boolean isNoOp()- Specified by:
isNoOpin interfacecom.io7m.darco.api.DDatabaseTelemetryType- Specified by:
isNoOpin interfaceStTelemetryServiceType- Returns:
trueif this telemetry is in no-op mode
-
toString
-
description
- Specified by:
descriptionin interfacecom.io7m.repetoir.core.RPServiceType
-