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_ENABLED will be true by default.

otel_enabled

If set, OTEL_SDK_ENABLED will be true by default.

tracy_enabled

If set, TRACY_ENABLED will be true by default.

tracy

Tracy integration

  • Use TRACY_ENABLED=true in combination with tracy feature 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 tracy feature flag if that turns out to be a problem for whatever reason (TRACY_ENABLED=false) won't cut it.

⚠️Keep in mind that the Counts that 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)

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