Repository navigation
Conversation
d7b710d to
0bf67f9
Compare
|
Hello! After a few iterations, I’ve finalized an initial design for the tracing logic. The core objective is to establish deterministic parent-child relationships across spans by following a consistent ID convention:
To support this, I introduced a custom generator that manages ID creation based on the Any feedback? 😄 Another point that I wanted to tackle is about having recursive backwards against nested Kustomizations to find the root and therefore, be able to properly find and set Trace revision. Any thoughts on this? @stefanprodan |
|
This is starting to get very interesting! |
On top of what was shared above, added some minor adjustments (including Kustomization recursivity) and code improvements to support more advanced use case cases: Source (GitRepository) > Kustomization > Source (GitRepository) > Kustomization > Source (HelmRepository & OCIRepository) > HelmReleases
|
| "go.opentelemetry.io/otel/sdk/resource" | ||
| sdktrace "go.opentelemetry.io/otel/sdk/trace" | ||
| semconv "go.opentelemetry.io/otel/semconv/v1.34.0" | ||
| semconv "go.opentelemetry.io/otel/semconv/v1.40.0" |
There was a problem hiding this comment.
lol never seen something like this.....
There was a problem hiding this comment.
Yup, a bit odd to have the semconv versioning as part of the path 😆
a2f45fd to
2398593
Compare
|
Hi @stefanprodan — could you pls have a review on this one? Would be really valuable to get your review here. 🙏 To support the review, I ran the RFC-0011 tracing end-to-end against a local cluster (kind-based). Summary of what was verified:
Happy to share fuller logs if useful |
2398593 to
7fadb00
Compare
Link each event's span to the span of the object it is managed by or built from, so OTEL traces mirror the Flux object hierarchy. Walk the Kustomization labels with cycle detection and a depth cap, fall back to the event's RelatedObject and the object's spec, and read objects through a live reader that honours --no-cross-namespace-refs. Signed-off-by: Adrian Fernandez de la Torre <adri1197@gmail.com> Assisted-by: Kiro/auto
|
Rebase done on latest |







Implements the parent-child span hierarchy from RFC-0011 in the OTEL notifier, so traces mirror the Flux object hierarchy.
Behavior
Each event is still exported as one span. The span is parented as follows:
kustomize.toolkit.fluxcd.io/{name,namespace}labels. The walk has cycle detection and is capped at 10 levels.event.RelatedObject: used when the event carries one.chartRefor generated HelmChart.<AlertUID>:<root revision>.<object UID>:<revision>, so children can reference their parent deterministically.flux bootstraptopology) is the root of its own revision's trace.HelmRepositoryevents are skipped and are not used as trace roots.Closes fluxcd/flux2#5510