Langfuse JS/TS SDKs
    Preparing search index...

    Function getLangfuseTracerProvider

    • Gets the TracerProvider for Langfuse tracing operations.

      Returns the isolated TracerProvider if one has been set via setLangfuseTracerProvider(), otherwise falls back to the global OpenTelemetry TracerProvider.

      Returns TracerProvider

      The TracerProvider instance to use for Langfuse tracing

      import { getLangfuseTracerProvider } from '@langfuse/tracing';

      const provider = getLangfuseTracerProvider();
      const tracer = provider.getTracer('my-tracer', '1.0.0');