Skip to content

Alternative initialization methods for CLI tools #1133

Closed
@n1ngu

Description

@n1ngu

Rationale

Unlike WSGI applications, CLI tools usually offer no mechanism to be consistently monkeypatched, thus hampering any call to sentrysdk.init(). If the tool configuration was a python file or the shell script was fully wrapped in an importable main function, one could still hack a way to initialize sentry. But this is not always a possibility.

Still, tools can usually be told to use a particular file configuration for the standard logging system.

Proposal

I'd love that sentry provided a mechanism to initialize itself on this kind of tooling, specially for scripts that are meant to be run as daemons in some frameworks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions