Skip to content

Request: Add event/exception processors outside of init #58

@lunim

Description

@lunim

In our usage we have a library that only contains calls to the static capture methods, thus relying on the consuming application to init the SDK before calling library functions. It would be useful to add event processors (AddEventProcessor) outside of the init method for this purpose. As an example:

Console program:

using (SentrySdk.Init(o =>
{
    o.Dsn = new Dsn("<url>");
}))
{
    Library.LibraryFunction();
}

Library:

void LibraryFunction()
{
    SentrySdk.AddEventProcessor(new MySentryEventProcessor());
    SentrySdk.CaptureMessage("Action");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions