Example Webserver
This is a test Mojolicious web application that demonstrates various endpoints and Datadog tracing integration.
Running the Server
The server can be run using Docker Compose from the parent directory:
docker-compose up --build
The server will be available at http://localhost:4301
Available Endpoints
GET /- Returns a simple text responseGET /restart- Restarts the hypnotoad serverGET /some/specific/route/:id- Returns a response with the provided ID parameterGET /sleep10- Synchronous 10-second delay endpointGET /sleep10-async- Asynchronous 10-second delay endpointGET /loopget- Makes a request to the root endpointGET /recurse-sleep- Makes an async request to /sleep10-async with Custom Datadog tracing
Configuration
You can modify the environment settings in the docker-compose.yml file. You'll want to run a datadog agent and point this at the agent with the DD_AGENT_HOST environment variable.