Skip to content

Make flush.timeout configurable #199

@jpotisch

Description

@jpotisch

I'm adding zipkin support to an asp.net application that performs very long-running web service calls, e.g. 30 seconds to 10 minutes, to third-party services. As a result my traces will run for over a minute a pretty sizable percentage of the time and Zipkin4net thus ends up logging a flush.timeout tag. This is annoying, but this also seems to cause unknownservice and unknownrpc to override the service and rpc names I send and which show up correctly when flush.timeout is not hit.

It would be great if, for example, TraceManager exposed a FlushTimeout property, or it could be provided as an additional optional argument to the ZipkinTracer constructor instead of it being hardcoded to TimeSpan.FromMinutes(1) deep inside MutableSpanMap.

I'm aware that this timeout exists to defend against memory leaks but in my case, and I imagine many others, one minute is nowhere near enough time and I believe I've defended well enough against memory leaks elsewhere.

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