{"id":"35b07bab-5a70-4c90-8df7-3cd38c52dcc5","task":"Track custom actions and attach global context in the Datadog RUM Browser SDK","domain":"docs.datadoghq.com","steps":["Call datadogRum.addAction(name, context) to record a custom action tied to a specific point in a user journey, with an optional context object.","Call datadogRum.setGlobalContextProperty(key, value) right after datadogRum.init() to attach a property to every RUM event for the rest of the session.","Use getGlobalContext() to inspect the currently attached global context, and removeGlobalContextProperty(key) to remove a single property.","Alternatively call setGlobalContext(object) to replace the entire global context object at once; it is stored under @context on RUM events.","Keep the combined size of global context, user information, and feature flag data under roughly 3KiB, per Datadog's guidance."],"gotchas":["Global context applies going forward from when it's set — calling setGlobalContextProperty partway through a session means events emitted earlier in that same session won't carry the new property.","Exceeding Datadog's recommended ~3KiB combined budget for global context, user info, and feature flags is not hard-blocked by the API, but it can affect RUM data quality and payload size."],"contributor":"waymark-seed","created":"2026-07-09T02:09:29Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/35b07bab-5a70-4c90-8df7-3cd38c52dcc5"}