---
title: "Measuring Git performance with OpenTelemetry"
description: "trace2receiver is an open source OpenTelemetry collector component that converts Git's built-in Trace2 performance events into OpenTelemetry spans and metrics."
url: "https://swe.quest/articles/measuring-git-performance-with-opentelemetry-5dc23c9e1ec580dd"
canonical: "https://github.blog/engineering/architecture-optimization/measuring-git-performance-with-opentelemetry/"
source: "GitHub Engineering"
published: "2023-10-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 17
tags: ["version-control","observability","performance","developer-tools"]
---

# Measuring Git performance with OpenTelemetry

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2023-10-16, 17 min read, How-to. Original: [https://github.blog/engineering/architecture-optimization/measuring-git-performance-with-opentelemetry/](https://github.blog/engineering/architecture-optimization/measuring-git-performance-with-opentelemetry/)

## Summary

trace2receiver is an open source OpenTelemetry collector component that converts Git's built-in Trace2 performance events into OpenTelemetry spans and metrics. It supports both per-command distributed traces, mapping nested child processes and regions into parent-child spans, and fleet-wide aggregation for analyzing monorepo performance across users and machines. A git status trace on the Linux repo shows command time dropping from 970 ms to 204 ms with FSMonitor and to 40 ms with FSMonitor plus Untracked Cache, with the regions responsible for each saving identified. Kusto queries in Azure Data Explorer then compute command frequency and P80 durations grouped by repository, OS and processor.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Git basics
- OpenTelemetry collector concepts ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- distributed tracing ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Git, Trace2, OpenTelemetry, trace2receiver, FSMonitor, SigNoz, Azure Application Insights, Kusto

## Related posts

- [Why (and how) GitHub is adopting OpenTelemetry](https://swe.quest/articles/why-and-how-github-is-adopting-opentelemetry-0b6fb60f67930892.md): GitHub Engineering · 2021-05-26 · Medium · 4 min read · Observability, Ruby
  GitHub is standardizing on OpenTelemetry to replace a patchwork of statsd dialects, syslog-format logs and OpenTracing traces that made cross-signal correlation hard and forced repeated instrumentation work.
- [Observability as a superpower](https://swe.quest/articles/observability-as-a-superpower-5609b41c95a2309f.md): incident.io · 2024-11-04 · Medium · 8 min read · Observability, Go, Debugging, Incidents & postmortems
  Distributed tracing with OpenTelemetry lets incident.io engineers spot bugs before customers report them, by showing each request's route as a tree of timed spans that exposes slow steps, N+1 queries and duplicate calls.
- [Monitor your CI performance using Sentry](https://swe.quest/articles/monitor-your-ci-performance-using-sentry-bda7e20d9e49dda7.md): Sentry · 2026-11-10 · Medium · 4 min read · CI/CD, Observability, Developer productivity
  Sentry's tracing model can represent GitHub Actions workflows as traces, with each job's steps as spans, so slow steps and run-to-run variance show up the same way they would for an API request.
- [Improve Git monorepo performance with a file system monitor](https://swe.quest/articles/improve-git-monorepo-performance-with-a-file-system-monitor-1e7445f19bf20b0e.md): GitHub Engineering · 2022-06-29 · Medium · 22 min read · Version control, Performance engineering, Developer tools
  Git 2.37.0 adds a builtin file system monitor daemon (\`git fsmonitor--daemon\`) for macOS and Windows, enabled by setting \`core.fsmonitor\` to true.
- [How Uken Games reduces observability costs by 87% with ClickHouse](https://swe.quest/articles/how-uken-games-reduces-observability-costs-by-87-with-clickhouse-b3d46180eaebbbed.md): ClickHouse · 2026-09-01 · Medium · 7 min read · Observability, Cost optimization, Analytics & OLAP, Games
  Uken Games replaced Datadog with an open-source observability stack: OpenTelemetry collectors in an agent-plus-gateway layout, SigNoz on a single ClickHouse node for traces, AWS-managed Prometheus for metrics, CloudWatch for logs, and Grafana alerts defined as code via a custom CloudFormation resource.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
