Skip to content

Consider NOT sending debug images in certain cases #2227

@mattjohnsonpint

Description

@mattjohnsonpint

Problem Statement

The DebugImage class was originally added in version 3.16.0 with #1513, but was unused until we added Portable PDB support in version 3.25.0 with #2050.

Since 3.25.0, we've been attaching SentryEvent.DebugImages and sending them to with Sentry events, on the debug_meta.images interface. We do this for almost every error event, as long as we can determine a debug_id. This is a signal to Sentry that symbolication should be attempted when the event is processed. If matching debug information files (symbols and/or source bundles) are found, then everything works fine and as intended.

The problem is that currently, if debug_meta is sent, and no matching debug file was uploaded, it can result in errors displayed in the Sentry UI such as:

image

These are noise for .NET developers in cases where symbolication is already happening client-side and source context isn't desired.

Solution Brainstorm

We could try to detect if SentryUploadSymbols or SentryUploadSources were both unset, write that as an attribute on the assembly, then use it at runtime to avoid sending debug images.

Alternatively, we could just continue to let debug images to always be sent. The error messages can be suppressed on the server side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions