Skip to content

Step 1.2 - Add ApplicationContextTracer to Graphql Schema

What does this MR do and why?

This MR sets up the initial GraphQL tracer which writes to the Gitlab::ApplicationContext based on the specific query. This application context is read from when writing various logs, so it's very helpful to give this operation specific information (not just GraphqlController#execute).

This is also used by the upcoming LoggerTracer.

Screenshots or screen recordings

Not really relevant yet. Locally, I'm not noticing any logs which use caller_id while executing a GraphQL query.

Description Screenshot
caller_id for request log remains unchanged. This is good because a single request can handle multiple queries. Screen_Shot_2021-10-20_at_10.53.03_PM

But! This will come up soon with the upcoming LoggerTracer and MetricsTracer

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #331697 (closed)

Edited by Paul Slaughter

Merge request reports