getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
8.02k stars 1.59k forks source link

Twillio api is not being traced in Bun? #13389

Open Jonatthu opened 3 months ago

Jonatthu commented 3 months ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/bun

SDK Version

8.26

Framework Version

Bun 1.1.24

Link to Sentry event

No response

Reproduction Example/SDK Setup

With:

import { env } from '@app-packages/api/src/trpc';
import * as Sentry from '@sentry/bun';

Sentry.init({
    environment: env.ENV_NAME,
    dsn: '****',
    tracesSampleRate: 1.0,
});

I am not able to trace twillio api calls

            await twilio.messages.create({
                to: input.phoneNumber,
                from: env.TWILIO_PHONE_NUMBER,
                body: `****`,
            });

Any suggestions?

Steps to Reproduce

Just use twillio client with sentry and bun

Expected Result

Should have traces on my dashboard

Actual Result

It traces other domains but not twillio at all

AbhiPrasad commented 3 months ago

@Jonatthu - could you add debug: true to your Sentry.init call and share the debug logs coming from Sentry? Thanks!

Jonatthu commented 2 months ago

It is just open telemetry not able to run the http hook in bun because it fails because of the shimmer bug