Skip to content

[am list] [Rust] Detect autometricization when the attribute is hidden by cfg_attr #144

@gagbo

Description

@gagbo

I didn't test this, so I am pretty sure that currently am list will not detect the autometrics macro if it uses any kind of conditional compilation flag:

#[cfg_attr(feature = "extra-metrics", autometrics::autometrics(objective = super::API_SLO))]
fn api_route_handler(args: Args) -> ApiResult<()> {
    Ok(())
}

We should add a test for this case on Rust queries, and make sure that it's properly detected as well when listing "instrumented functions"

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