telemetry: instrumentation: spans: mode: spec_compliant router: attributes: should_not_log: static: hello too_big: static: true another_one: static: foo graphql.operation.name: operation_name: string supergraph: attributes: graphql.document: true subgraph: attributes: too_big: static: "nope" events: router: # Standard events request: info response: info error: info # Custom events my.disabled_request_event: message: "my event message" level: off on: request attributes: http.request.body.size: true # Only log when the x-log-request header is `log` condition: eq: - "log" - request_header: "x-log-request" my.request_event: message: "my event message" level: info on: request attributes: http.request.body.size: true my.response_event: message: "my response event message" level: info on: response attributes: http.response.body.size: true static_one: static: test supergraph: # Standard events request: info response: info error: info # Custom events my.disabled_request.event: message: "my event message" level: off on: request # Only log when the x-log-request header is `log` condition: eq: - "log" - request_header: "x-log-request" my.request.event: message: "my event message" level: info on: request # Only log when the x-log-request header is `log` condition: eq: - "log" - request_header: "x-log-request" my.response_event: message: "my response event message" level: warn on: response condition: eq: - "log" - response_header: "x-log-request" subgraph: # Standard events request: info response: warn error: error # Custom events my.disabled_request.event: message: "my event message" level: off on: request my.request.event: message: "my event message" level: info on: request my.response.event: message: "my response event message" level: error on: response attributes: subgraph.name: true response_status: subgraph_response_status: code "my.custom.attribute": subgraph_response_data: "$.*" default: "missing" exporters: tracing: propagation: trace_context: true jaeger: enabled: true batch_processor: scheduled_delay: 100ms agent: endpoint: default logging: experimental_when_header: - name: content-type value: "application/json" body: true stdout: format: json: display_span_list: false display_current_span: false span_attributes: - graphql.document - too_big