sieve icon indicating copy to clipboard operation
sieve copied to clipboard

Explore using API server tracing for additional context

Open embano1 opened this issue 4 years ago • 2 comments

Now that https://github.com/kubernetes/kubernetes/pull/94942 has landed, we might want to think about ways to use such tracing functionality to assist users in replicating/debugging time-travel issues, e.g. by injecting custom trace data, visualizing flows, etc.

Just thinking out loud here, haven‘t spend much time thinking deeper about the applicability of tracing in the various areas of sieve (beyond detection algo).

embano1 avatar Jun 29 '21 06:06 embano1

@embano1 thanks for sharing this. This might significantly simplify some of the mechanical work we've had to do thus far in finding causally related sequences of events.

Is this tracing context propagated to clients/controllers (and are they expected to further propagate it out)?

lalithsuresh avatar Jun 29 '21 15:06 lalithsuresh

Sorry for my delayed response.

As per the implementation KEP (https://github.com/kubernetes/enhancements/pull/1458/files), my understanding is that for this KEP K8s controller instrumentation is out of scope, BUT incoming requests (to API server), as well as outgoing with trace information will be forwarded.

IMHO that means that if you instrument your controller accordingly (Otel) these traces should be propagated.

embano1 avatar Aug 30 '21 07:08 embano1