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

feat(packages/sui-logger): Add tracing to 300x and 400x pages #1886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcbenito
Copy link
Collaborator

@marcbenito marcbenito commented Dec 20, 2024

Description

Now, in datadog, we are receiving the 4xx and 3xx without URL. The idea is to add the url path ( as same way as 2xx and 500)
Adding this PR we will increase the number of tags for the server.request metric as much as routerUrls we have in the project ( x2, one for 3xx and the other for 4xx) In fotocasa for example it means add 80 tags

Related Issue

Example

Monitoring for 4xx or 3xx

image

Monitoring for 5xx and 2xx

image

@@ -28,7 +28,7 @@ export class DataDogLogger extends Writable {
method: req ? req.method : '-' // eslint-disable-line
}

if (!req || statusFamily === '4xx' || statusFamily === '3xx') {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we know the reason why these status code families were an exception in the first place...?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As far as @carlosvillu and @andresz1 told me, the reason should be the increase of tags.

Adding this PR we will increase the number of tags for the server.request metric as much as routerUrls we have in the project ( x2, one for 3xx and the other for 4xx) In fotocasa for example it means add 80 tags

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On the other hand we get the option to monitor increases/decreases (anomalies) of 3xx and 4xx.
For example, that days we cannot create a monitor to detect an increase of 400x errors for a specific page. Only global

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.

3 participants