feat(examples): add Docker Compose setup with trace correlation#30
Open
petems wants to merge 1 commit intoDataDog:mainfrom
Open
feat(examples): add Docker Compose setup with trace correlation#30petems wants to merge 1 commit intoDataDog:mainfrom
petems wants to merge 1 commit intoDataDog:mainfrom
Conversation
- Add complete Docker Compose example with Apache, Node.js, and Datadog Agent - Configure Apache with mod_datadog for APM tracing and log correlation - Implement Winston logging in Node.js service with automatic trace injection - Set up Datadog Agent for log collection from Docker containers - Add envchain support for secure API key management - Include proper trace and span ID correlation across services - Add comprehensive documentation in CLAUDE.md 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
e7e1563 to
2a360f5
Compare
dmehala
approved these changes
Oct 8, 2025
Comment on lines
+57
to
+61
| ### Load testing | ||
| ```bash | ||
| make stress | ||
| ``` | ||
| This uses vegeta to send 1000 req/s for 60 seconds to test the tracing under load. |
Collaborator
There was a problem hiding this comment.
I don't see any Makefile. I would suggest to remove this section
| container_name: sample-ddagent | ||
| environment: | ||
| - DD_API_KEY | ||
| - DD_SITE=datadoghq.com |
Collaborator
There was a problem hiding this comment.
Suggested change
| - DD_SITE=datadoghq.com | |
| - DD_SITE |
To allow the user to overwrite DD_SITE
| - `docker-compose.yml`: Main orchestration configuration | ||
| - `apache/`: Apache configuration and Dockerfile | ||
| - `httpjs/`: Node.js HTTP service with Dockerfile and http.js server | ||
| - `Makefile`: Contains stress testing command |
| - `apache/`: Apache configuration and Dockerfile | ||
| - `httpjs/`: Node.js HTTP service with Dockerfile and http.js server | ||
| - `Makefile`: Contains stress testing command | ||
| - `doc/`: Documentation and trace sample images No newline at end of file |
| @@ -0,0 +1,2 @@ | |||
| This is the source code and build instructions for an HTTP server. It's the | |||
| "http" upstream service in [docker-compose.yml](../../docker-compose.yml). No newline at end of file | |||
There was a problem hiding this comment.
Suggested change
| "http" upstream service in [docker-compose.yml](../../docker-compose.yml). | |
| "httpjs" upstream service in [docker-compose.yml](../../docker-compose.yml). |
There was a problem hiding this comment.
Is this httpd.conf file used anywhere? I don't see it being copied into the image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Had some challenges getting Apache setup for a customer, a lot of of this isn't publically documented and I couldn't find a specific example, had to grab stuff from tests and stuff. This hopefully helps with that for future people 😄
See also: DataDog/documentation#31844
🤖 Generated with Claude Code