You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d15492
Browse filesBrowse the repository at this point in the historyBrowse files
Debug TAL rules through the DSL Debug API, page the debug API's record read, and debug the OTLP alias pairing
TAL rules are now debuggable as MAL, LAL and OAL rules are (`catalog=tal`). A record follows the object the analyzer
passes through the rule: one OTLP span, or one native segment listing every span with the rule's run on each
(statements, each `if` with the value of every operand it evaluated and its result, sources, metrics and aliases
written, the network-alias half asked for and whether it was sent, end state). `GET /runtime/tal/files` lists the
loaded TAL rules and `GET /runtime/tal/files/{name}` returns a file's content. The probes are compiled in when
injection is on, and read one plain flag per generated method when no session records the rule.
The debug read is paged for every DSL. Each record carries `captureTime` (`<millis>.<six-digit nanos>`), and
`GET /dsl-debugging/session/{id}` takes `capturedSince` and `pageSize` and returns `nextCapturedSince`, so a client
reads only what was captured since, from whichever node serves it. Each node's slice carries the process's
`instanceId`, a node at its `recordCap` no longer holds back the others, and `complete` says the capture is read
through. The other nodes stream their records one a message over the new `CollectDebugRecords` call, which replaces
`CollectDebugSamples` (a breaking change between nodes of different versions), and the admin channels between nodes
take `admin-server.gRPCMaxMessageSize` instead of gRPC's 4 MiB.
A new admin module, `trace-pairing-debugging`, captures on demand what the OAP node that owns a trace does with the
network-alias halves it receives: one capture per node, no sessions, each run a round under its own id, running
while it is read and released when it stops or idles out. It lists the peers matched to a server, and the peers and
servers whose halves left unmatched, with their latest trace ids, each entry naming the OAP nodes that hold it.
The runtime-rule `bundled` and `dump` routes refuse `tal` and `oal`, which no runtime-rule engine claims.
Copy file name to clipboardExpand all lines: docs/en/changes/changes.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,10 @@
104
104
* The Zipkin receiver counts the spans it does not store in `spans_dropped_count` with a `reason` label beside `protocol`, shared with the OTLP receiver: `sampled` (`sampleRate`), `rate_limited` (`maxSpansPerSecond`) and `process_failed`. It counted only `zipkin-http`, with no reason, and now also counts `zipkin-kafka`; a Prometheus query on the raw metric that does not sum over `reason` sees one series per reason. The new MAL rule `meter_oap_instance_spans_dropped_by_reason` breaks `meter_oap_instance_spans_dropped_count` down by reason. One Zipkin span that fails to be processed is now dropped, logged and counted as `process_failed` alone, where it stopped the rest of its HTTP request or Kafka message from being processed: the HTTP request then failed and counted in `trace_analysis_error_count`, so a client retrying it stored the spans before it twice, and the Kafka message was lost without a log. `SpanForwardService.send` takes the protocol's `TraceSpansDropped` and returns nothing. A Zipkin Kafka message that fails to be decoded or processed is now logged and counted in `trace_analysis_error_count{protocol="zipkin-kafka"}`; it ran on an executor whose result nothing read, so it was lost without a log or a count.
105
105
* The SkyWalking agent Kafka fetcher logs and counts in `trace_analysis_error_count{protocol="kafka"}` a segment whose analysis fails, where it counted only a message that does not decode and lost the others without a log. Every trace receiver registers `trace_analysis_error_count` with one help text, which says what it counts: received trace data that could not be decoded or processed as a whole, an agent segment, a Zipkin HTTP request or Kafka message, or an OTLP export request; a span dropped on its own is counted in `spans_dropped_count` instead.
106
106
* The Kafka trace exporter's `kafka_exporter_trace_success_count` and `kafka_exporter_trace_error_count` count spans, where they counted segments, so the exported spans compare with `trace_in_latency_count`, which counts spans.
107
+
* Debug TAL rules through the DSL Debug API (`catalog=tal`), as MAL, LAL and OAL rules are. A record follows the object the analyzer passes through the rule: one OTLP span, or one native segment with all its spans; each span carries the rule's run on it, the statements it executed (and each `if` with the value of every operand it evaluated and its result), the sources, metrics and aliases it wrote, and its end state. An OTLP run records the network-alias half it asked for and whether it was sent. `GET /runtime/tal/files` lists the TAL rules a node loaded and `GET /runtime/tal/files/{name}` returns a file's content, and `/dsl-debugging/status` lists the catalogs a session can be installed on. The runtime-rule `GET /runtime/rule/bundled` and `GET /runtime/rule/dump/{catalog}` routes now refuse a catalog no runtime-rule engine claims, `tal` and `oal`, with `400 invalid_catalog`, as its other routes do; `oal` returned an empty result before. The probes are compiled into a rule when `SW_DSL_DEBUGGING_INJECTION_ENABLED` is on, the default.
108
+
* Page the DSL Debug API's record read: every record carries `captureTime`, when its node captured it, as `<millis>.<six-digit nanos>`; `GET /dsl-debugging/session/{id}` takes `capturedSince` and `pageSize` and returns `nextCapturedSince`, the point the next read passes back to get only the records captured since, from whichever OAP node serves it. The other nodes stream their records one a message over the new `CollectDebugRecords` call, and the admin channels between nodes take `admin-server.gRPCMaxMessageSize`, as the admin gRPC server does, instead of gRPC's 4 MiB, so a node whose capture outgrew 4 MiB no longer shows as unreachable. A read without the parameters starts from the first record. Each node's slice carries `instanceId`, which tells the OAP processes apart where node ids do not, and `complete` says the capture is read through; a node that reached its `recordCap` no longer holds back the records of nodes whose clocks run ahead of it.
109
+
***Breaking Change** — DSL Debug API across OAP nodes: `CollectDebugRecords` replaces `CollectDebugSamples` on the admin gRPC bus (`admin-server.gRPCPort`), which returned a node's whole capture in one reply. During a rolling upgrade, a node reads no records from a node of the other version and shows it as `unreachable` in a debug session's `nodes[]`; a session reads the whole cluster again once every node runs the same version.
110
+
* Debug the network-alias pairing of OTLP calls through a new admin module, `trace-pairing-debugging` (`SW_TRACE_PAIRING_DEBUGGING`, on by default, requires `trace-analyzer`). `POST /trace-pairing-debugging/start` turns on one capture per OAP node, shared by every reader, as each node owns a share of the traces; it runs while it is read, and stops a minute after the latest read or on `POST /trace-pairing-debugging/stop`, releasing what it found; each capture from a start to its stop is a round with its own `roundId`, which every node in it shares, and each listed entry names the OAP nodes that hold it. `GET /trace-pairing-debugging/pairings` lists, over the nodes, the peers matched to a server, with the server before it when a later match moved it, the callers, the count of calls and each match's outcome (`registered`, `gateway`, `uncomposed`, `tooLong`, `noService`); and the peers and the servers whose halves left without their pair (`expired`, `evicted`, `replaced`), each with its latest five trace ids.
Copy file name to clipboardExpand all lines: docs/en/security/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,8 +84,9 @@ the operator team. The feature modules mounted on it serve these routes:
84
84
|`/inspect/*`|`inspect`| Browse the metric catalog, the entities holding values, and the metric values. |
85
85
|`/ui-management/*`|`ui-management`| Read, add, update, and disable UI dashboard templates. |
86
86
|`/runtime/rule`, `/runtime/rule/*`, `/runtime/mal/*`, `/runtime/lal/*`|`receiver-runtime-rule`| List, dump, add, override, inactivate, and delete MAL/LAL rule files, which are compiled and loaded into the OAP JVM on the fly. |
87
-
|`/dsl-debugging/*`|`dsl-debugging`| Start, read, and stop sampling sessions that capture live MAL/LAL/OAL rule executions, including the payloads each sampled rule processed. |
88
-
|`/runtime/oal/*`|`dsl-debugging`| List the loaded OAL files and read their rules. |
87
+
|`/dsl-debugging/*`|`dsl-debugging`| Start, read, and stop sampling sessions that capture live MAL/LAL/OAL/TAL rule executions, including the payloads each sampled rule processed. |
88
+
|`/runtime/oal/*`, `/runtime/tal/*`|`dsl-debugging`| List the loaded OAL and TAL files and read their rules. |
89
+
|`/trace-pairing-debugging/*`|`trace-pairing-debugging`| Start, read, and stop the capture of how OTLP calls are paired into network aliases, including the services and peers of the calls and the trace ids of those left unmatched. |
89
90
90
91
Of these routes, only `/status/config/ttl` is also served next to the GraphQL API on the query
91
92
port (see [Query and Receiver Ports](#query-and-receiver-ports)), and it returns the TTL settings only. The admin port also
@@ -106,7 +107,7 @@ variable to `-` if it is not needed.
106
107
107
108
`admin-server` also opens an **admin-internal gRPC bus** (default `17129`) for peer-to-peer
0 commit comments