Skip to content

Ignore exception attributes for a given route or status (Pyramid) #1037

@gregbuehler

Description

@gregbuehler

It would be convenient to provide a way to specify routes and/or status codes are not exceptional.

A common pattern within Pyramid is to raise the desired response for certain business flows (e.g. raise a 301 to force a redirect, raise a 204 after deleting an entity, etc) rather than properly return. Because the response was raised and handled as an HTTPException the span is decorated with exception attributes even though the request was not actually exceptional. This causes many vendors to interpret a false-positive when calculating things like error rate.

There is history of this functionality in other instrumentation:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions