Skip to content

Simplify FunctionProfilingLayer #5327

@MegaRedHand

Description

@MegaRedHand

Our current FunctionProfilingLayer implementation got quite complex, and has some problems: mainly that it requires a String allocation for the namespace (added in #5311), and that implementing functionality via on_enter/on_exit causes it to measure processing time instead of latency.

We should check if it's not easier to use a function wrapper (like record_async_duration), or if these issues can be fixed, and in either case, unify profiling metrics of RPC and block processing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions