Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Issue 351: Ability to send additional runtime data #397

Merged
merged 2 commits into from
Aug 6, 2018

Conversation

ArturMoczulski
Copy link
Contributor

@ArturMoczulski ArturMoczulski commented Aug 6, 2018

This PR addresses #351

Added new config option custom_data_method which allows for custom logic to add custom data to a Rollbar request performed on runtime when the error is being reported. Additional context data can be passed to this callable through the $extra or $context parameters of Rollbar::log and RollbarLogger::log under the custom_data_method_context key. This is the same feature as in the Ruby gem SDK https://docs.rollbar.com/docs/ruby#section-including-additional-runtime-data

Example of how to use this feature has been presented here: https://github.com/rollbar/rollbar-php-examples/tree/master/custom-data-method

The docs have been amended.

@ArturMoczulski ArturMoczulski added this to the v1.6.0 milestone Aug 6, 2018
@ArturMoczulski ArturMoczulski self-assigned this Aug 6, 2018
@ArturMoczulski ArturMoczulski merged commit 5a86538 into master Aug 6, 2018
@bishopb bishopb deleted the 351-custom-data-method branch December 31, 2020 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant