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

Discarded invalid value in Ruby events #2145

Closed
rodolfoBee opened this issue Oct 18, 2023 · 1 comment · Fixed by #2150
Closed

Discarded invalid value in Ruby events #2145

rodolfoBee opened this issue Oct 18, 2023 · 1 comment · Fixed by #2150
Assignees

Comments

@rodolfoBee
Copy link
Member

Issue Description

Sentry started marked invalid values in the UI:

From what I understand from here: https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/breadcrumb/sentry_logger.rb#L11 breadcrumbs from logger.warn are set with level "warn", which is not accepted by the server.

As described in the breadcrumb interface specification the level should be "warning" not "warn": https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/

This similar to this workaround used for event level: https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/event.rb#L124

Reproduction Steps

Trigger events that contain warn level breadcrumbs.

Expected Behavior

The level is set to a value that Sentry's server accepts.

Actual Behavior

Screenshot 2023-10-18 at 08 55 52

Ruby Version

3.1.2

SDK Version

5.12.0

Integration and Its Version

No response

Sentry Config

No response

@sl0thentr0py
Copy link
Member

thx for the report @rodolfoBee !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants