getsentry / getsentry/sentry-javascript

Emit more breadcrumbs in `@sentry/node`

Open
#13,680 2 comments 0 reactions 0 assignees View on GitHub
Improvement Meta: Help Wanted Node.js
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
523

Description

### Description

We should check all our existing Node instrumentation to see if we can easily emit breadcrumbs as well.

It is important not to tie this to spans, as these have no data when not sampled. Instead, where possible we need to use hooks in instrumentation to create breadcrumbs.

```[tasklist]
### Tasks
- [ ] genericPool
- [ ] kafka
- [ ] mongo
- [ ] mongoose
- [ ] mysql
- [ ] mysql2
- [ ] postgres
- [ ] prisma
- [ ] redis
- [ ] fs
```

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing @sentry/node instrumentation for genericPool, kafka, mongo, mongoose, mysql, mysql2, postgres, prisma, redis, and fs. Identify the available instrumentation hooks rather than relying on spans, then verify that each applicable integration emits breadcrumbs when unsampled. Done means the task list is addressed with breadcrumbs produced independently of span data.

Written by the indexing model from the issue text.

Assessment

Tech stack
kafka, mongodb, mysql, node.js, postgres, redis, typescript
Domain
backend, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.