New Payload/Transaction/Span types are incomplete
Hi,
updating `@elastic/apm-rum-angular` from 3.0.7 to 3.0.9 introduced new types for `addFilter`'s `payload` callback parameter.
Unfortunately, these types seem to be incomplete and break our existing code that accesses both the `Transaction` and `Span` contexts.
Similar to the [`addFilter`](https://www.elastic.co/docs/reference/apm/agents/rum-js/agent-api#apm-add-filter) documentation example, we're redacting information stored in transaction and span contexts for privacy reasons. Therefore, we have to access their `context` properties which haven't been added to the new types.
Could you please update these types to include the context and other missing properties?
PR that included the breaking change: https://github.com/elastic/apm-agent-rum-js/pull/1662
Task related to changes of types: https://github.com/elastic/apm-agent-rum-js/issues/1659
Thank you and best regards!
关闭于 2026-02-19 4 条评论