From dcf3c2a5c5e84feef7c2ba71fcd467e360e5b8b1 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Mon, 27 Jan 2025 21:24:05 -0800 Subject: [PATCH 1/2] add `debug_meta.project_root` --- relay-event-schema/src/protocol/debugmeta.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/relay-event-schema/src/protocol/debugmeta.rs b/relay-event-schema/src/protocol/debugmeta.rs index f40e050d850..31fae1126de 100644 --- a/relay-event-schema/src/protocol/debugmeta.rs +++ b/relay-event-schema/src/protocol/debugmeta.rs @@ -523,6 +523,11 @@ pub struct DebugMeta { #[metastructure(skip_serialization = "empty")] pub images: Annotated>, + /// Path to the root of the app generating the event. + #[metastructure(max_chars = 256, max_chars_allowance = 40)] + #[metastructure(skip_serialization = "empty", pii = "maybe")] + pub project_root: Annotated, + /// Additional arbitrary fields for forwards compatibility. #[metastructure(additional_properties)] pub other: Object, From a53520c77ab6a9b0509212843ab2086241dde2c8 Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Mon, 27 Jan 2025 21:24:52 -0800 Subject: [PATCH 2/2] add note about extra fields --- relay-event-schema/src/protocol/debugmeta.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/relay-event-schema/src/protocol/debugmeta.rs b/relay-event-schema/src/protocol/debugmeta.rs index 31fae1126de..6c73373bc03 100644 --- a/relay-event-schema/src/protocol/debugmeta.rs +++ b/relay-event-schema/src/protocol/debugmeta.rs @@ -528,7 +528,9 @@ pub struct DebugMeta { #[metastructure(skip_serialization = "empty", pii = "maybe")] pub project_root: Annotated, - /// Additional arbitrary fields for forwards compatibility. + /// Additional arbitrary fields for forwards compatibility. Note that they may still get + /// normalized out of the event, depending on the value of `remove_other` passed to the + /// normalizer. #[metastructure(additional_properties)] pub other: Object, }