Skip to content

http server 4xx configuration#2037

Merged
trask merged 3 commits into
mainfrom
http-server-4xx-configuration
Jan 10, 2022
Merged

http server 4xx configuration#2037
trask merged 3 commits into
mainfrom
http-server-4xx-configuration

Conversation

@trask

@trask trask commented Jan 8, 2022

Copy link
Copy Markdown
Member

No description provided.

@trask trask force-pushed the http-server-4xx-configuration branch from 6ab5257 to 14c2f2f Compare January 8, 2022 21:49
@trask trask marked this pull request as ready for review January 10, 2022 17:11
@trask trask requested review from heyams and kryalama as code owners January 10, 2022 17:11
// this is needed to unblock customer, but is not the ideal long-term solution
// https://portal.microsofticm.com/imp/v3/incidents/details/266992200/home
public boolean disablePropagation;
public boolean captureHttpServer4xxAsError = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i saw the IcM 282327358 that is asking to treat 4xx response as success not error. rename?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this naming is a bit better from otel perspective, as the default in otel is not to capture server 4xx as error (but also not to capture it as success, there's a third option in otel - UNSET)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the config customer will be using.. if they wants 4xx as success, they will set this flag to false. unset will return true. yeah, it works.

@heyams heyams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

azure doc needs to be updated.

@heyams

heyams commented Jan 10, 2022

Copy link
Copy Markdown
Contributor

let's track this via statsbeat.

@trask trask merged commit 1a043d2 into main Jan 10, 2022
@trask trask deleted the http-server-4xx-configuration branch January 10, 2022 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants