Skip to content

Function visibility removed on async-trait like functions with tracing::instrument #976

Closed
@Txuritan

Description

@Txuritan

Bug Report

Version

tracing v0.1.19
tracing-appender v0.1.1
tracing-attributes v0.1.11
tracing-core v0.1.15
tracing-flame v0.1.0
tracing-futures v0.2.4
tracing-log v0.1.1
tracing-subscriber v0.2.11

Platform

Windows (64-bit)

Crates

tracing-attributes

Description

Due to the implementation of async-trait support in tracing-attributes, if it detects what it thinks is async-trait or something based off of it, it will removed the visibility of any attributed function.

Adding the visibility back to the rewritten function would fix this as input.vis will only be Some on non trait impls and None for traits.

I made a fork for myself to temporarily fix tis: Txuritan@943510c;

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate/attributesRelated to the `tracing-attributes` cratekind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions