DatadogExtension

This extension adds support for tracing with Datadog.

📝 Note

Make sure you have ddtrace installed before using this extension.

pip install ddtrace

Usage example:

import strawberry
from strawberry.extensions.tracing import DatadogTracingExtension
schema = strawberry.Schema(
Query,
extensions=[
DatadogTracingExtension,
]
)
📝 Note

If you are not running in an Async context then you'll need to use the sync version:

import strawberry
from strawberry.extensions.tracing import DatadogTracingExtensionSync
schema = strawberry.Schema(
Query,
extensions=[
DatadogTracingExtensionSync,
]
)

Was this helpful? What can we improve?

Edit on Github

Newsletter 💌

Do you want to receive the latest updates on Strawberry? Subscribe to our newsletter!