---
title: "Organizing ownership: How we assign errors in our monolith"
description: "incident.io assigns error ownership inside its monolith by dividing the codebase into team-owned units (apps, backend feature packages, integrations), each with a required jsonnet module file declaring owner, criticality and customer-facing features."
url: "https://swe.quest/articles/organizing-ownership-how-we-assign-errors-in-our-monolith-a4731f02c7358da3"
canonical: "https://incident.io/blog/organizing-ownership-how-we-assign-errors-in-our-monolith"
source: "incident.io"
published: "2024-11-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["observability","incident-response","go","ci-cd"]
---

# Organizing ownership: How we assign errors in our monolith

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2024-11-18, 7 min read, How-to. Original: [https://incident.io/blog/organizing-ownership-how-we-assign-errors-in-our-monolith](https://incident.io/blog/organizing-ownership-how-we-assign-errors-in-our-monolith)

## Summary

incident.io assigns error ownership inside its monolith by dividing the codebase into team-owned units (apps, backend feature packages, integrations), each with a required jsonnet module file declaring owner, criticality and customer-facing features. A CI check enforces that every package has an owner, and a script rolls these up into a CODEOWNERS file. Error-wrapping middleware in Go recursively unwraps errors, maps stack-frame source paths against CODEOWNERS to find the deepest owning team, and tags the error with a team field that monitoring and alerting tools use for routing. A manual override is supported, and errors with no identifiable owner stay untagged and fall back to the on-call team.

Written by swe.quest, not by the author.

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

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- error wrapping and stack traces
- CODEOWNERS files
- alert routing basics ([easy posts on Maps & geospatial](https://swe.quest/tags/geospatial.md?difficulty=easy))

## Keywords

incident.io, CODEOWNERS, jsonnet, Sentry

## Related posts

- [How we organize and get things done with SERVICEOWNERS](https://swe.quest/articles/how-we-organize-and-get-things-done-with-serviceowners-2afb066a8015a9a4.md): GitHub Engineering · 2023-12-19 · Medium · 4 min read · Developer productivity, Engineering management, Ruby, SRE
  GitHub added a service layer between code and teams in its 4.2M-line Rails monolith: a SERVICEOWNERS file maps glob patterns, directories and files to named services, and a service-mappings.yaml ties each service to teams, managers, chat channels and tier ratings.
- [How our product team use Catalog](https://swe.quest/articles/how-our-product-team-use-catalog-e9cf5ad445eb076b.md): incident.io · 2023-06-29 · Medium · 8 min read · Incidents & postmortems, Configuration management, CI/CD, Infrastructure as code
  incident.io's product team populated its own Catalog with features, integrations and teams to replace messy, hand-curated incident Custom Fields.
- [Onboarding yourself as an engineer at incident.io](https://swe.quest/articles/onboarding-yourself-as-an-engineer-at-incident-io-0fce0735d9296049.md): incident.io · 2024-07-05 · Medium · 4 min read · Infrastructure as code, Engineering culture, Developer productivity
  New engineers at incident.io onboard themselves by opening a PR to the infrastructure repo that adds them as a user, puts them on a team in a Jsonnet config, and defines a Spacelift dev stack.
- [Defending Your Software Supply Chain: What Every Engineering Team Should Do Now](https://swe.quest/articles/defending-your-software-supply-chain-what-every-engineering-team-should-do-now-434c4d75b0885a00.md): Docker · 2026-04-02 · Medium · 9 min read · Supply chain security, CI/CD, Containers, AI agents
  Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners.
- [Rolling out Roles](https://swe.quest/articles/rolling-out-roles-feb5c6f49f33b701.md): incident.io · 2022-03-11 · Medium · 6 min read · Identity & auth, Deployment, Product engineering, Go, TypeScript
  incident.io added role-based access control by mapping a fixed set of customer-facing roles (owner, admin, etc.) to granular internal scopes.

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)
