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.

feat(property-vals-rs): raise max property value length to 10000 (#62215)

Andy Zhao590bbcdd4754
diff --git a/rust/property-vals-rs/src/config.rs b/rust/property-vals-rs/src/config.rs
index e285457d9b9c..205c1e5a9809 100644
--- a/rust/property-vals-rs/src/config.rs
+++ b/rust/property-vals-rs/src/config.rs
@@ -86,7 +86,7 @@ pub struct LengthCaps {
#[envconfig(default = "400")]
pub max_property_key_len: usize,
- #[envconfig(default = "255")]
+ #[envconfig(default = "10000")]
pub max_property_value_len: usize,
}
@@ -204,7 +204,7 @@ mod tests {
fn length_caps_default_when_env_unset() {
let caps = LengthCaps::init_from_hashmap(&std::collections::HashMap::new()).unwrap();
assert_eq!(caps.max_property_key_len, 400);
- assert_eq!(caps.max_property_value_len, 255);
+ assert_eq!(caps.max_property_value_len, 10000);
}
#[test]
diff --git a/rust/property-vals-rs/src/fan_out.rs b/rust/property-vals-rs/src/fan_out.rs
index 889730c6da5a..ee3d4396fc4c 100644
--- a/rust/property-vals-rs/src/fan_out.rs
+++ b/rust/property-vals-rs/src/fan_out.rs
@@ -142,8 +142,6 @@ mod tests {
use proptest::prelude::*;
use serde_json::{Map, Value};
- // Mirrors the production envconfig defaults; the arb generators below
- // straddle these boundaries on purpose.
const TEST_CAPS: LengthCaps = LengthCaps {
max_property_key_len: 400,
max_property_value_len: 255,