Skip to content

Optional HTTP Client 404 as OK configurable #14482

@driverpt

Description

@driverpt

Is your feature request related to a problem? Please describe.

Currently on any Http Client, any responses with 404 are setting the Span to ERROR, which may not be the case (in our case Http Status Code is used as an Application Protocol).

We have OTEL Collector to sample any kind of error and in some cases this is always being sampled, causing a lot of data ingestion on the Observability Provider, causing a bill increase.

Describe the solution you'd like

We'd like to have something like OTEL_INSTRUMENTATION_HTTP_CLIENT_404_NO_ERROR=true which defaults to false but makes OTEL Instrumentation interpret HttpClient's 404 on Spans as UNSET or OK.

Describe alternatives you've considered

We have tried disabling Instrumentation of Http Clients, but we'd lose the visibility

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions