#[instrument]
Expand description
Use this macro in place of tracing::instrument to prevent spamming our tracing table.
We set a default level of INFO while always setting ERROR if the function returns Result::Err giving us
consistent and high quality structured logs. Because this wraps around tracing::instrument, all parameters
mentioned in https://fburl.com/9jlkb5q4 should be valid. For functions that don’t return a [Result
] type, use
[instrument_infallible
]
#[telemetry::instrument]
async fn yolo() -> anyhow::Result<i32> {
Ok(420)
}