docs: add attribute propagation guidance to OpenTelemetry integration#2271
docs: add attribute propagation guidance to OpenTelemetry integration#2271Steffen911 merged 2 commits intomainfrom
Conversation
Add comprehensive documentation on propagating trace-level attributes (userId, sessionId, metadata, version, release, tags) to all spans within OpenTelemetry traces. This ensures compatibility with future Langfuse versions where aggregations will operate on individual observations. Key additions: - Explain why attribute propagation is needed for accurate filtering and aggregations - Recommend OpenTelemetry Baggage with BaggageSpanProcessor as primary approach - Include security warning about baggage propagation to third-party services - Reference Langfuse SDK v3 convenience methods as alternative - Position as recommended now for future compatibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Next.js Bundle Analysis for langfuse-docsThis analysis was generated by the Next.js Bundle Analysis action. 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored. |
Summary
Extends the OpenTelemetry integration documentation to include comprehensive guidance on attribute propagation for trace-level attributes. This documentation builds on the work from #2240 where similar guidance was added to the Python and JS SDK docs.
Changes
Added a new subsection "Propagating Trace Attributes to All Spans" within the Property Mapping section (
pages/integrations/native/opentelemetry.mdx) that covers:userId,sessionId,metadata,version,release, andtagsshould be propagated to all spans for accurate filtering and aggregations in future Langfuse versionsBaggageSpanProcessoras the primary method for users not using Langfuse SDKspropagate_attributes()methods for users of the SDKContext
This addresses the need to communicate the upcoming change where Langfuse aggregations will operate on individual observations rather than just trace-level data. The OpenTelemetry integration doc is specifically for users who are not using the Langfuse SDKs directly, so the focus is on native OpenTelemetry patterns (baggage) rather than SDK-specific methods.
Related
🤖 Generated with Claude Code
Important
Adds guidance on propagating trace-level attributes to all spans in OpenTelemetry integration docs for future Langfuse compatibility.
opentelemetry.mdx.userId,sessionId,metadata,version,release, andtagsto all spans for future Langfuse compatibility.BaggageSpanProcessorfor propagation.propagate_attributes()as an alternative for SDK users.This description was created by
for 5a87297. You can customize this summary. It will automatically update as commits are pushed.