Skip to content

Different modes for the HystrixConcurrencyStrategy #1431

@worldtiki

Description

@worldtiki

Context: I'm using Hystrix to wrap a number of http clients. Each of these clients is instrumented and generates tracing information.

Problem: For each network call there are 2 spans, one generated by the SleuthHystrixConcurrencyStrategy and another by the instrumented http client.
This leads to a duplication of spans and unnecessary nesting when visualising the traces.

Proposal: Include an option to configure SleuthHystrixConcurrencyStrategy so that users can decide if they want to create spans for each Hystrix command execution or just have the SleuthHystrixConcurrencyStrategy to propagate the trace context between threads.

I'm happy to open a pr if there is interest in this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions