Skip to content

v3: Frame->absoluteFilePath is always null #1113

Description

@caugner

I maintain a legacy app with Smarty templates which causes a lot of Notice noise. We have been filtering these in the before_send callback by comparing the last frame's absolute file path against the directory in which those Smarty templates reside in.

After upgrading to sentry/sdk v3, we noticed that these Notices were no longer filtered.

Debugging showed that all Frame->absoluteFilePaths are now null, which hadn't been the case in v2.

sentry-php/src/Frame.php

Lines 34 to 37 in f09173d

/**
* @var string|null The absolute path to the source file
*/
private $absoluteFilePath;

The Upgrade guide doesn't mention this. Is this a bug or a breaking change?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions