Skip to content

Adding Datadog config in nginx.conf causes abnormal behavior with "proxy_set_header" directive  #5

@ydokmetas

Description

@ydokmetas

Environment:
nginx:1.21.5

When the following code added to nginx.conf, it causes proxy_set_header directive to be ineffective as if the directive does not exist.
If Datadog block removed then the directive works as expected.
Tracing works fine nonetheless, it is just that the header is not set correctly.

load_module modules/ngx_http_datadog_module.so;

http {
  datadog {
    "service": "usage-internal-nginx",
    "sample_rate": 1
  }
  proxy_set_header Host $host;
}


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions