OtlpJsonSpanExporter
constructor(endpoint: String, headers: Map<String, String> = emptyMap(), timeout: Duration? = null, baseClient: HttpClient? = null)(source)
Parameters
endpoint
full OTLP/JSON URL, e.g. https://cloud.langfuse.com/api/public/otel/v1/traces.
headers
extra HTTP headers (typically Authorization);
timeout
request timeout, by default, set to 10 seconds;
baseClient
optional HttpClient. When provided, the exporter uses it as-is and skips the default ContentNegotiation install - the caller must provide a JSON serializer.