Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(core): Add types for logs protocol and envelope #15530

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad requested a review from a team February 27, 2025 20:25
@AbhiPrasad AbhiPrasad self-assigned this Feb 27, 2025
@AbhiPrasad AbhiPrasad requested review from lforst and chargome and removed request for a team February 27, 2025 20:25
Copy link
Contributor

github-actions bot commented Feb 27, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.13 KB +0.06% +13 B 🔺
@sentry/browser - with treeshaking flags 22.92 KB +0.06% +14 B 🔺
@sentry/browser (incl. Tracing) 36.2 KB +0.03% +11 B 🔺
@sentry/browser (incl. Tracing, Replay) 73.37 KB +0.02% +13 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.79 KB +0.02% +11 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 77.99 KB +0.02% +13 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 90.55 KB +0.01% +9 B 🔺
@sentry/browser (incl. Feedback) 40.28 KB +0.03% +12 B 🔺
@sentry/browser (incl. sendFeedback) 27.76 KB +0.04% +11 B 🔺
@sentry/browser (incl. FeedbackAsync) 32.56 KB +0.03% +9 B 🔺
@sentry/react 24.95 KB +0.04% +10 B 🔺
@sentry/react (incl. Tracing) 38.08 KB +0.03% +10 B 🔺
@sentry/vue 27.37 KB +0.04% +11 B 🔺
@sentry/vue (incl. Tracing) 37.88 KB +0.03% +11 B 🔺
@sentry/svelte 23.17 KB +0.05% +11 B 🔺
CDN Bundle 24.34 KB +0.06% +13 B 🔺
CDN Bundle (incl. Tracing) 36.23 KB +0.04% +14 B 🔺
CDN Bundle (incl. Tracing, Replay) 71.25 KB +0.02% +9 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 76.42 KB +0.02% +12 B 🔺
CDN Bundle - uncompressed 71.11 KB +0.03% +20 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 107.5 KB +0.02% +20 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 218.77 KB +0.01% +20 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 231.33 KB +0.01% +20 B 🔺
@sentry/nextjs (client) 39.25 KB +0.03% +12 B 🔺
@sentry/sveltekit (client) 36.61 KB +0.03% +10 B 🔺
@sentry/node 142.14 KB +0.01% +14 B 🔺
@sentry/node - without tracing 95.56 KB +0.02% +14 B 🔺
@sentry/aws-serverless 119.91 KB +0.02% +16 B 🔺

View base workflow run

@AbhiPrasad
Copy link
Member Author

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`.
Copy link
Member

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?

Copy link
Member Author

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.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) February 28, 2025 15:19
@AbhiPrasad AbhiPrasad merged commit d12c192 into develop Feb 28, 2025
149 of 150 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-log-envelope branch February 28, 2025 15:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants