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

Add Support for addition Sentry Fields (Users, Request Data, Environment, Release) #40

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

cycomachead
Copy link

Sorry this is one big PR. I've been meaning to try to upstream some changes for a while. If there's interest, consider this the start of a conversation — I can try to break this up as necessary.

Essentially, I've been using raven-lua pretty successfully in a Lapis (OpenResty) project. I've needed to extend this to support a few additional fields more common in traditional user-facing web apps.

  • Adds environment as a static property to the event payload, passed in during initialization
  • addsserver_name. Can be passed in or defined with get_server_name
  • adds release. Same deal as above. :)
  • Allows user and contexts tables to be passed to send_report
  • Now includes a default version of get_request_data which was contributed to my fork by danifbento
  • Also fixes a small typo. :)

@DDevine
Copy link

DDevine commented Aug 25, 2021

It isn't that big of a merge... And it looks good to me.

danifbento and others added 2 commits September 25, 2021 20:41
It was added upstream information which can be used when available.
Add more information into ngx raven sender.
@nevmerzhitsky
Copy link
Contributor

Why it wasn't merged, guys? :'(

@nevmerzhitsky
Copy link
Contributor

@jdesgats consider merge of this, please

Sentry `release` should be `nil` when not set
@amo13
Copy link

amo13 commented Sep 2, 2023

Please merge

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.

5 participants