Skip to content

Allow flushing of logs (force send to server) #758

@btrautmann

Description

@btrautmann

Feature description

We have a feature in our app that shows the user an error code whenever an error is experienced. The idea is that a user can hand this over to customer support to aid in triaging. We log the error code to Datadog to allow us to find the exact point in time the user experienced the issue. Unfortunately, that log is not always sent despite us configuring the SDK to send with max frequency and with minimal batch size.

We'd love to have a public method we could invoke in this scenario that would force-flush the logs and have them sent. Is this possible and I've just missed it?

Proposed solution

As a user I'd love to see a _sdk.flush() function that would attempt to send the existing client-side logs to the server.

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions