API Stability Preview

The enableWorkerQueryTracing() GraphQL mutation may be used to enable query tracing on worker nodes for queries with the given quota key.

Syntax

Below is the syntax for the enableWorkerQueryTracing() mutation field:

graphql
enableWorkerQueryTracing(
      input: EnableWorkerQueryTracingInputType!
   ): boolean!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  enableWorkerQueryTracing (input:
    { quotaKey: "abc123",
      expiry: "2025-06-12T00:00:00Z"
    } )
}
Example Responses
Show:
json
{
  "data": {
    "enableWorkerQueryTracing": true
  }
}

Given Datatypes

For EnableWorkerQueryTracingInputType, there are two straightforward parameters that may be given. They're listed and described below:

Table: EnableWorkerQueryTracingInputType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 18, 2024
expirydatetimeyes PreviewThe end timestamp for tracing. Tracing for this quota key will be disabled automatically once this time is reached. Will be clamped to be at most 15 minutes in the future.
quotaKeystringyes PreviewThe quota key for which to enable tracing. All queries belonging to this quota key will be traced.