phptek / silverstripe-sentry

Flexible Sentry compatible bug aggregation client for Silverstripe applications.
BSD 3-Clause "New" or "Revised" License
12 stars 22 forks source link

Sentry Tags are not consistently reported #38

Closed phptek closed 4 years ago

phptek commented 4 years ago

Any additional environment data that the module wishes to send to Sentry e.g. Peak-Memory, IPAddress etc is no longer being sent and is not visible in the Sentry UI.

This is probably becuase of a change made in senry/sentry where extra (and perhaps other) data should no longer be accepted by Sentry for security reasons. See discussion here: https://github.com/getsentry/sentry-php/pull/848

It could also be down to a Monolog issue, and we simple need to send a different $record key, in calls to captureMessage() or captureException()

phptek commented 4 years ago

[UPDATE]

The additional data is receied by Sentry when the error sent to it is a Throwable (and passed to captureException()). It is calls to captureMessage() where these data are not sent.