Skip to content
Discussion options

You must be logged in to vote

You're correct that when creating a parent span for userId and sessionId with Spring AI, the trace-level input and output fields appear empty. This is expected behavior based on how Langfuse handles trace input/output mapping (1).

According to the OpenTelemetry property mapping documentation, trace input and output are set from the root span's observation input and output (1). When you create a custom parent span without setting input/output on it, the trace-level fields remain empty even though child observations contain the actual LLM inputs and outputs.

To populate the trace-level input and output fields, you can explicitly set them using OpenTelemetry attributes on your parent span:

p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcjaner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant