Tap
The Tap tab shows the messages of a subject as they arrive, decoded with the same chain as sub: protobuf by the schemas, then JSON, text, a schemaless protobuf dump, or base64. It uses core NATS and creates no JetStream consumer, so it is safe on production streams.
Open the Tap tab in the demo. The demo has no live cluster, so it plays made-up sample messages on a few orders, payments and courier subjects.
Using the tab
Section titled “Using the tab”- Type a subject. Wildcards work:
orders.>orpayments.*.created. - Optionally type a protobuf type (
shop:shop.v1.OrderCreated) to force it for every message. - Click Start. Messages appear at the top, with subject, size, format and the decoded body.
- Use Pause to stop adding messages, Clear to empty the list, and the filter box to search what is shown.
The status line counts messages received, shown, skipped (over the rate limit) and dropped.
Turn it on
Section titled “Turn it on”The tap shows message content, so it is off by default, and every tap is logged:
[tap]enabled = trueallow = ["orders.>", "payments.*.created"] # a tap must stay inside one of thesemax_rate = 20 # messages per second per browser; the rest are counted as skippedmax_duration_seconds = 600 # a tap closes after this longmax_taps = 10 # concurrent taps per dashboard processrole = "admin" # with auth on: "admin" (default) or "readonly"The connection’s account decides what a tap can see. A cluster entry that uses the system account sees only $SYS subjects. So add a [[nats]] entry with an application user for the subjects you want to tap. In the Helm chart, the same settings are under tap.*.
If a tap is refused (outside allow, too many taps, wrong role), the panel shows the reason.