-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
getsentry/sentry-docs
#14594Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- 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
9.38.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
const sentryClient = Sentry.init({
// enabled: process.env.NODE_ENV === "production",
dsn: SENTRY_DSN,
environment: process.env.ENVIRONMENT,
integrations: [],
tracesSampleRate: 1.0,
// @ts-expect-error
skipOpenTelemetrySetup: true,
});
if (!Sentry.isEnabled()) console.warn("Sentry is not enabled");
const provider = new NodeTracerProvider({
sampler: sentryClient ? new SentrySampler(sentryClient) : undefined,
spanProcessors: [new SentrySpanProcessor()],
});
provider.addSpanProcessor(new SentrySpanProcessor());
provider.register({
// Ensure trace propagation works
// This relies on the SentrySampler for correct propagation
propagator: new SentryPropagator(),
// Ensure context & request isolation are correctly managed
contextManager: new Sentry.SentryContextManager(),
});
// Validate that the setup is correct
Sentry.validateOpenTelemetrySetup();Steps to Reproduce
I tried to follow the documentations https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/ and https://docs.sentry.io/platforms/javascript/guides/bun/migration/v7-to-v8/v8-opentelemetry/ but especially the one for bun is lacking info, like where to get the imports from. Also skipOpenTelemetrySetup doesn't exist in the bun sdk
Expected Result
I am trying to do custom OpenTelemetry setup so that I can enable Sentry for error tracking but use langfuse for LLM tracing
Actual Result
Type errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status