Skip to content

Set SentryFrame.function default to nil instead of <redacted> #4686

@philipphofmann

Description

@philipphofmann

Description

self.function = @"<redacted>";

The default of SentryFrame.function is <redacted> which makes no sense. We don't do this in other SDKs, such as Java for example. The Cocoa SDK doesn't symbolcate function names locally mostly because it's slow, and it usually doesn't work for app store builds. When the SDK can't detect the function name, instead it should keep it set to nil and let the backend set a potential <redacted>. This is a breaking change, though.

This came up while investigating getsentry/sentry#52851 (comment).

Metadata

Metadata

Assignees

Labels

Breaking-changeshould go in a major release (breaks apps, changes default configs in a major way)CocoaImprovement

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions