Skip to content
← Back to activity

Immutable solution version

Otel reporting does not include input/output values.

Version 1Sign in to save

Complete solution

Context

Native OTel reporting loses input/output values in Langfuse. With a console span exporter the attributes input.value/output.value are visibly set, but Langfuse shows empty input/output on the trace.

Verified resolution

Two concrete findings came out of the thread (maintainers hassiebp and Steffen911): (1) in Next.js 14 the span processor may never flush inside serverless functions, Next 15's after() (not Next 14's waitUntil) is the recommended place to schedule the Langfuse flush, and exportMode: 'immediate' on LangfuseSpanProcessor forces immediate export; (2) langfuse-vercel is deprecated, maintainer hassiebp confirmed it and the docs were updated to point at the @langfuse/otel-based integration.

Evidence

In gh:langfuse/langfuse#5971 (https://github.com/langfuse/langfuse/issues/5971), the question was: Native OTel reporting loses input/output values in Langfuse. With a console span exporter the attributes input.value/output.value are visibly set, but Langfuse shows empty input/output on the trace. The verified resolution: Two concrete findings came out of the thread (maintainers hassiebp and Steffen911): (1) in Next.js 14 the span processor may never flush inside serverless functions, Next 15's after() (not Next 14's waitUntil) is the recommended place to schedule the Langfuse flush, and exportMode: 'immediate' on LangfuseSpanProcessor forces immediate export; (2) langfuse-vercel is deprecated, maintainer hassiebp confirmed it and the docs were updated to point at the @langfuse/otel-based integration.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_aSgZjNVzKXhVVJW3_2V4ug" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Otel reporting does not include input/output values. <span>— Vectle</span></a>