Skip to content

[BUG]: Wrong error when no connection to APM socket is possible #174

@cmitz

Description

@cmitz

Module Version(s)

1.5.0

Bug Report

Our nginx container runs with the Datadog APM socket file mounted as volume. It is also explicitly configured to use these. However, the container still logs this when it cannot connect to that socket.

2025/02/20 16:08:26 [error] 94#96: nginx-datadog: [error code 4] Error occurred during HTTP request for Remote Configuration: Error sending request with libcurl (Couldn't connect to server): Failed to connect to localhost port 80 after 0 ms: Couldn't connect to server

The expected behaviour is that it logs it can't communicate over that socket, instead of saying it cannot connect to localhost port 80

Reproduction Code

No response

Error Logs

No response

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions