Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading