Skip to content

Conversation

@mitchellhenke
Copy link
Contributor

@jeregrine

This includes breaking changes for how request data is sent back, so the next release (2.0.0) will be a major version change.

closes #86

Copy link
Contributor

@jeregrine jeregrine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly just need to update the .rst files in /doc .

CHANGELOG.md Outdated
## 2.0.0 (2016-11-15)

* Enhancements
* Provide default scrubber for request body and headers (`Sentry.Plug.default_scrubber` and `Sentry.Plug.default_header_scrubber`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should name this default_body_scrubber

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will also need to update the .rst files in /doc

To configure scrubbing body and header data, we can set both configuration keys:
use Sentry.Plug, header_scrubber: &scrub_headers/1, scrubber: &scrub_params/1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also call this body_scrubber

defp scrub_headers(data) do
Map.drop(data, ~w(authorization authentication))
def default_header_scrubber(conn) do
Enum.into(conn.req_headers, %{})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyword.drop

@mitchellhenke mitchellhenke merged commit b591ffa into master Nov 28, 2016
@mitchellhenke mitchellhenke deleted the default-scrubbers branch November 28, 2016 17:06
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.

JSON payload not showing in dashboard

3 participants