Skip to content

Conversation

@cleptric
Copy link
Member

@cleptric cleptric commented Sep 1, 2025

closes #1893
closes PHP-22

@cleptric cleptric self-assigned this Sep 1, 2025
@vercel
Copy link

vercel bot commented Sep 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Nov 11, 2025 9:01am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Nov 11, 2025 9:01am

@codecov
Copy link

codecov bot commented Sep 1, 2025

Bundle Report

Changes will decrease total bundle size by 313.62kB (-1.37%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.91MB -290 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.28MB -313.33kB (-2.49%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/media/7c239973d8aef789-*.woff2 (New) 32.56kB 32.56kB 100.0% 🚀
static/media/32c80fb7588b7a2e-*.woff2 (New) 32.48kB 32.48kB 100.0% 🚀
static/media/a5d9f2ead0568494-*.woff2 (New) 21.08kB 21.08kB 100.0% 🚀
static/media/5b25d60b4670300e-*.woff2 (New) 19.29kB 19.29kB 100.0% 🚀
static/media/fc5b975a09123a00-*.woff2 (New) 9.75kB 9.75kB 100.0% 🚀
static/media/99e31c27a1524300-*.woff2 (New) 9.35kB 9.35kB 100.0% 🚀
static/RGo2_TVra6JGMv51zFUrr/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/RGo2_TVra6JGMv51zFUrr/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/media/4fca85807f6c09f6-*.woff2 (Deleted) -32.6kB 0 bytes -100.0% 🗑️
static/media/d695df15e3ff125c-*.woff2 (Deleted) -32.58kB 0 bytes -100.0% 🗑️
static/media/acdf4f392b58827a-*.woff2 (Deleted) -21.13kB 0 bytes -100.0% 🗑️
static/media/501d9eeee6e2b0cc-*.woff2 (Deleted) -19.41kB 0 bytes -100.0% 🗑️
static/media/a72efd2c2476ebb2-*.woff2 (Deleted) -9.7kB 0 bytes -100.0% 🗑️
static/media/9d7436bc73437f75-*.woff2 (Deleted) -9.36kB 0 bytes -100.0% 🗑️
static/uY3fz-*.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/uY3fz-*.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -33.51kB 1.74MB -1.89%
../instrumentation.js -33.8kB 1.07MB -3.07%
9523.js -33.51kB 1.04MB -3.11%
../app/[[...path]]/page.js.nft.json -70.43kB 728.81kB -8.81%
../app/platform-redirect/page.js.nft.json -70.43kB 728.73kB -8.81%
../app/sitemap.xml/route.js.nft.json -70.43kB 726.2kB -8.84%
7153.js (New) 30.3kB 30.3kB 100.0% 🚀
../app/api/ip-ranges/route.js -300 bytes 5.79kB -4.92%
../app/robots.txt/route.js -300 bytes 5.02kB -5.64%
2311.js (Deleted) -30.9kB 0 bytes -100.0% 🗑️

App Routes Affected:

App Route Size Change Total Size Change (%)
/ -600 bytes 2.62MB -0.02%

@linear
Copy link

linear bot commented Sep 8, 2025

$logger = new Logger('sentry_logs');
$logger->pushHandler(new \Sentry\Monolog\LogsHandler(
LogLevel::info(), // Minimum level to send logs
));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Sentry Monolog LogsHandler: Parameter Mismatch

The LogsHandler is instantiated with incorrect parameters. It uses LogLevel::info() from Sentry\Logs\LogLevel (called as a method with parentheses) instead of Monolog\Level::Info, and it's missing the hub parameter with named arguments. Other Sentry Monolog handlers in the same file (BreadcrumbHandler and Handler) consistently use named parameters with hub: \Sentry\SentrySdk::getCurrentHub() and level: Level::Info, which is the correct pattern.

Fix in Cursor Fix in Web

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LogsHandler uses (LogLevel, bool) in the constructor. This comment would be correct for BreadcrumbHandler which uses a different signature

@Litarnus Litarnus requested a review from a team November 11, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Docs for Monolog Logs

3 participants