From 12b3f0896487a69b1b25edff25a0a0b0b6d1e869 Mon Sep 17 00:00:00 2001 From: lym953 <10097700+lym953@users.noreply.github.com> Date: Wed, 14 Oct 2026 13:57:04 -0400 Subject: [PATCH] docs(agents): check serverless-components before adding new code Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 251aae1fe..102c32899 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,6 +10,14 @@ The Datadog Lambda Extension ("Bottlecap") is an AWS Lambda Extension written in All Rust code lives under `bottlecap/`. Run these from that directory unless noted. +## Where New Code Goes + +The `serverless-components` repo (https://github.com/DataDog/serverless-components) holds Rust crates that this extension and the Azure and Google Cloud Platform (GCP) serverless agents share, for example `dogstatsd`, `datadog-fips` and `datadog-agent-config`. + +- Before you add a new functionality, check whether `serverless-components` already has it. If it does, use it from there. +- If it does not, decide whether other serverless agents can also use the code. If they can, add it to `serverless-components`, not to this repo. +- If the decision is not clear, tell the engineer to speak with the Serverless Azure and GCP team. Do the same if you must change an existing crate in `serverless-components`. + ## Code Style - Do not be overly defensive and add unnecessary checks or tests unless you have a good reason.