-
-
Couldn't load subscription status.
- Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Meta: Help WantedPackage: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDKhacktoberfest
Description
Customer asking - wrote in with the following snippet for @sentry/node:
import { Router } from 'express'
import pino from 'pino'
const logger = pino({level: 'info'});
const object = {
id: '123',
name: 'My Object'
}
export const objectRouter = new Router({ mergeParams: true})
objectRouter.get('/', (req, res) => {
const { id } = req.params
console.log(`Fetching object:${id}`) // <-- this shows up as breadcrumb
logger.info(`Fetching object:${id}`) // <-- this doesn't
Breadcrumbs from logging currently only support the 'console' module.
nerdbaggy, GlenTiki and Konstantin-Ushakov
Metadata
Metadata
Assignees
Labels
Meta: Help WantedPackage: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDKhacktoberfest