Trace Identifier Normaliser
observability.normalize_trace_id
Overview
You send a log body and we return every trace id we recognise, each as lower-case 32-hex with the formats that matched it, where it first appears and how often. The formats are a closed list and there is no pattern field, because a caller-supplied expression over two megabytes is a denial of service with no safe version. The bare 32-hex and 16-hex formats are off unless you ask for them, since a bare hex run is equally likely to be a digest or a session token and returning tokens as trace ids is worse than returning nothing.
The same request carries a different-looking id in every hop: 32-hex in one service, 16-hex in the next, hyphenated in a third. Comparing them by eye is where correlation stops, and a hand-rolled pattern for the job is either wrong on the edges or a backtracking hazard on a large body.
Reliability
Fully deterministic: no clock, no network, no pattern compilation, and the scan is linear in the body for each enabled format. Ids are echoed and are not treated as secrets; malformed candidates report a position and a reason but never the offending text. Failures, none worth retrying unchanged: OBS_TRACE_TEXT_INVALID means text was empty. An absent or non-string text is a schema violation and is refused as an invalid request instead. OBS_TRACE_TEXT_TOO_LARGE means the body went past 2097152 bytes of UTF-8. OBS_TRACE_FORMAT_UNSUPPORTED means a name in formats is not one of the seven. OBS_TRACE_FORMATS_EMPTY means formats arrived as an empty array; omit it instead to get the default set. OBS_TRACE_ID_LIMIT_EXCEEDED means the body holds more than 10000 distinct ids, so split it. OBS_TRACE_OPTION_UNSUPPORTED means a property or a limit is not one we accept. OBS_TRACE_WORK_REFUSED means bytes times enabled formats went past 8388608, and the answer carries the projection, the budget and the byte ceiling for the formats you chose, so enabling fewer formats or sending less is a calculable fix. OBS_TRACE_OUTPUT_TOO_LARGE means the answer would not fit the inline response ceiling, so lower maxIds.
Context footprint
Echoes one row per distinct id plus one per malformed candidate; set includeInvalid false and lower maxIds for a compact answer. A successful call costs 2 execution credits.
When to use it
When you hold a log excerpt and want every trace id in it in one comparable form, with the positions to go back to.
When the identifier you want is not one of the seven formats, or when you need the trace itself rather than its id.
Scope
Non-goals
- Does not accept a caller-supplied pattern, ever
- Does not guess: bare hex runs are off unless you enable them
- Does not fetch a trace, call a backend or read a clock
- Does not redact the body or judge whether an id is sensitive
- Does not correlate ids across two separate calls
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.
Squillify guarantees
- Runs inside Squillify
- This skill runs inside Squillify.
- Payloads are not sent to an external service by this skill.
- Squillify does not permanently store submitted payloads.
- Telemetry records metadata only, not submitted content.
- Submitted payloads are not used for training.
- Submitted payloads are not reviewed by humans.
- This skill does not target sensitive data.
- The response may contain submitted or transformed content.
Your responsibility
Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | Required body of 1 to 2097152 UTF-8 bytes to search. |
| formats | array | No | From 1 through 7 unique formats; omit it for the four labelled formats excluding bare hex. |
| limits | object | No | Closed caps for distinct ids and malformed candidates; omit it for maxIds 10000 and maxInvalid 500. |
| includeInvalid | boolean | No | Whether malformed candidates are listed; omit it for true. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| ids | array | Yes | One closed id row per distinct canonical id, ordered by first position then id. |
| invalid | array | Yes | Recognised-but-rejected candidates, each a closed {reason, format, line, column, offset, length} object. |
| summary | object | Yes | Closed scan summary with idCount, occurrenceCount, invalidCount, truncation flags, enabledFormats, scannedBytes and maxBytesForEnabledFormats. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"observability.normalize_trace_id","input":{"text":"traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("observability.normalize_trace_id", {"formats":["W3C_TRACEPARENT","HEX_32"],"text":"traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01\n"});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
| OBS_TRACE_TEXT_INVALID | 400 | No | The request payload failed this skill's input validation. |
| OBS_TRACE_TEXT_TOO_LARGE | 429 | No | A size, quota, rate, or time limit was exceeded. |
| OBS_TRACE_FORMAT_UNSUPPORTED | 400 | No | The skill does not support the requested variant. |
| OBS_TRACE_FORMATS_EMPTY | 400 | No | The request payload failed this skill's input validation. |
| OBS_TRACE_ID_LIMIT_EXCEEDED | 429 | No | A size, quota, rate, or time limit was exceeded. |
| OBS_TRACE_OPTION_UNSUPPORTED | 400 | No | The skill does not support the requested variant. |
| OBS_TRACE_WORK_REFUSED | 429 | No | A size, quota, rate, or time limit was exceeded. |
| OBS_TRACE_OUTPUT_TOO_LARGE | 429 | No | A size, quota, rate, or time limit was exceeded. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Does not accept a caller-supplied pattern, ever
- Does not guess: bare hex runs are off unless you enable them
- Does not fetch a trace, call a backend or read a clock
- Does not redact the body or judge whether an id is sensitive
- Does not correlate ids across two separate calls
- Searching for an arbitrary identifier shape that is not one of the seven
- Extracting structured fields from logs, which the parse skills answer
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "observability.normalize_trace_id",
"input": {
"formats": [
"W3C_TRACEPARENT",
"HEX_32"
],
"text": "traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01\n"
}
}Examples
A traceparent recognised, counted once despite the bare form matching too
{
"formats": [
"W3C_TRACEPARENT",
"HEX_32"
],
"text": "traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01\n"
}{
"summary": {
"idCount": 1,
"occurrenceCount": 1,
"invalidCount": 0,
"truncated": false,
"invalidTruncated": false,
"enabledFormats": [
"W3C_TRACEPARENT",
"HEX_32"
],
"scannedBytes": 69,
"maxBytesForEnabledFormats": 4194304
},
"invalid": [],
"ids": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"formats": [
"W3C_TRACEPARENT",
"HEX_32"
],
"padded": false,
"occurrences": 1,
"firstLine": 1,
"firstColumn": 14,
"firstOffset": 13,
"length": 55,
"spanId": null,
"parentId": "00f067aa0ba902b7",
"sampled": "01",
"formatVersion": "00",
"xrayEpochHex": null
}
]
}A 16-hex B3 id left-padded to the canonical width
{
"formats": [
"B3_SINGLE"
],
"text": "b3=463ac35c9f6413ad-a2fb4a1d1a96d312-1\n"
}{
"summary": {
"idCount": 1,
"occurrenceCount": 1,
"invalidCount": 0,
"truncated": false,
"invalidTruncated": false,
"enabledFormats": [
"B3_SINGLE"
],
"scannedBytes": 39,
"maxBytesForEnabledFormats": 8388608
},
"invalid": [],
"ids": [
{
"traceId": "0000000000000000463ac35c9f6413ad",
"formats": [
"B3_SINGLE"
],
"padded": true,
"occurrences": 1,
"firstLine": 1,
"firstColumn": 4,
"firstOffset": 3,
"length": 35,
"spanId": "a2fb4a1d1a96d312",
"parentId": null,
"sampled": "1",
"formatVersion": null,
"xrayEpochHex": null
}
]
}Recommended use cases
- Pull the trace ids out of a support-supplied log excerpt to look them up
- Reconcile ids written by services using W3C, B3 and X-Ray propagation
Avoid for
- Searching for an arbitrary identifier shape that is not one of the seven
- Extracting structured fields from logs, which the parse skills answer
Related skills
Composable with
Safety & privacy
- Runs without calling any external service.
- Your payloads are never stored permanently.
- Telemetry captures metadata only — never your payload contents.
- We never train models on your payloads.
- No human reviews your payloads.