Shopify Hydrogen Drains
Learn how to set up Shopify trace exports to forward trace data from your Hydrogen apps to Sentry.
Shopify Hydrogen trace exports let you send a sample of your request traces to Sentry via the OpenTelemetry (OTLP) format.
Before you begin, ensure you have:
- A Shopify Hydrogen app you want to monitor
- A Sentry project you want to send data to
Go through the following steps to set up trace exports:
- From your Shopify admin, under Sales channels, click Hydrogen.
- On the Hydrogen storefront page, click Storefront settings.
- On the Storefront settings page, click Integrations.
- On the Integrations settings page, click Connect an observability drain and select HTTP.
- Under the trace export endpoint URL field add the Sentry OTLP traces endpoint in the URL field. You can find the endpoint in your Sentry Project Settings under Client Keys (DSN) > OpenTelemetry (OTLP) under the OTLP Traces Endpoint section.
Copied
___OTLP_TRACES_URL___
- Add the Sentry Authentication Header under the authentication headers section. You'll also find the header value in your Sentry Project Settings under Client Keys (DSN) > OpenTelemetry (OTLP) under the OTLP Traces Endpoint Headers section.
Copied
x-sentry-auth: sentry sentry_key=___PUBLIC_KEY___
- Click Save to save your configuration. After you save the configuration, sampled traces start flowing to Sentry. It may take a few minutes, and you'll need to generate traffic on your storefront before traces appear.
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").