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

Fix json object with invalid value and new features #4

Merged
merged 8 commits into from
Aug 10, 2021

Conversation

danifbento
Copy link

@danifbento danifbento commented Apr 7, 2021

When reporting into Sentry, it gaves this error on the produced event

here was 1 error encountered while processing this event which has the following description releae: Discarded unknown attribute.

It was a miss spelling on the send_report method.

This PR fix the variable naming.
This PR also introduces the concept of server_name which can be configurable or passed using the sender override.
This PR also introduces the override for get_request_data with some nginx information to be sent to Sentry

@danifbento danifbento changed the title Fix json object with invalid value Fix json object with invalid value and new features Apr 8, 2021
@cycomachead
Copy link
Member

Hi @danifbento

Sorry I missed this! This looks good to me. Thanks for the contributions!

@cycomachead cycomachead merged commit 6a5a622 into snap-cloud:master Aug 10, 2021
url = ngx.var.request_uri or nil,
query_string = ngx.var.query_string or nil,
env = {
REMOTE_ADDR = ngx.var.remote_addr or nil,
Copy link
Member

Choose a reason for hiding this comment

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

This is great! I've been meaning to add this. :)

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.

2 participants