Skip to content

Discarded invalid value in Ruby events #2145

@rodolfoBee

Description

@rodolfoBee

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

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions