Skip to content

Python: docs(observability): add Langfuse example#1544

Closed
jannikmaierhoefer wants to merge 2 commits intomicrosoft:mainfrom
jannikmaierhoefer:patch-1
Closed

Python: docs(observability): add Langfuse example#1544
jannikmaierhoefer wants to merge 2 commits intomicrosoft:mainfrom
jannikmaierhoefer:patch-1

Conversation

@jannikmaierhoefer
Copy link

Adding an example of sending observability spans to Langfuse.

Motivation and Context

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Adding an example of sending observability spans to Langfuse.
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Oct 17, 2025
@github-actions github-actions bot changed the title docs(observability): add Langfuse example Python: docs(observability): add Langfuse example Oct 17, 2025

Now, all agent executions can be viewed in the Langfuse UI:

![Example trace in Langfuse](https://langfuse.com/images/cookbook/integration_microsoft-agent-framework/microsoft-agent-framework-example-race.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this link no longer works @jannikmaierhoefer

setup_observability(enable_sensitive_data=True)
```

For a complete integration guide, please take a look at the [Langfuse documentation](https://langfuse.com/integrations/frameworks/microsoft-agent-framework).
Copy link
Contributor

@TaoChenOSU TaoChenOSU Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some explanation on how agent framework connects to langfuse will be helpful.

@eavanvalkenburg
Copy link
Member

@jannikmaierhoefer I have a PR open that reworks some of the setup and configuration for the framework, it includes in the note a callout to langfuse so this is no longer needed as a separate PR, so I will close this, thanks for pointing this out, it did make sure that we included that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants