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

Replace log with tracing, instrument conversion functions #150

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jonmmease
Copy link
Collaborator

Incorporates the tracing crate to instrument the conversion functions. For example, from Python:

import os
os.environ["RUST_LOG"]="vl_convert"

...
png = vlc.vega_to_png(vg_spec)
2024-02-03T18:52:42.500059Z  INFO vega_to_png:vega_to_svg: vl_convert_rs::converter: close time.busy=18.2µs time.idle=237ms
2024-02-03T18:52:42.510416Z  INFO vega_to_png:svg_to_png: vl_convert_rs::converter: close time.busy=10.3ms time.idle=1.54µs
2024-02-03T18:52:42.510432Z  INFO vega_to_png: vl_convert_rs::converter: close time.busy=10.4ms time.idle=237ms

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.

1 participant