Skip to content

Add public reusable Flush API #229

Description

@marandaneto

Summary

Add a public reusable Flush() API to the Go SDK.

Spec

  • sdk-specs/openspec/specs/flush/spec.md

Current evidence

The SDK audit found Client exposes Close() / CloseWithContext(), but no reusable immediate flush API. Close() drains during shutdown, but it also closes/disables the client.

Expected behavior

  • Expose a public Flush() method that immediately sends queued events without closing the client.
  • Ensure the client remains usable after a successful flush.
  • Respect errors/timeouts according to existing Go SDK conventions.
  • Add tests that queued events are delivered and later events can still be enqueued.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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