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
When I view my traces and events, the actual field name is thing.r#type, instead of thing.type.
I think of all the possible approaches, supporting strings as field names would be the most flexible and useful, especially since the span! macros already support that.
The text was updated successfully, but these errors were encountered:
I ran into a similar issue when trying to use tracing on GCP Cloud Run with the out-of-process log collector agent, where required the log format is described here https://cloud.google.com/logging/docs/structured-logging. In particular, I want to add a trace id and was not able to do so via
Bug Report
Version
Rust nightly-2021-11-16
tracing v0.1.37
tracing-attributes v0.1.23
tracing-code v0.1.30
tracing-futures v0.2.5
tracing-log v0.1.3
tracing-opentelemetry v0.15.0
tracing-serde v0.1.3
tracing-subscriber v0.2.25
Platform
Ubuntu 18.04, 64bit
Linux my-machine 5.4.0-1092-gcp #101~18.04.1-Ubuntu SMP Mon Oct 17 18:29:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description
When I specify a field with
type
in the name in the instrument macro, it fails.Putting it in a string doesn't work, even though this works with
span!
syntax.Trying to use raw identifiers compiles, but the wrong field name is recorded.
When I view my traces and events, the actual field name is
thing.r#type
, instead ofthing.type
.I think of all the possible approaches, supporting strings as field names would be the most flexible and useful, especially since the
span!
macros already support that.The text was updated successfully, but these errors were encountered: