Skip to content

Better error grouping key for opentelemetry SDKs #299

Description

@lahsivjar

Current logic for error grouping key prioritizes exception.type, log.param_message (this is non formatted error string), and the stacktrace. The final fallback is to use log.message which is formatted error string. This logic ensures that we contain the cardinality of the grouping key, however, with OTel SDKs we don't get stacktrace and log.param_message. This makes the grouping key rely only on exception.type taking away a lot of the usability of the grouping.

One possible solution might be to use the log.message if we can't get log.param_message OR the stacktrace. We can contain the cardinality explosion by a locality sensitive hashing techniques or heuristics (based on tokenization of the message and removing fields that are parameterized for example URIs or numbers).

NOTE: Current evidences are collected ONLY using opentelemetry-go and we may want to check some other language SDKs for a holistic view.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions