dataframer-journey is a small Python library that reads the journey id off incoming requests and stamps it onto every Langfuse trace your service creates, no need to pass it around manually. Pair it with the browser SDK, which is what generates the journey id in the first place.
Install
requests, httpx, langfuse).
Set up
- FastAPI / Starlette
- Django
- Reading it in: the journey id is read off each incoming request (header or cookie) into request-local context.
- Passing it along: every outgoing
requests/httpxcall to another service automatically carries the id forward, so a multi-service call chain stays connected. - Stamping traces: every Langfuse trace your code creates during that request gets
metadata.journey_idset automatically, plus ajourney:<id>tag.
Non-HTTP entry points
Queue consumers and scheduled jobs don’t go through a middleware, so pull the id from your payload yourself:CORS
This library doesn’t add anything to CORS by itself, it just reads whatever id it’s given. If your frontend and backend are on different domains, the header allowance you need is on the browser SDK page. Same-domain setups need nothing.Next steps
Browser SDK
Generate the journey id in your frontend and send user events.

