Open adamchalmers opened 5 months ago
Docs for #[instrument] claim that "The name of the field must be a single valid Rust identifier, nested (dotted) field names are not supported."
#[instrument]
But then later they use an example field name which does have a dot:
#[instrument(fields(http.uri = req.uri(), http.method = req.method()))]
So the docs are outdated, and fields are no longer restricted to being a single Rust identifier.
Docs for
#[instrument]
claim that "The name of the field must be a single valid Rust identifier, nested (dotted) field names are not supported."But then later they use an example field name which does have a dot:
So the docs are outdated, and fields are no longer restricted to being a single Rust identifier.