Disable-ZrTrace
Turns off runtime distributed tracing for a Zaris store or a single instance, with no restart.
Syntax
Disable-ZrTrace [-Store] <string> [[-Instance] <string>]
[-ManagementUrl <string>]
Description
Disable-ZrTrace disables live tracing by POSTing to the Management Service trace endpoint, which relays TRACE OFF over the target node's stdin control channel — no restart is required.
Like Enable-ZrTrace, this command targets the Management Service at -ManagementUrl rather than a connected store, so it does not use a Connect-ZrStore session or the -StoreName/-Endpoints parameters. Omit -Instance to disable tracing on all instances of the store; supply it to target one node.
The returned object has Store, Instance ((all) when no instance was specified), Enabled ($false), Success, and Response (the Management Service response body).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
-Store | String | Yes | The name of the store whose tracing should be disabled. Position 0. |
-Instance | String | No | The specific instance (node) name to target. Position 1. Omit to apply to all instances of the store. |
-ManagementUrl | String | No | Base URL of the Management Service to send the trace command to. Default http://localhost:7801. |
Examples
Disable tracing on all instances of a store:
Disable-ZrTrace -Store "orders"
Disable tracing on a single instance:
Disable-ZrTrace -Store "orders" -Instance "zaris-n0"
Target a remote Management Service:
Disable-ZrTrace -Store "orders" -ManagementUrl "http://zaris-manager:7801"