census-instrumentation / opencensus-csharp

Distributed tracing and stats collecting framework
https://opencensus.io
Apache License 2.0
139 stars 32 forks source link

Automatic spans collection for Redis #93

Closed SergeyKanzhelev closed 5 years ago

SergeyKanzhelev commented 5 years ago

StackExchange Redis library allows to profile calls to Redis using Profiling interface https://stackexchange.github.io/StackExchange.Redis/Profiling_v2.html This interface provides pull model for tracking Redis calls.

Current design:

  1. Associate profiling sessions with the current Span. Keep the list of currently active sessions.
  2. Every second drain the session for all spans.
  3. If span reports HasEnded - remove the span from the list of active spans.

The question is how to report the span from the past. Created https://github.com/census-instrumentation/opencensus-csharp/issues/92

image