Skip to content

Export Context Propagate APIs through Logfire Interface#1385

Merged
alexmojaki merged 12 commits intopydantic:mainfrom
dhruv-ahuja:chore/expose_propagation
Sep 9, 2025
Merged

Export Context Propagate APIs through Logfire Interface#1385
alexmojaki merged 12 commits intopydantic:mainfrom
dhruv-ahuja:chore/expose_propagation

Conversation

@dhruv-ahuja
Copy link
Copy Markdown
Contributor

This PR addresses feedback provided in the issue #1324 by exporting propagate.py's get_context and attach_context APIs through the Logfire module interface.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alexmojaki
Copy link
Copy Markdown
Collaborator

Thanks! Please also update docs where possible, e.g. https://logfire.pydantic.dev/docs/how-to-guides/distributed-tracing/#manual-context-propagation. The old usage is still correct but it'd be nice to show the new simpler usage.

@dhruv-ahuja
Copy link
Copy Markdown
Contributor Author

@alexmojaki I have cross-checked and ensured all code examples and documentation is using import logfire everywhere.
Please check now and let me know if anything else is needed.

Also once done, please let me know what issue I can pick up next.

@alexmojaki
Copy link
Copy Markdown
Collaborator

Thanks! If you'd like to do more take a look at https://github.com/pydantic/logfire/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22

@alexmojaki alexmojaki merged commit 7ad14bf into pydantic:main Sep 9, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants