Skip to content

Cleanup initialize/close behavior to prevent initialized? checks everywhere #2096

Open
@sl0thentr0py

Description

@sl0thentr0py

And perhaps we should implement a better version of close and Sentry.initialize? 🤔

Specifically:

  • We don't erase hub variables, @background_worker and @session_flusher
  • Sentry.initialize? is backed by a simple boolean state that's changed by Sentry.ini and Sentry.close.

We would still need Sentry.initialize? in some places to stop some actions after the SDK is closed, but we don't need it for preventingnil value anymore, which is getting out of hand IMO.

Originally posted by @st0012 in #2084 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions