Skip to content

Example of adding sentry to an existing OTEL app#1

Closed
AbhiPrasad wants to merge 1 commit intomainfrom
add-sentry-to-otel-example
Closed

Example of adding sentry to an existing OTEL app#1
AbhiPrasad wants to merge 1 commit intomainfrom
add-sentry-to-otel-example

Conversation

@AbhiPrasad
Copy link
Copy Markdown

Install and add Sentry to an existing OTEL installation via @sentry/node.

Sentry docs: https://docs.sentry.io/platforms/javascript/guides/nextjs/tracing/instrumentation/opentelemetry/#using-a-custom-opentelemetry-setup

@AbhiPrasad AbhiPrasad force-pushed the add-sentry-to-otel-example branch from 4800576 to cf9aa82 Compare June 26, 2024 20:36
@tnolet
Copy link
Copy Markdown

tnolet commented Jun 27, 2024

@AbhiPrasad thanks for making this PR. I have on question: how can we add our own Sampler? With my custom OTel setup I explicitly do not want to use Sentry's sampler.

@AbhiPrasad
Copy link
Copy Markdown
Author

I think getsentry/sentry-javascript#12674 will help expose the correct APIs for custom sampling

@AbhiPrasad AbhiPrasad closed this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants