-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Upgrade @sentry/browser from 9.9.0 to 9.10.0 #341
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
Conversation
Snyk has created this PR to upgrade @sentry/browser from 9.9.0 to 9.10.0. See this package in npm: @sentry/browser See this project in Snyk: https://app.snyk.io/org/reisene/project/3b48baaa-833b-4239-b348-16091472ee83?utm_source=github&utm_medium=referral&page=upgrade-pr
Current Aviator status
This PR was merged manually (without Aviator). Merging manually can negatively impact the performance of the queue. Consider using Aviator next time.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
Aviator Changeset actions:
|
Please follow naming conventions! 😿 |
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Przewodnik Recenzenta od SourceryTo żądanie pull aktualizuje pakiet Diagram sekwencji wysyłania wiadomości logu do SentrysequenceDiagram
participant App
participant Sentry
participant Sentry Server
App->>Sentry: Sentry.logger.info("Log message", { userId: 123 })
activate Sentry
Sentry->>Sentry Server: Capture log message with context
activate Sentry Server
Sentry Server-->>Sentry: Ack
deactivate Sentry Server
deactivate Sentry
Diagram sekwencji diagnozowania łączności SDKsequenceDiagram
participant App
participant Sentry
participant Sentry Server
App->>Sentry: Sentry.diagnoseSdkConnectivity()
activate Sentry
Sentry->>Sentry Server: Check connectivity
activate Sentry Server
Sentry Server-->>Sentry: Connectivity status
deactivate Sentry Server
Sentry-->>App: Result (e.g., 'sentry-unreachable')
deactivate Sentry
Zaktualizowany diagram klas dla loggera SentryclassDiagram
class Sentry {
+static logger: Logger
+static init(options: SentryOptions): void
+static diagnoseSdkConnectivity(): Promise<object>
}
class Logger {
+trace(message: string, ...args: any[]): void
+debug(message: string, ...args: any[]): void
+info(message: string, ...args: any[]): void
+warn(message: string, ...args: any[]): void
+error(message: string, ...args: any[]): void
+fatal(message: string, ...args: any[]): void
+fmt(template: string, ...args: any[]): string
}
Sentry -- Logger: has a
note for Logger "The Logger class now supports structured logging and dedicated methods for different log levels."
Zmiany na Poziomie Plików
Porady i poleceniaInterakcja z Sourcery
Dostosowywanie Twojego DoświadczeniaUzyskaj dostęp do swojego panelu, aby:
Uzyskiwanie Pomocy
Original review guide in EnglishReviewer's Guide by SourceryThis pull request upgrades the Sequence diagram for sending a log message to SentrysequenceDiagram
participant App
participant Sentry
participant Sentry Server
App->>Sentry: Sentry.logger.info("Log message", { userId: 123 })
activate Sentry
Sentry->>Sentry Server: Capture log message with context
activate Sentry Server
Sentry Server-->>Sentry: Ack
deactivate Sentry Server
deactivate Sentry
Sequence diagram for diagnosing SDK connectivitysequenceDiagram
participant App
participant Sentry
participant Sentry Server
App->>Sentry: Sentry.diagnoseSdkConnectivity()
activate Sentry
Sentry->>Sentry Server: Check connectivity
activate Sentry Server
Sentry Server-->>Sentry: Connectivity status
deactivate Sentry Server
Sentry-->>App: Result (e.g., 'sentry-unreachable')
deactivate Sentry
Updated class diagram for Sentry loggerclassDiagram
class Sentry {
+static logger: Logger
+static init(options: SentryOptions): void
+static diagnoseSdkConnectivity(): Promise<object>
}
class Logger {
+trace(message: string, ...args: any[]): void
+debug(message: string, ...args: any[]): void
+info(message: string, ...args: any[]): void
+warn(message: string, ...args: any[]): void
+error(message: string, ...args: any[]): void
+fatal(message: string, ...args: any[]): void
+fmt(template: string, ...args: any[]): string
}
Sentry -- Logger: has a
note for Logger "The Logger class now supports structured logging and dedicated methods for different log levels."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Skipping bot pull request creation because the queue is empty and this pull request is up to date with |
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.
Pominęliśmy przeglądanie tego żądaniaPull Request. Wygląda na to, że zostało ono utworzone przez bota (w tytule znaleziono '[Snyk]'). Zakładamy, że wie, co robi!
Original comment in English
We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
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.
LGTM 👍
|
Here's the code health analysis summary for commits Analysis Summary
|
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Do not merge outdated PRsWonderful, this rule succeeded.Make sure PRs are almost up to date before merging
|
Sweep Summary
Adds user registration functionality with email uniqueness validation and password encoding to the HulajDusza service.
UserRegistrationDto
with validation annotations for email, password, and name fields.isEmailInUse
method toUserService
to check if an email is already registered.registerUser
method inUserServiceImpl
that creates a new user with encoded password./api/users/register
endpoint inUserController
that handles user registration requests and returns appropriate HTTP responses.Ask Sweep AI questions about this PR
Snyk has created this PR to upgrade @sentry/browser from 9.9.0 to 9.10.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 1 version ahead of your current version.
The recommended version was released 22 days ago.
Release notes
Package name: @sentry/browser
Important Changes
feat: Add support for logs
beforeSendLog
(#15814)All JavaScript SDKs other than
@ sentry/cloudflare
and@ sentry/deno
now support sending logs via dedicated methods as part of Sentry's upcoming logging product.Logging is gated by an experimental option,
_experiments.enableLogs
.dsn: 'PUBLIC_DSN',
//
enableLogs
must be set to true to use the logging features_experiments: { enableLogs: true },
});
const { trace, debug, info, warn, error, fatal, fmt } = Sentry.logger;
trace('Starting database connection', { database: 'users' });
debug('Cache miss for user', { userId: 123 });
error('Failed to process payment', { orderId: 'order_123', amount: 99.99 });
fatal('Database connection pool exhausted', { database: 'users', activeConnections: 100 });
// Structured logging via the
fmt
helper function. When you usefmt
, the string template and parameters are sent separately so they can be queried independently in Sentry.info(fmt(
Updated profile for user <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">userId</span><span class="pl-kos">}</span></span>
));warn(fmt(
Rate limit approaching for endpoint <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">endpoint</span><span class="pl-kos">}</span></span>. Requests: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">requests</span><span class="pl-kos">}</span></span>, Limit: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">limit</span><span class="pl-kos">}</span></span>
));With server-side SDKs like
@ sentry/node
,@ sentry/bun
or server-side of@ sentry/nextjs
or@ sentry/sveltekit
, you can do structured logging without needing thefmt
helper function.info('User %s logged in successfully', [123]);
warn('Failed to load user %s data', [123], { errorCode: 404 });
To filter logs, or update them before they are sent to Sentry, you can use the
_experiments.beforeSendLog
option.feat(browser): Add
diagnoseSdkConnectivity()
function to programmatically detect possible connectivity issues (#15821)The
diagnoseSdkConnectivity()
function can be used to programmatically detect possible connectivity issues with the Sentry SDK.The result will be an object with the following properties:
"no-client-active"
: There was no active client when the function was called. This possibly means that the SDK was not initialized yet."sentry-unreachable"
: The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.undefined
: The SDK is working as expected.SDK Tracing Performance Improvements for Node SDKs
dropUndefinedKeys
(#15796)dropUndefinedKeys
forspanToJSON
calls (#15792)SentryError
for PromiseBuffer control flow (#15822)dropUndefinedKeys
in SpanExporter (#15794)SentryError
for event processing control flow (#15823)dropUndefinedKeys
in Node SDK init (#15797)We've been hard at work making performance improvements to the Sentry Node SDKs (
@ sentry/node
,@ sentry/aws-serverless
,@ sentry/nestjs
, etc.). We've seen that upgrading from9.7.0
to9.10.0
leads to 30-40% improvement in request latency for HTTP web-server applications that use tracing with high sample rates. Non web-server applications and non-tracing applications will see smaller improvements.Other Changes
rrweb
to2.35.0
(#15825)3.2.3
(#15829)Bundle size 📦
Important Changes
feat(nextjs): Support
instrumentation-client.ts
(#15705)Next.js recently added a feature to support client-side (browser) instrumentation via the
experimental.clientInstrumentationHook
flag and theinstrumentation-client.ts
file.To be forwards compatible, the Sentry Next.js SDK will now pick up
instrumentation-client.ts
files even on older Next.js versions and add them to your client bundles.It is suggested that you either rename your
sentry.client.config.ts
file toinstrumentation-client.ts
, or if you already happen to have ainstrumentation-client.ts
file move the contents ofsentry.client.config.ts
toinstrumentation-client.ts
.feat(browser): Add
previous_trace
span links (#15569)The
@ sentry/browser
SDK and SDKs based on@ sentry/browser
now emits a link from the first root span of a newly started trace to the root span of a previously started trace. You can control this feature via an option inbrowserTracingIntegration()
:feat(browser): Add
logger.X
methods to browser SDK (#15763)For Sentry's upcoming logging product, the SDK now supports sending logs via dedicated
dsn: 'your-dsn-here',
_experiments: {
enableLogs: true, // This is required to use the logging features
},
});
Sentry.logger.info('This is a trace message', { userId: 123 });
// See PR for better documentation
Please note that the logs product is still in early access. See the link above for more information.
Other Changes
parseStringToURL
method (#15768)dropUndefinedKeys
(#15760)shouldHandleError
(#15771)addNonEnumerableProperty
(#15766)dropUndefinedKeys()
(#15757)dropUndefinedKeys()
(#15781)Bundle size 📦
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Podsumowanie wygenerowane przez Sourcery
Aktualizacja @sentry/browser z wersji 9.9.0 do 9.10.0, zawierająca nowe funkcje i poprawki wydajności.
Nowe funkcje:
Ulepszenia:
Original summary in English
Summary by Sourcery
Upgrade @sentry/browser from version 9.9.0 to 9.10.0, incorporating new features and performance improvements
New Features:
Enhancements: