Commit c42402d
Add KnownTags globalSerial reserve partition for virtual/special tags
Establishes the boundary FIRST_STORED_SERIAL=256: globalSerials [1,256) are
reserved for "virtual" tags that are specially handled (redirected to span
fields or processed by the tag interceptor) and NOT stored in the TagMap —
hand-assigned in tracer core; [256,..) are generated convention tags that ARE
stored (slotted/bucketed); 0 stays unknown/string-only. Adds isReserved()/
isStored() so setTag(long) can classify a tag by an O(1) range check (its
"needsIntercept by id") before routing to the interceptor vs the slot/bucket
store. Both core and the code generator agree on this boundary.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9f8b226 commit c42402d
1 file changed
Lines changed: 21 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
42 | 63 | | |
43 | 64 | | |
44 | 65 | | |
| |||
0 commit comments