-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
-
Configure
initialScopewith global tags insentry.server.config.ts(orsentry.edge.config.ts):Sentry.init({ dsn: process.env.SENTRY_DSN, initialScope: { tags: { microservice: "web" } } });
-
In a server-side file (e.g.,
@eden.server.ts), use the newSentry.loggerinterface:import * as Sentry from "@sentry/nextjs"; // ... inside a function Sentry.logger.info("Testing logger tags");
-
View the captured log event in the Sentry dashboard.
Expected Result
The event generated by Sentry.logger.info should automatically include the microservice: "web" tag defined in the initialScope, matching the behavior of Sentry.captureException or Sentry.captureMessage.
Actual Result
The event is captured successfully, but the microservice tag is missing from the "Tags" section in the issue details.
Product Area
Explore
Link
No response
DSN
No response
Version
No response
Metadata
Metadata
Assignees
Labels
Projects
Status
No status