# Class LLWithTelemetry

java.lang.Object
com.io7m.looseleaf.server.internal.v1.LLWithTelemetry

public final class LLWithTelemetry extends Object
Execute a request under telemetry tracing.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `LLWithTelemetry.WithTelemetryType`
  A function executed inside a span.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `withTelemetry(LLTelemetryServiceType telemetry, String rootName, jakarta.servlet.http.HttpServletRequest request, LLWithTelemetry.WithTelemetryType function)`
  Execute a function in a telemetry span.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### withTelemetry

    public static void withTelemetry(LLTelemetryServiceType telemetry, String rootName, jakarta.servlet.http.HttpServletRequest request, LLWithTelemetry.WithTelemetryType function) throws IOException
    Execute a function in a telemetry span.
    Parameters:
      `telemetry` - The telemetry service
      `rootName` - The span name
      `request` - The request
      `function` - The function
    Throws:
      `IOException` - On errors