LOGBOOK

HELP

1 / 241
time's up — finish this card
Other keys: show • Space: good • 1-4: rate • 0: skip • 5: flag
Topic Observability in Practice: The OpenTelemetry Astronomy Shop

Question

In distributed tracing, how does the trace ID get from one service to the next, so that all the spans of one request end up in the same trace?

Answer

Through context propagation: the calling service puts the trace ID (and its own span ID) into the outgoing request's headers, and the receiving service reads it and makes its new span a child of that one.

Trace 8abf24: each call carries the trace ID and the caller's span ID in the traceparent header, forming a tree of spans

* The header travels with the request; each callee opens a child span of the caller's. *

Each user request receives a unique trace ID at the first instrumented hop. Every unit of work along the way, such as a call from checkout to payment, becomes a span, a timed record with a start, a duration, a status and attributes. For those spans to form one tree, the IDs must travel with the request across process and network boundaries.

On HTTP this is standardised as the W3C Trace Context traceparent header:

traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
             version-trace-id-parent-span-id-flags

The OpenTelemetry SDKs inject and extract this header automatically for common HTTP and gRPC libraries. The practical consequence: a service that is not instrumented, or a proxy that strips headers, breaks the chain, and the trace splits into disconnected pieces. When a trace in Jaeger mysteriously stops at one service, a lost header is the first suspect.

The resulting tree shows at a glance which services took part, how long each one needed, where errors occurred and where time was spent waiting.

Go deeper:

or press any other key
Topic Network Programmability: CLI, REST APIs, YANG, NETCONF and RESTCONF

Question

What is RESTCONF, and how does it relate to NETCONF?

Answer

RESTCONF is a RESTful HTTP interface to YANG-modelled data. It uses the same YANG models and datastore concepts as NETCONF, but over HTTPS with ordinary HTTP methods, which makes it simpler and web-friendly.

RESTCONF (RFC 8040) keeps what makes NETCONF good, the YANG models and the abstraction from the device, and swaps the transport and message style for something every web developer already knows:

NETCONF RESTCONF
Transport SSH (TLS) HTTPS
Message style XML RPCs (<get-config>, <edit-config>) HTTP methods on URLs
Data format XML JSON or XML
Data models YANG The same YANG
Strength Transactions, candidate datastore, validation Simplicity, any HTTP tool or library works

On Cisco IOS XE, both interfaces expose the same YANG models, so the data you get is the same. Only the way you ask for it differs.

Go deeper:

or press any other key