rollbar / rollbar.js

Error tracking and logging from Javascript to Rollbar
https://docs.rollbar.com/docs/javascript
MIT License
571 stars 213 forks source link

Add default payload keys before the custom transform runs #1078

Closed waltjones closed 1 year ago

waltjones commented 1 year ago

Description of the change

Currently the defaults from the config override the updated values from the user transform function. Instead, the transform should override the defaults.

This PR adds the default payload options in its own step, so that it is present during the user transform.

Type of change

Related issues

Fixes https://app.shortcut.com/rollbar/story/120633/ https://github.com/rollbar/rollbar.js/issues/1026

Development

Code review