Skip to content

[Log SDK] Cost associated with populating LogRecord::observed_timestamp #2046

@lalitb

Description

@lalitb

In Log SDK, the LogRecord::observed_timestamp is populated as:

record.observed_timestamp = Some(SystemTime::now());

However, after all the optimizations, the cost associated with this call is visible considerably ~20%:

image

A quick test by commenting it out increases stress test throughout to ~48k. Not sure about the solution for now, raising this issue to track it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions