Skip to content

new feature: Make MetricsLayer WASM compatible #6619

@bonsairobo

Description

@bonsairobo

Feature Description

MetricsLayer should not panic when used in WASM.

Problem and Solution

Currently the MetricsLayer panics trying to access the SystemTime, which is not available in a browser.

The solution is to use a different API to get the current time when in the browser. See web-time.

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreleases-note/featThe PR implements a new feature or has a title that begins with "feat"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions