Skip to content

Restore Emitter callbacks for success and failure #339

@mscwilson

Description

Older versions of the Java tracker had RequestCallback. Users could provide methods to call when events were successfully sent, or failed to send, via the RequestCallback interface. The onFailure() method could be given a list of Event objects, allowing the user to retrack them as if they were brand new. This was the only way to retry the requests.

Since v0.12.0, the Java tracker automatically retries events indefinitely. As part of the restructuring, RequestCallback was removed.

Callbacks can still be useful, however, so let's reinstate with a better implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:breaking_changeA breaking change will be introduced if this issue is completed.category:data_lossData loss might be happening.status:completedCompleted - but might not be released yet.type:enhancementNew features or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions