import pyroscope
with pyroscope.tag_wrapper({"key": "value"}):
print("hello world")
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/lib.rs:173:64
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted (core dumped)
What did you expect to happen instead?
Not have the program crash if pyroscope is not configured, right now I have to add a wrapper on top to no-op the tag_wrapper if pyroscope is not configured.
Describe the bug you encountered:
Repro:
What did you expect to happen instead?
Not have the program crash if pyroscope is not configured, right now I have to add a wrapper on top to no-op the tag_wrapper if pyroscope is not configured.
How did you install
pyroscope-rs
?pip