You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead if attributes were exposed it would be possible to do something like this:
/// How fast the racecar is going#[derive(Valuable)]#[histogram(key="racecar.speed", unit="mph")]structRacecarSpeed(f64);#[tokio::test]asyncfnproposed_example(){
tracing::info!("Going at {}mph", speed=RacecarSpeed(777.0012_f64));}
I think there's two approaches here: expose the attributes directly, or expose the typeid and require subscribers to map that typeid to the attribute
The text was updated successfully, but these errors were encountered:
nhawkes
changed the title
[Feature request] Allow reading structable attributes
Feature request: Allow reading structable attributes
Feb 4, 2023
At the moment
tracing-opentelemetry
does a somewhat of a hack to know what fields are metrics. It requires the field name to be prefixedInstead if attributes were exposed it would be possible to do something like this:
I think there's two approaches here: expose the attributes directly, or expose the typeid and require subscribers to map that typeid to the attribute
The text was updated successfully, but these errors were encountered: