Skip to content

Scope removeContext and removeTag not working for app crash #2588

Description

@denrase

Platform

iOS

Installed

Swift Package Manager

Version

8.0.0-beta4

Steps to Reproduce

  1. Set a context key with data and remove it again.
SentrySDK.configureScope { scope in
    scope.setContext(value: ["key": "value"], key: "context-key")
    scope.setContext(value: ["key-2": "value-2"], key: "context-key-2")
    scope.removeContext(key: "context-key-2")
}
  1. Launch application and trigger a hard crash. This was done with the swift sample app.
  2. Launch application again in order for the crash to sync to the backend.

Same behaviour for set/remove tag.

Expected Result

Only data for context-key is present.

Actual Result

Data for context-key-2 is still present.

Bildschirmfoto 2023-01-09 um 14 01 36

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions