MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / dropQuery

Function dropQuery

packages/core/sdk/src/telemetry-url-redaction.ts:183–186  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

181 // The raw query attribute never survives; its parameter names are already
182 // reported via the stripped-keys list.
183 const dropQuery = (value: string): string => {
184 for (const key of queryParameterNames(value)) stripped.add(key);
185 return "";
186 };
187 const query = attributes[QUERY_ATTRIBUTE];
188 if (Array.isArray(query)) {
189 redactStringElements(query, dropQuery);

Callers 1

redactSpanUrlAttributesFunction · 0.85

Calls 1

queryParameterNamesFunction · 0.85

Tested by

no test coverage detected