getsentry / getsentry/sentry-javascript
Integrations not working for Bun
- 主要言語
- TypeScript
- スター
- 8.7k
- フォーク
- 1.8k
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 515
説明
### Is there an existing issue for this?
- [X] I have checked for existing issues [https://github.com/getsentry/sentry-javascript/issues]()
- [X] I have reviewed the documentation [https://docs.sentry.io/]()
- [X] I am using the latest SDK release [https://github.com/getsentry/sentry-javascript/releases]()
### How do you use Sentry?
Sentry Saas ([sentry.io]())
### Which SDK are you using?
@sentry/bun
### SDK Version
8.37.1
### Framework Version
*No response*
### Link to Sentry event
*No response*
### Reproduction Example/SDK Setup
Hey,
which integrations should I expect to work in bun? So far only manual instrumentation seems to be working.
Is this expected behavior? If so, a few more notes on that would be appreciated in the documentation.
Bun
```
import * as Sentry from "@sentry/bun";
// Ensure to call this before importing any other modules!
Sentry.init({
dsn: DSN,
debug: true,
// Add Performance Monitoring by setting tracesSampleRate
// Set tracesSampleRate to 1.0 to capture 100% of transactions
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
```
```
import "./instrument.ts";
import * as Sentry from "@sentry/bun";
await Sentry.startSpan(
{
op: "test",
name: "My First Test Transaction in bun",
},
async () => {
await fetch(`https://google.com`);
},
);
const sleep = () => new Promise((res) => setTimeout(() => res("hi"), 3000));
await sleep();
throw new Error("I just crashed Bun");
`
Node
`
import * as Sentry from "@sentry/node";
// Ensure to call this before importing any other modules!
Sentry.init({
dsn: DSN,
debug: true,
// Add Performance Monitoring by setting tracesSampleRate
// Set tracesSampleRate to 1.0 to capture 100% of transactions
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
```
### Steps to Reproduce
[https://github.com/doepnern/sentry-node-bun-comparison]()
### Expected Result
## Expected http instrumentation to work, according to docs (See result for node below)
[https://docs.sentry.io/platforms/javascript/guides/bun/configuration/integrations/http/]()

### Actual Result

## error handling is noted as not working in the npm package page, so i guess that is to be expected

コントリビューションガイド
評価
この issue はまだ評価されていません。