Class AsyncOpentelemetryClient

java.lang.Object
com.langfuse.client.resources.opentelemetry.AsyncOpentelemetryClient

public class AsyncOpentelemetryClient extends Object
  • Field Details

  • Constructor Details

    • AsyncOpentelemetryClient

      public AsyncOpentelemetryClient(ClientOptions clientOptions)
  • Method Details

    • withRawResponse

      public AsyncRawOpentelemetryClient withRawResponse()
      Get responses with HTTP metadata like headers
    • exportTraces

      public CompletableFuture<OtelTraceResponse> exportTraces(OtelTraceRequest request)
      OpenTelemetry Traces Ingestion Endpoint

      This endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for Langfuse Observability.

      Supported Formats:

      • Binary Protobuf: Content-Type: application/x-protobuf
      • JSON Protobuf: Content-Type: application/json
      • Supports gzip compression via Content-Encoding: gzip header

      Specification Compliance:

      Documentation:

      • Integration guide: https://langfuse.com/integrations/native/opentelemetry
      • Data model: https://langfuse.com/docs/observability/data-model
    • exportTraces

      public CompletableFuture<OtelTraceResponse> exportTraces(OtelTraceRequest request, RequestOptions requestOptions)
      OpenTelemetry Traces Ingestion Endpoint

      This endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for Langfuse Observability.

      Supported Formats:

      • Binary Protobuf: Content-Type: application/x-protobuf
      • JSON Protobuf: Content-Type: application/json
      • Supports gzip compression via Content-Encoding: gzip header

      Specification Compliance:

      Documentation:

      • Integration guide: https://langfuse.com/integrations/native/opentelemetry
      • Data model: https://langfuse.com/docs/observability/data-model