title: Strawberry docs
General
Types
Codegen
Guides
Extensions
Editor integration
Concepts
Integrations
Federation
Operations
ApolloTracingExtension
This extension adds tracing information to your response for Apollo Engine.
Usage example:
import strawberryfrom strawberry.extensions.tracing import ApolloTracingExtension
@strawberry.typeclass Query: @strawberry.field def hello(self) -> str: return "Hello, world!"
schema = strawberry.Schema( Query, extensions=[ ApolloTracingExtension, ],)
📝 Note
If you are not running in an Async context then you'll need to use the sync version:
import strawberryfrom strawberry.extensions.tracing import ApolloTracingExtensionSync
@strawberry.typeclass Query: @strawberry.field def hello(self) -> str: return "Hello, world!"
schema = strawberry.Schema( Query, extensions=[ ApolloTracingExtensionSync, ],)
API reference:
No arguments