Skip to content

RFC: Add telemetry:execute/2 that will take a function as 2nd argument #150

@hauleth

Description

@hauleth

Sometimes gathering some telemetry data may be slightly more computationally expensive, and it would be handy to compute these values only if there is anyone recording these metrics. So the proposed functionality would be new function telemetry:execute/2 that will take function fun () -> {Measurements :: map(), Meta :: map()} as a second argument that will run that function only if telemetry_handler_table:list_for_event/1 will return non empty list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions