Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add ecosystems/tracing.md to guide #4713

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

matt-codecov
Copy link
Contributor

in case it's helpful, I wrote what I know about tapping into tracing data from Python in a new guide page. it describes two crates that take different approaches:

  • pyo3-tracing-subscriber, which exposes configuration options for 3 specific tracing_subscriber::layer::Layer implementations to Python
  • pyo3-python-tracing-subscriber, which implements a shim that forwards tracing data to a Python object that implements the tracing_subscriber::layer::Layer trait
    • disclaimer: I am the author of this crate

I haven't actually used pyo3-tracing-subscriber myself and the repo appears to be private but it recently published a new version on crates.io so I think it's still working/maintained.

let me know if you have any feedback, and no worries if this page is not wanted right now!

Verified

This commit was signed with the committer’s verified signature.
@davidhewitt
Copy link
Member

Thanks for sharing! I think this is worth exploring though the repo being private does make it hard to recommend to users. Perhaps we can reach out to the owners and ask for it to be made public?

@matt-codecov
Copy link
Contributor Author

attempted to reach out in an issue on a repository that has bindings generated by pyo3-tracing-subscriber: rigetti/qcs-sdk-rust#512

note: you can grab the source from crates.io still (curl -L 'https://crates.io/api/v1/crates/pyo3-tracing-subscriber/0.1.4/download' | tar -zxf -)

@erichulburd
Copy link

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks, with the pyo3-tracing-subscriber crate now also public let's merge this! 👍

@davidhewitt davidhewitt added this pull request to the merge queue Jan 15, 2025
Merged via the queue into PyO3:main with commit b9bab5d Jan 15, 2025
46 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.

None yet

3 participants