What the Usage Discovery step sends

Last updated 19 November 2026

The exact fields the graphwake usage step sends, what stays in your network, how long Graphwake keeps it and how to delete it.

In one paragraph

Usage Discovery is optional. A step you run in your own pipeline reads your gateway logs or traces there, builds a summary of who calls which endpoint, and sends only that summary to Graphwake. Graphwake never receives a request or a response. Without Usage Discovery, Graphwake still needs only your spec.

What is sent

FieldWhat it is
The summary
presetThe log or trace format the step read, for example apim
agentVersionThe version of the Graphwake agent that built the summary
windowStartwindowEndThe first and the last day the summary covers. Days, not times
countsIncludedWhether the rows carry a count. False when you run the step with --no-counts
unmatchedRequestsRequests that matched none of your endpoints (of those with a caller name that was not withheld). A number only
withheldRequestsRequests whose caller name matched one of the agent's withholding rules (such as common shapes of e-mail addresses, IP addresses, secrets, paths, URLs and structured content, and a few technical markers such as control characters and ##). A number only
anonymousRequestsRequests without a caller name. A number only
rowsOne row per caller and endpoint, with the fields below
Each entry in rows
callerThe caller's name as your gateway or tracing tool knows it, for example a client or service name
callerKindclient or service: gateways report clients, traces report services, a CSV gives it in each row
endpointIdservicemethodpathWhich of your endpoints was called, as your spec's path template with the parameter names removed, such as /orders/{} for /orders/{id}, never the concrete path
countHow many calls in the window. Left out when you run the step with --no-counts
lastSeenThe last day the caller used the endpoint. A day, not a time. With Datadog, the day the step ran

Nothing else is in the summary. Its request headers carry nothing from your logs: your usage key, a User-Agent naming the agent version and your CI platform, and standard HTTP headers. The list is closed: the agent's own tests fail if a field is added.

What stays in your network

Other than the one value you choose as the caller name, none of this leaves your network:

Caller names that match one of the agent's withholding rules are not sent either; only the number of their requests is.

Read it before it leaves

Nothing is sent in a dry run except one request to Graphwake for your endpoint templates (retried if Graphwake cannot be reached or is unavailable). The dry run prints the summary and, for requests that matched no endpoint, their hosts and path prefixes; in CI that output is the job log. A path prefix is the first two segments of the path, and a segment that contains a digit, @ or %, or is longer than 24 characters, is printed as *. Other segments are printed in clear: /users/jane/orders is printed as /users/jane. Hosts are printed as they are, with control characters escaped, except that the requests of a host longer than 255 bytes are counted in one (other) row. At most 20 rows are printed, then the number of rows left out.

$ graphwake usage --source apim --input gateway.json --dry-run
--- would send ---
{"preset":"apim","agentVersion":"0.3.0","windowStart":"2026-11-12","windowEnd":"2026-11-18",
 "countsIncluded":true,"unmatchedRequests":412,"withheldRequests":3,"anonymousRequests":7,
 "rows":[{"caller":"checkout-web","callerKind":"client","endpointId":"9d2c...",
          "service":"orders-api","method":"GET","path":"/orders/{}","count":14200,"lastSeen":"2026-11-18"}]}
--- end ---
Not sent to Graphwake:
  Requests that matched no endpoint, by host and path prefix:
    - gateway.internal /internal/health  412
  Requests withheld because the caller name looked personal: 3
  Requests without a caller name: 7
Example output, with the JSON broken over lines. The summary has these fields and no others.

Where the step runs

In your own CI or scheduler, with your own access to your logs. Graphwake holds no credential for your gateway, your cloud or your tracing tool. The step is part of the open source Graphwake agent.

github.com/graphwake/agent

Caller names

A caller name is whatever your gateway or tracing tool calls the client: a subscription, a consumer or a service name. With some tools that name is the value of a request header or a client certificate you pick; of a certificate subject, only its common name is sent, so CN=checkout-web,OU=checkout-team is sent as checkout-web, while a subject with a UID, DC, emailAddress or E part may be a person's and is withheld whole. You choose the field with --caller-field, and whatever it holds is what is sent as the caller name, unless it is withheld. If you named a client after a person or a customer, that name is sent. A name that matches one of the agent's withholding rules, such as those for common shapes of e-mail addresses, IP addresses, secrets, paths, URLs and structured content, and a few technical markers such as control characters and ##, is withheld. These rules catch common shapes; they are a safety net, not a guarantee, so choose a caller field that holds a client or application name. A summary that names more than 2,000 distinct callers is refused, because that usually means the field identifies end users. A usage source holds at most 2,000 callers, claimed and ignored ones included. When a summary would take a source past that, the callers that are neither claimed nor ignored and are not named in that summary are removed, the ones last seen longest ago first, and the summary is refused only if that is still not enough.

The exact withholding rules, in the agent's README

How long Graphwake keeps it

One row per caller and endpoint: the count from the latest summary, and the first and last day seen. No history of earlier summaries. For each usage source, Graphwake also keeps when its latest summary arrived, the days it covered, the agent version that built it, whether it carried counts, and how many of its requests matched no endpoint, were withheld or had no caller name. A row not seen for 90 days is deleted. A caller's name is removed once none of its rows are left, unless a team has claimed it or an Admin has ignored it; then it is kept while it stays claimed or ignored, at most until the usage source is deleted. Claiming or ignoring a caller, deciding on a suggestion for it, and undoing either is recorded with the caller's name in your workspace's audit log, which is kept while the workspace is open. Deleting a usage source deletes its callers and counts at once; subscriptions your teams confirmed stay.

Who can see it

Everyone in your workspace can see callers and counts, the same way they see subscriptions, in the dashboard and through Graphwake MCP. When a pull request breaks an endpoint, the names of callers no team has claimed are also written in its pull request comment on GitHub and Azure DevOps, under the same setting that shows or hides team names there. Only Admins manage usage sources and keys.

Turning it off

Delete the usage source in Settings, or stop running the step. Nothing else in Graphwake depends on it.

Optional. Without it, Graphwake still needs only your spec.