You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find the issue that APM metrics "trace.bottle.request.errors" is different from my internal counter about number of Http 5xx.
I assume Http 5xx would be all categorized as "errors", then I look at APM trace search and find I have 3785 traces are 5xx, but 2880 of them's status is "OK", 905 of them's status is "Error" (see screenshot)
I wonder if my doubt is correct, and seems we should have a unify place to set these attributes rather than requires each framework plugin to handle that individually
Refer
Similar discussion at dd-trace-js about what things should be considered as "error": DataDog/dd-trace-js#297
IMO, network errors and Http 5xx should be categorized as error
The text was updated successfully, but these errors were encountered:
Hi there,
Issue
I find the issue that APM metrics "trace.bottle.request.errors" is different from my internal counter about number of Http 5xx.
I assume Http 5xx would be all categorized as "errors", then I look at APM trace search and find I have 3785 traces are 5xx, but 2880 of them's status is "OK", 905 of them's status is "Error" (see screenshot)
My Guess
I doubt if the Bottle plugin is working properly, because I see Flask plugin is explicitly set span attribute like
error
errors.ERROR_TYPE
: https://github.com/DataDog/dd-trace-py/blob/master/ddtrace/contrib/flask/middleware.py#L147-L151So is Pylon: https://github.com/DataDog/dd-trace-py/blob/master/ddtrace/contrib/pylons/middleware.py#L63-L64
Bottle on the other hand, does not set the same set of span attributes: https://github.com/DataDog/dd-trace-py/blob/master/ddtrace/contrib/bottle/trace.py#L50-L56
I am using the latest
dd-trace-py==0.24.0
I wonder if my doubt is correct, and seems we should have a unify place to set these attributes rather than requires each framework plugin to handle that individually
Refer
Similar discussion at dd-trace-js about what things should be considered as "error": DataDog/dd-trace-js#297
IMO, network errors and Http 5xx should be categorized as error
The text was updated successfully, but these errors were encountered: