Skip to main content

How do I set up tracing for the Unreal Engine SDK?

Issue

I want to set up tracing for my Unreal Engine project, including distributed tracing between my Unreal app and my server backend, which also runs Sentry.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Tracing

  • Unreal Engine SDK

Resolution

Yes, the Unreal Engine SDK supports tracing, including distributed tracing across your backend services.

To set up tracing:

  1. Enable tracing by setting a sample rate. Set TracesSampleRate to a value between 0 and 1, or provide a TracesSampler function for dynamic sampling. See Set Up Tracing.

  2. Create transactions and spans with custom instrumentation to capture the operations you care about.

  3. For distributed tracing between your Unreal app and your server backend, follow trace propagation so Sentry propagates the sentry-trace and baggage headers between services. Every service in the trace must run a Sentry SDK.

Note: The Unreal SDK also emits automatic performance metrics, such as frame time and FPS. These are enabled by default in Unreal SDK 1.11.0 and later.

Did this answer your question?