Package com.io7m.idstore.server.service.telemetry.api

# 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 Type
  Method
  Description
  `boolean`
  `isNoOp()`
  `io.opentelemetry.api.logs.Logger`
  `logger()`
  `io.opentelemetry.api.metrics.Meter`
  `meter()`
  `static void`
  `recordSpanException(Throwable e)`
  Set the error code for the current span.
  `static void`
  `setSpanErrorCode(IdErrorCode errorCode)`
  Set the error code for the current span.
  `io.opentelemetry.context.propagation.TextMapPropagator`
  `textMapPropagator()`
  `io.opentelemetry.api.trace.Tracer`
  `tracer()`

  ### Methods inherited from interface com.io7m.repetoir.core.RPServiceType

  `description`

- ## Method Details

  - ### textMapPropagator

    io.opentelemetry.context.propagation.TextMapPropagator textMapPropagator()
    Returns:
      The text map propagator for trace contexts

  - ### 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

    static void setSpanErrorCode(IdErrorCode errorCode)
    Set the error code for the current span.
    Parameters:
      `errorCode` - The error code

  - ### recordSpanException

    static void recordSpanException(Throwable e)
    Set the error code for the current span.
    Parameters:
      `e` - The error code

  - ### isNoOp

    boolean isNoOp()
    Returns:
      `true` if this telemetry service is a no-op service