diff --git a/content/faq/all/existing-otel-setup.mdx b/content/faq/all/existing-otel-setup.mdx index b23d2ece2..39cca47a9 100644 --- a/content/faq/all/existing-otel-setup.mdx +++ b/content/faq/all/existing-otel-setup.mdx @@ -547,7 +547,9 @@ This is largely a tradeoff. You can't filter parent spans without affecting the {/* PYTHON */} ```python -with langfuse.trace(name="my-operation", user_id="user-123", session_id="session-456") as trace: +from langfuse import propagate_attributes + +with propagate_attributes(trace_name="my-operation", user_id="user-123", session_id="session-456"): # Your code here ```