Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parsing and extending Envelopes data from clients #2531

Unanswered
ktsangop asked this question in Q&A
Discussion options

Hello everyone!

As discussed on the client side SDK thread here
getsentry/sentry-javascript#7112 (reply in thread)

We would like any information on how to parse Envelopes sent from sentry-javascript clients, to our private API
that's implemented using Java/Spring.
Also we need to extend Envelopes client data with more information that our server has about user session etc.

Thank you in advance!

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
Comment options

This seems to read a file and then create/send the SentryEnvelope.
But is there a way to convert, at the sentry-java the non-valid JSON format that is generated from the sentry-javascript client, and then sent it to the POST /api/<project_id>/envelope/?

Comment options

Sorry, I'm not terribly familiar with specifics about the JS SDK but the sample I linked above reads from a file that is generated by other Sentry SDKs so should work in theory. Have you tried it and are seeing specific errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /