Skip to content

[BUG]: Error tracking default grouping is taking gem frames into account #4956

@agrobbin

Description

@agrobbin

Tracer Version(s)

2.21.0

Ruby Version(s)

ruby 3.4.6 (2025-09-16 revision dbd83256b1) +PRISM

Relevent Library and Version(s)

pg 1.6.2

Bug Report

We had 2 instances of PG statement timeouts in different areas of the application. In one case, that scenario is unfortunate but expected (it is gracefully retried in the background) and was ignored in DD Error Tracking, however in another area it is entirely unexpected and was a sign of an issue to be investigated.

Unfortunately, the error fingerprint of both exceptions was grouped together, and according to the Error Tracking grouping explanation, the reason it was grouped together was because of the actual datadog gem tracing:

Image

This seems like a surprising experience, with Datadog tracing actually changing the grouping logic of errors.

Reproduction Code

No response

Configuration Block

No response

Error Logs

No response

Operating System

No response

How does Datadog help you?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugInvolves a bugcommunityWas opened by a community member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions