Skip to content

Flush log buffer in base Client.close() #19347

@sergical

Description

@sergical

Problem

When client.close() is called, the log buffer is not flushed. The close() method in platform SDKs (node-core, deno) only removes the exit event listener but doesn't call _INTERNAL_flushLogsBuffer(this). This means pending logs can be lost if someone explicitly closes the client.

Proposed Solution

Add _INTERNAL_flushLogsBuffer(this) to the base Client.close() in packages/core/src/client.ts so all SDKs benefit automatically, rather than fixing it in each platform SDK individually.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions