Cargo Features
re_perf_telemetry has no features set by default.
[dependencies]
re_perf_telemetry = { version = "0.30.0-alpha.4", features = ["enabled", "otel_enabled", "tracy_enabled", "tracy", "pyo3"] }
- enabled
-
If set,
TELEMETRY_ENABLEDwill betrueby default. - otel_enabled
-
If set,
OTEL_SDK_ENABLEDwill betrueby default. - tracy_enabled
-
If set,
TRACY_ENABLEDwill betrueby default. - tracy
-
Tracy integration
- Use
TRACY_ENABLED=truein combination withtracyfeature flag. - The Tracy Viewer version must match the client's: we use 0.12 for both (latest as of this writing).
See https://github.com/wolfpld/tracy.
⚠️Tracy will start monitoring OS performance as soon as the client library is loaded in! This is very cheap, but make sure to disable the
tracyfeature flag if that turns out to be a problem for whatever reason (TRACY_ENABLED=false) won't cut it.⚠️Keep in mind that the
Countsthat are displayed in Tracy account for every yields! E.g. an async function that yields 50 times will be counted as 51 (the first call + 50 yields).Enables tracing-tracy
External (optional)
- Use
- pyo3
-
PyO3 integration for cross-boundary tracing
Enables pyo3 ^0.25.1
Affects
re_perf_telemetry::get_trace_context_var,re_perf_telemetry::extract_trace_context_from_contextvar…