Skip to content

tracing-fallback: feature: Provide way to select when to fall back #10353

@matthiasbeyer

Description

@matthiasbeyer

Motivation

Would be nice if the fallback functionality from tower-fallback had an option to select when exactly the fallback should be used.

For example, if my services return Result<Option<Foo>, Error>, I might want to fall back on Ok(None) as well, not only on Err(_).

Specifications

No response

Complex Code or Requirements

No response

Testing

No response

Related Work

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: This is an improvementS-needs-triageStatus: A bug report needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions