Repository navigation
Commit 3aab303
authored
chore(bots): regenerate registry for xAI-SearchBot and LinkupBot (#39)
* feat(sdk): OpenTelemetry spans, without depending on OpenTelemetry
A span around protect() and a child around rule evaluation, carrying the
decision id (which joins a span to its dashboard row), the conclusion, the
deciding rule, and whether the request cost a round trip to ingest.
The tracer is INJECTED, not imported. An optional peer dependency was the
obvious route and the wrong one: this package is dependency-free and
passes an edge-compatibility gate, and Workers and Vercel Edge are exactly
where a stray transitive import hurts. A conditional
import('@opentelemetry/api') bundles badly too -- the bundler either
resolves it, adding weight for the majority who do not use it, or fails on
a module that is legitimately absent.
The Tracer type is a structural subset of OpenTelemetry's, so
trace.getTracer('webdecoy') satisfies it with no adapter. Omit it and
there are no spans, no dependency and no behaviour change, which is the
majority case and should cost them nothing.
A tracer cannot break a request. startSpan returning nothing, throwing, or
returning a span whose every method throws all degrade to a no-op --
observability that can take the request path down is worse than none. The
no-op span also means call sites need no null checks, and an `if (span)`
is a branch that gets forgotten on the path that mattered.
Eight tests, four of them hostile tracers. Also asserts the span is ended
on the ERROR path: a leaked span holds memory and never reaches the
exporter, so the trace is silently incomplete rather than absent.
Closes WebDecoy/app#740
* chore(bots): regenerate registry for xAI-SearchBot and LinkupBot
Companion to WebDecoy/app. Both crawlers were hitting production and landing
unclassified, so requests from them were excluded from AI traffic figures
rather than attributed.
Generated, not hand-edited: pkg is the source of truth and the export runs in
agents.MatchUserAgent order, which the TS matcher depends on because it takes
the first hit.
The registry count guard moves 169 -> 171. It exists to make a registry change
deliberate rather than incidental, so bumping it here is the intended workflow
rather than a nuisance.
397 tests pass, parity vectors included.
* chore(bots): regenerate registry for the five newly identified crawlers
Companion to WebDecoy/app. DuckAssistBot, SofyaBot, Reflectionbot and IbouBot
join xAI-SearchBot and LinkupBot; all six were crawling production and landing
unclassified.
IbouBot is registered as a SEARCH crawler, not AI: its own page states it is a
Cloudflare Verified Bot classified as Search. It arrived in the same
unclassified tail as the others and does not belong with them.
Count guard 171 -> 175. 397 tests pass.1 parent 1975cb5 commit 3aab303
3 files changed
Lines changed: 80 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
578 | 590 | | |
579 | 591 | | |
580 | 592 | | |
| |||
935 | 947 | | |
936 | 948 | | |
937 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
938 | 962 | | |
939 | 963 | | |
940 | 964 | | |
| |||
1055 | 1079 | | |
1056 | 1080 | | |
1057 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1058 | 1094 | | |
1059 | 1095 | | |
1060 | 1096 | | |
| |||
1559 | 1595 | | |
1560 | 1596 | | |
1561 | 1597 | | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1562 | 1610 | | |
1563 | 1611 | | |
1564 | 1612 | | |
| |||
1787 | 1835 | | |
1788 | 1836 | | |
1789 | 1837 | | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
1790 | 1850 | | |
1791 | 1851 | | |
1792 | 1852 | | |
| |||
2147 | 2207 | | |
2148 | 2208 | | |
2149 | 2209 | | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
2150 | 2222 | | |
2151 | 2223 | | |
2152 | 2224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| |||
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| 127 | + | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| |||
0 commit comments