sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Drop Media from `messages` in SDKs and document behavior

Open RulaKhaled opened this issue 2 months ago • 5 comments

Images and other media in the messages attributes should be dropped by the SDK to prevent large media from breaking instrumentation. The fact that we will drop these should be documented in our docs. We should track the fact that we dropped this media via client reports / outcomes to a) make sure users are aware of it and b) that we know how often this happens.

RulaKhaled avatar Sep 29 '25 11:09 RulaKhaled

@RulaKhaled now media content in MCP messages is now automatically filtered out and tracked via client reports

naaa760 avatar Oct 05 '25 08:10 naaa760

I will also review this PR today, thanks @naaa760!

RulaKhaled avatar Oct 06 '25 08:10 RulaKhaled

@naan760 we are not looking to add this for mcp, this should be added for our ai integrations, let me know if you're interested in tackling this, otherwise feel free to close the PR.

RulaKhaled avatar Oct 06 '25 11:10 RulaKhaled

@naan760 we are not looking to add this for mcp, this should be added for our ai integrations, let me know if you're interested in tackling this, otherwise feel free to close the PR.

I will resolve this in some hours! thanks for letting me know!

naaa760 avatar Oct 06 '25 12:10 naaa760