Interface IdServerTelemetryServiceType
- All Superinterfaces:
com.io7m.repetoir.core.RPServiceType
- All Known Implementing Classes:
IdServerTelemetryNoOp,IdServerTelemetryService
public interface IdServerTelemetryServiceType
extends com.io7m.repetoir.core.RPServiceType
The type of server telemetry services.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisNoOp()io.opentelemetry.api.logs.Loggerlogger()io.opentelemetry.api.metrics.Metermeter()static voidSet the error code for the current span.static voidsetSpanErrorCode(IdErrorCode errorCode) Set the error code for the current span.io.opentelemetry.api.trace.Tracertracer()Methods inherited from interface com.io7m.repetoir.core.RPServiceType
description
-
Method Details
-
tracer
io.opentelemetry.api.trace.Tracer tracer()- Returns:
- The main tracer
-
meter
io.opentelemetry.api.metrics.Meter meter()- Returns:
- The main meter
-
logger
io.opentelemetry.api.logs.Logger logger()- Returns:
- The main logger
-
setSpanErrorCode
Set the error code for the current span.- Parameters:
errorCode- The error code
-
recordSpanException
Set the error code for the current span.- Parameters:
e- The error code
-
isNoOp
boolean isNoOp()- Returns:
trueif this telemetry service is a no-op service
-