doc/operations/observability/ci_cd.md
{{< details >}}
{{< /details >}}
When enabled, GitLab Observability automatically instruments your CI/CD pipelines, providing visibility into pipeline performance, job durations, and execution flow without any code changes.
To enable automatic pipeline instrumentation, add the GITLAB_OBSERVABILITY_EXPORT CI/CD variable to your project or group:
GITLAB_OBSERVABILITY_EXPORTtraces, metrics, logs (comma-separated for multiple values)The GITLAB_OBSERVABILITY_EXPORT variable accepts the following values:
traces: Exports distributed traces showing pipeline execution flow, job dependencies, and timingmetrics: Exports metrics about pipeline duration, job success rates, and resource usagelogs: Exports structured logs from pipeline executionYou can enable multiple types by separating them with commas:
traces,metrics,logs
Once the variable is set, GitLab automatically:
No changes to your .gitlab-ci.yml file are required. The instrumentation happens automatically in the background.
After running pipelines with instrumentation enabled:
gitlab-ci service to view traces, metrics, and logs from your pipeline executions.The CI/CD dashboard template from GitLab Observability Templates provides pre-built visualizations for pipeline performance analysis.