✓
Passing This code compiles and runs correctly.
Code
// Test namespace wildcards - observe all events in a namespace
const std = @import("std");
~import std/taps
~tor http.request {}
~tor http.response {}
~tor db.query {}
~tor logger { source: string }
~proc http.request|zig {
std.debug.print("HTTP request\n", .{});
}
~proc http.response|zig {
std.debug.print("HTTP response\n", .{});
}
~proc db.query|zig {
std.debug.print("DB query\n", .{});
}
~proc logger|zig {
std.debug.print("HTTP event: {s}\n", .{source});
}
// Tap only http.* events (not db.query)
~tap(http.* -> *)
| Profile p |> logger(p.source)
~http.request() |> http.response() |> db.query()
Actual
HTTP request
HTTP event: input:http.request
HTTP response
HTTP event: input:http.response
DB query
Expected output
HTTP request
HTTP event: input:http.request
HTTP response
HTTP event: input:http.response
DB query
Flows
flow ~tap click a branch to expand · @labels scroll to their anchor
tap (http.* -> *)
flow ~http.request click a branch to expand · @labels scroll to their anchor
http.request
Test Configuration
MUST_RUN