Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

perf(error-tracking): drop redundant cymbal properties re-parse (#67216)

Catalin Irimie6a9510294a6d
diff --git a/rust/cymbal/src/modes/processing/types/exception_properties.rs b/rust/cymbal/src/modes/processing/types/exception_properties.rs
index ccbf0ec79492..dcf7819a21fe 100644
--- a/rust/cymbal/src/modes/processing/types/exception_properties.rs
+++ b/rust/cymbal/src/modes/processing/types/exception_properties.rs
@@ -135,12 +135,9 @@ impl TryFrom<AnyEvent> for ExceptionProperties {
return Err(EventError::WrongEventType(event.event.clone(), event.uuid));
}
- let mut properties: Value = match serde_json::from_value(event.properties) {
- Ok(r) => r,
- Err(e) => {
- return Err(EventError::InvalidProperties(event.uuid, e.to_string()));
- }
- };
+ // `event.properties` is already a `serde_json::Value`; running it back through
+ // `from_value` only deep-rebuilds the tree. Take ownership directly instead.
+ let mut properties = event.properties;
if let Some(v) = properties
.as_object_mut()