Skip to content

[BUG]: ENV var DD_TRACE_HTTP_SERVER_ERROR_STATUSES not present #7060

@lerminou

Description

@lerminou

Tracer Version(s)

7.69.3

Node.js Version(s)

22

Bug Report

In every others sdk, We can customize the error code to set for the APM module.
go: https://github.com/DataDog/dd-trace-go/blob/bab575a32bfbf3eb7f20c46f2be3869357391faf/contrib/gin-gonic/gin/option.go#L20
python: https://github.com/DataDog/dd-trace-py/blob/f846235194e3d8a3187f5ae9bf9ea1c753cfc96b/docs/advanced_usage.rst#custom-error-codes

It seems to be absent on JS sdk , I only get the 500 errors and not 4XX

It seems to use the DD_TRACE_HTTP_SERVER_ERROR_STATUSES env var

Image

Reproduction Code

No response

Error Logs

No response

Tracer Config

No response

Operating System

No response

Bundling

Unsure

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions