Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http server 4xx configuration #2037

Merged
merged 3 commits into from
Jan 10, 2022
Merged

http server 4xx configuration #2037

merged 3 commits into from
Jan 10, 2022

Conversation

trask
Copy link
Member

@trask trask commented Jan 8, 2022

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
@@ -228,6 +228,7 @@ public String toString() {
// 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
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
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
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.

Copy link
Contributor

@heyams heyams left a comment

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
Copy link
Contributor

heyams commented Jan 10, 2022

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