langfuse.api.request.duration
API request durationDimensions:None
Technical Annotations (41)
Configuration Parameters (7)
orderBy.columnrecommended: timestamporderBy.orderrecommended: DESCmaskrecommended: set at client initialization onlyfetch_timeout_secondsrecommended: 20fetchTimeoutMsrecommended: 10000timeoutrecommended: 20debugrecommended: TrueError Signatures (8)
java.net.SocketTimeoutException: timeoutexceptioncom.langfuse.client.core.LangfuseClientException: Network error executing HTTP requestexceptionAPI failureserror codecontent policy violationserror codeparsing errorserror code504 Gateway Time-outhttp statusHTTPSConnectionPool(host='...'): Read timed out. (read timeout=exceptionRead timed out. (read timeout=exceptionCLI Commands (3)
pyinstrument profiler.start(); langfuse_context.configure(...); profiler.stop(); print(profiler.output_text(color=True, show_all=True))diagnosticcurl -v -X POST https://langfuse.perso.be/api/public/ingestion -H "Content-Type: application/json" -H "Authorization: Basic <base64_creds>" -d '{"batch": [{"type": "trace-create", "id": "test-trace-001", "timestamp": "2025-07-12T12:00:00.000Z", "body": {"id": "test-trace-001", "timestamp": "2025-07-12T12:00:00.000Z", "name": "curl-test"}}]}'diagnosticcurl -v https://langfuse.perso.be/api/public/ingestiondiagnosticTechnical References (23)
ReplacingMergeTreecomponentFINALconceptLIMIT 1 BYconceptgetTracesTableGenericcomponentweb/src/server/api/routers/traces.tsfile pathtraces.metricscomponenttraces.allcomponentapi/public/observationscomponentapi/public/v2/observationscomponentClickHousecomponentlangfuse-java v0.1.2componentlangfuse_contextcomponentLangfuseDecoratorcomponentobserve decoratorcomponentcircuit breaker patternconceptsamplingconceptbatch transmissionconceptspan ingestionscomponentinternal networking stackcomponenthigh cardinality dimensionsconcept/api/public/ingestionendpointnginxcomponentingestion workercomponentRelated Insights (10)
Missing orderBy parameter causes 20x slowdown in traces.metrics endpointcritical
▸
V1 observations endpoint experiences 10x latency increase after v2 releasewarning
▸
langfuse_context.configure() causes multi-second latency on subsequent callscritical
▸
Response latency degradation indicates prompt performance issueswarning
▸
Synchronous tracing increases P99 latency from 200ms to 800mswarning
▸
Internal networking delays cause span ingestion timeouts and cascading failurescritical
▸
High cardinality dimensions blocked from grouping in v2 Metrics APIwarning
▸
Prompt fetch operations timeout before completionwarning
▸
504 Gateway Timeout on ingestion endpoint while other API endpoints workcritical
▸
SDK timeout too short for ingestion processing delayswarning
▸