nestjs-sentry icon indicating copy to clipboard operation
nestjs-sentry copied to clipboard

Add ability to add global tag

Open maxswjeon opened this issue 3 years ago • 1 comments

I'm using node cluster module for clustering. I want to tag logs and errors with process.pid. How can I do this?

maxswjeon avatar Jun 04 '22 16:06 maxswjeon

Hey! I was trying to achieve the same to add the kubernetes namespace as a tag. You can use initialScope.tags from the init config for this: https://docs.sentry.io/platforms/javascript/configuration/options/#initial-scope

Lp-Francois avatar Jul 08 '24 10:07 Lp-Francois