Skip to content
Discussion options

You must be logged in to vote

@qrosseel You can simply instantiate Langfuse at the top of your application with the blocked_instrumentation_scopes and use get_client throughout your app to access that instance.

from langfuse import Langfuse

Langfuse(*)

You will also have to manually set the trace name, input and output as the root span is being filtered out. [See here])(https://langfuse.com/docs/observability/sdk/python/instrumentation#override-default-behavior)

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hassiebp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #9177 on September 17, 2025 11:23.