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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matt-codecov
Copy link

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!

@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
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 -)

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