-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(core): Add types for logs protocol and envelope #15530
Conversation
size-limit report 📦
|
I have 0 clue why size-limit is unhappy. Makes me lose trust in it tbh. |
* The severity level of the log. | ||
* | ||
* Allowed values are, from highest to lowest: | ||
* `critical`, `fatal`, `error`, `warn`, `info`, `debug`, `trace`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remind me what level trace
would be used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is taken from the OTEL spec: https://opentelemetry.io/docs/specs/otel/logs/data-model/#severity-fields
According to their spec, trace
is used for:
A fine-grained debugging event. Typically disabled in default configurations.
ref #15526
Based on the work in #15442, we add definitions for the logs protocol and envelope to the JavaScript SDKs.
Relay data category: https://github.com/getsentry/relay/blob/e36886a98c89af645e5c0d2109657deafa25d902/relay-server/src/envelope.rs#L182
Relay log protocol: https://github.com/getsentry/relay/blob/ad04adf6d6756c4e36328c8217bea0ee01f289ec/relay-event-schema/src/protocol/ourlog.rs#L12