dexdo is a command-line client for the private inference market on Acki Nacki.
Sellers offer large-language-model inference for sale; buyers purchase it by the
tick. Deals settle on chain with escrow, private notes, and end-to-end encrypted
streaming, so neither side has to trust the other to be paid or served fairly.
Linux / macOS
curl -fsSL https://get.dex.do/install.sh | shWindows (PowerShell)
irm https://get.dex.do/install.ps1 | iexThe installer detects your operating system and CPU architecture, downloads the
matching release archive, verifies its checksum, and installs dexdo into
~/.local/bin (Linux/macOS) or %LOCALAPPDATA%\dexdo\bin (Windows). Override
the binary directory with DEXDO_BIN_DIR. It also installs the archived mainnet
manifest as <home>/.dexdo/manifest.json; reinstalling replaces that release
artifact with a warning.
The installer then puts that directory on your PATH so dexdo works in new
terminals. On Linux/macOS it appends one line, marked
# added by dexdo installer, to the config of the shell in $SHELL:
| Shell | File | Line |
|---|---|---|
| zsh | ~/.zshrc |
export PATH="$HOME/.local/bin:$PATH" |
| bash (Linux) | ~/.bashrc |
export PATH="$HOME/.local/bin:$PATH" |
| bash (macOS) | ~/.bash_profile |
export PATH="$HOME/.local/bin:$PATH" |
| fish | ~/.config/fish/config.fish |
fish_add_path "$HOME/.local/bin" |
It prints the file it changed and the line it added, never writes outside
$HOME, never needs sudo, and re-running it does not duplicate the entry. Any
other shell is left untouched with a copy-paste instruction instead. A running
shell keeps its old PATH, so source the file or open a new terminal.
To skip PATH setup entirely and just get the instruction:
curl -fsSL https://get.dex.do/install.sh | DEXDO_NO_MODIFY_PATH=1 sh
# or, with an argument:
curl -fsSL https://get.dex.do/install.sh | sh -s -- --no-modify-pathDownload the archive for your platform from the
latest release, verify it
against SHA256SUMS, extract it, move dexdo onto your PATH, and copy the
archived manifest/mainnet.manifest.json to <home>/.dexdo/manifest.json.
| Platform | Archive |
|---|---|
| Linux x86_64 | dexdo-<version>-x86_64-linux.tar.gz |
| Linux ARM64 | dexdo-<version>-aarch64-linux.tar.gz |
| macOS (Apple Silicon) | dexdo-<version>-aarch64-macos.tar.gz |
| macOS (Intel) | dexdo-<version>-x86_64-macos.tar.gz |
| Windows x86_64 | dexdo-<version>-x86_64-windows.zip |
cargo build --release -p dexdoThe release binary is written to target/release/dexdo.
Blockchain addresses are shown and stored in the canonical Acki Nacki form:
<dapp_id>::<account_id>
Both halves are 64 hex characters. Every address dexdo prints, and every address
it writes into market.json or a deal handle, uses that form.
Wherever dexdo takes an address (--token-contract, --note-addr,
--multisig-address, --to, a positional address, ...) it accepts either the
canonical form or the older 0:<account_id> form, so an address copied from an
earlier run still works. Files written by an earlier version keep loading
unchanged and are rewritten canonically the next time dexdo saves them.
The single exception is dexdo note withdraw --to, which requires the
DApp-qualified form: the destination DApp is evidence in TokensWithdrawn, and
account-only input cannot supply it.
Withdrawal links the note to that wallet, deanonymizes it, and permanently
prevents the note from posting another sell offer. The interactive command asks
for an explicit YES; a non-interactive caller must pass
--acknowledge-note-retirement after accepting those consequences. Continuing
to sell requires a new note.
| Command | What it does |
|---|---|
doctor |
Read-only network version / pin and market-freshness checks. Alias: health. |
provision |
Bring up an order book, model root, and per-deal token contract for a market. |
note deploy |
Mint a wallet-funded private note and fold it into the local note pool. |
seller |
Seller client: gateway, authorization, and stream handover. |
buyer |
Buyer client: endpoint decryption, challenge signing, and stream reception. |
markets |
Discover active model order books and their depth. |
quote |
Compute an executable quote over current order-book depth. |
orders |
List, show, or cancel this note's resting inference orders. |
monitor |
Human-readable, read-only view of the loaded note's offers, deals, and exposure. |
reclaim |
Buyer reclaims escrow when a seller does not show. |
recover |
Buyer closes an orphaned open deal so it can be settled. |
dispute |
Buyer opens an on-chain dispute on an open deal. |
destroy |
Seller closes a stopped deal's token contract. |
Run dexdo <command> --help for the flags of any command.
dexdo reads the deployed contract pins from a manifest: the one the
installer put at <home>/.dexdo/manifest.json, or the one DEXDO_MANIFEST
names.
A seller also needs a model catalogue: models.json in the working
directory, describing the upstream it proxies. You write that file --
models.example.json beside this README is a filled-in shape to copy and
edit, and nothing loads it under that name. Put your provider key in the
environment variable its api_key_env names, never in the file itself.
A buyer needs one only to add per-model verification data, or to use a
short local nickname instead of the market's full name. market,
executable-book, quote, orders and subscription resolve a model name
against the on-chain ModelRegistry and need no catalogue at all.
The manifest names the network it pins, and the client takes the network from
it, endpoint and all: which file you point at is which network you work on.
With the variable unset the client reads $HOME/.dexdo/manifest.json on
Linux/macOS or %USERPROFILE%\.dexdo\manifest.json on Windows, which the
installer puts there -- so a fresh install already works, on mainnet, with
nothing for you to configure. This is the only default: the working directory,
binary directory and platform configuration directories are never searched.
Set DEXDO_MANIFEST to use a manifest kept anywhere else -- another network,
or a copy you maintain yourself. It wins wherever it is set, and a path it
names that does not exist is refused against that path rather than falling
back to the installed default.
export DEXDO_MANIFEST=~/dexdo/mainnet.manifest.jsonWithout RUST_LOG the client prints four kinds of line and nothing else: what it
is doing now, what it has finished, the result, and refusals. Records at info
are off for every command, dexdo seller included.
This matters most for the seller. Its readiness components are info records:
component="gateway_task" status="pass"
component="advertised_gateway" status="pass"
A healthy seller prints none of them, so their absence is not a fault. Set
RUST_LOG=info to get them back.
Reading a seller with a program: do not depend on those records even with
RUST_LOG. Use the printed readiness line, which needs no RUST_LOG and carries
the whole verdict:
seller_ready token_contract=<addr> gateway=<host:port> gateway_listen=<addr> order_id=<n> readiness=exact_tc_offer_accepted
dexdo seller can export metrics over OTLP/gRPC to an OpenTelemetry Collector.
Export is off by default and independent of RUST_LOG; apart from dexdo buyer
(see Buyer metrics below), no other command starts it. Only metrics are exported, never logs or traces, and no labels carry
addresses, keys, prompts or per-deal identifiers.
| Variable | Default | Meaning |
|---|---|---|
OTEL_METRICS_EXPORTER |
none |
otlp turns export on; none, off or empty keep it off. |
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT |
http://localhost:4317 |
Collector address: an http or https origin with no credentials, path or query. Falls back to OTEL_EXPORTER_OTLP_ENDPOINT. |
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL |
grpc |
Only grpc is accepted. Falls back to OTEL_EXPORTER_OTLP_PROTOCOL. |
OTEL_EXPORTER_OTLP_METRICS_HEADERS |
none | name=value pairs separated by commas, values percent-encoded, for example authorization=Bearer%20<token>. Falls back to OTEL_EXPORTER_OTLP_HEADERS. |
OTEL_EXPORTER_OTLP_METRICS_TIMEOUT |
5000 |
Export timeout, milliseconds. Falls back to OTEL_EXPORTER_OTLP_TIMEOUT. |
OTEL_METRIC_EXPORT_INTERVAL |
15000 |
Time between exports, milliseconds. |
OTEL_SERVICE_NAME |
dexdo-seller |
service.name resource attribute. |
OTEL_RESOURCE_ATTRIBUTES |
none | Extra resource attributes as key=value pairs. Give every seller a unique, stable service.instance.id. role, network and service.name set here are ignored. |
A seller is identified the way a buyer is (see Buyer metrics below): the service
that starts sellers sets service.namespace, one value for all of them, and
service.instance.id, a value of its own for each seller. Through a Collector's
Prometheus exporter they usually become job (<service.namespace>/<service.name>)
and instance. The Ansible role sets the namespace to the inventory host name
and the instance to the supervisord program name.
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://127.0.0.1:4317
export OTEL_RESOURCE_ATTRIBUTES=service.namespace=west,service.instance.id=seller-west
dexdo seller ...The client adds role=seller, network (mock under --mock-chain) and
service.version to every series. An invalid configuration with export turned
on stops dexdo seller before it trades. A collector that is down or slow does
not: trading and inference continue, the seller prints one line when export
starts failing and one when it recovers, and shutdown waits for the collector at
most the export timeout. https uses the system certificate roots; custom CA
and client certificates are not supported.
Metric names below are OTLP instrument names. A Prometheus exporter in the
Collector usually rewrites them, for example dexdo_seller_heartbeat_seconds
and dexdo_seller_upstream_requests_total; check the exposed names before
writing alerts. Counters are cumulative. Every metric except
heartbeat, note.balance and telemetry.export_failures carries a model
label; the label table below the metrics says what each label value means.
| Metric | Type | Value | Collected at |
|---|---|---|---|
dexdo.seller.heartbeat |
observable gauge, f64, s |
Unix time of the collection; no model label. |
On every export (every OTEL_METRIC_EXPORT_INTERVAL, 15 s by default). If it stops advancing, the seller is down, hung, or cannot reach the collector. |
dexdo.seller.health.checks |
counter, u64 | Completed readiness checks. Labels model, component (gateway_task, advertised_gateway), outcome (pass, fail, timeout). |
On every readiness check: every 20 s for each watched deal, once per component. |
dexdo.seller.health.duration |
histogram, f64, s |
Time one readiness check took. Same labels as health.checks. Not recorded for gateway_task, which is a status flag read with no duration. |
On every advertised_gateway check, every 20 s per watched deal. |
dexdo.seller.health.last_check |
observable gauge, f64, s |
Unix time of the oldest latest check across the watched deals of a model and component. |
From the latest readiness checks, on every export. |
dexdo.seller.health.last_success |
observable gauge, f64, s |
Unix time of the oldest latest success across those deals; 0 while any of them has never passed. |
From the latest readiness checks, on every export. |
dexdo.seller.health.status |
observable gauge, u64 | 1 on the current state (pass, fail, unknown), 0 on the other two. unknown when a check of a watched deal is older than 120 s; fail when any latest outcome is not pass. Once the last watched deal of a model has ended, its last result stays. |
From the latest readiness checks, on every export. |
dexdo.seller.uptime.status |
observable gauge, u64 | 1 on the current state (pass, fail, timeout, throttled, unknown), 0 on the others. Labels model, component (gateway, upstream); independent of whether a deal is active. The advertised gateway self-probe remains in health.status (component=advertised_gateway). |
Gateway task status is sampled on gateway polling; an independent upstream probe runs per model every five minutes. Stale observations become unknown. |
dexdo.seller.uptime.last_check |
observable gauge, f64, s |
Unix timestamp of the latest uptime check. Labels model, component (gateway, upstream). |
On every export. |
dexdo.seller.uptime.last_success |
observable gauge, f64, s |
Unix timestamp of the latest successful uptime check; remains 0 until the component succeeds. Labels model, component. |
On every export. |
dexdo.seller.offer.executable |
observable gauge, f64, 1 |
Seller asks seen live on the order book (deadline still ahead) within the last 120 s. NaN while any ask of the model is unknown. |
From the seller's reads of its own asks on the order book, on every export. |
dexdo.seller.offer.remaining_ticks |
observable gauge, f64, 1 |
Ticks left in those live asks. NaN under the same condition. |
From the seller's reads of its own asks on the order book, on every export. |
dexdo.seller.offer.listed |
observable gauge, f64, 1 |
1 when an ask is authoritatively listed; 0 when its absence is authoritatively known; NaN while listing state is unknown. |
From the seller's reads of its own asks on the order book, on every export. |
dexdo.seller.offer.unknown |
observable gauge, f64, 1 |
Asks with no fresh read: the last read failed or is older than 120 s. A matched ask is final and never counts here. | From the seller's reads of its own asks on the order book, on every export. |
dexdo.seller.offer.recovery_age |
observable gauge, f64, s |
Seconds since the oldest unresolved offer recovery started; 0 when none. |
From the moment an offer post fails until a live ask is seen again, on every export. |
dexdo.seller.offer.isolated |
observable gauge, f64, 1 |
Local deal watchers isolated after an error. | When a deal watcher stops on an error or its listener is removed. |
dexdo.seller.offer.events |
counter, u64 | Offer lifecycle transitions. Label outcome: matched, expired, relisted, recovering, isolated. |
On each transition of a seller ask. |
dexdo.seller.upstream.requests |
counter, u64 | Logical upstream requests, counted once at the end. Labels model, purpose (inference, probe), backend (mock, openai, anthropic), outcome (success, error, cancelled), error_class (none, timeout, authentication, rate_limit, stream_protocol, unavailable, configuration, other). |
When an upstream call ends: buyer inference and background uptime probes. |
dexdo.seller.upstream.requests.active |
observable gauge, u64 | Number of active upstream requests. Labels model, purpose (inference, probe). |
While a request is running, on every export. |
dexdo.seller.upstream.duration |
histogram, f64, s |
Duration of one logical request. Same labels as upstream.requests. |
When an upstream call ends. |
dexdo.seller.upstream.attempts |
counter, u64 | HTTP attempts started, retries included. Labels model, purpose, backend, status_class=started. |
On every HTTP attempt to the provider; the mock backend counts one per request. |
dexdo.seller.upstream.responses |
counter, u64 | HTTP responses received. Labels model, purpose, backend, status_class (2xx, 4xx, 5xx, other), status_code. |
On every HTTP response from the provider; the mock backend records none. |
dexdo.seller.upstream.time_to_first_token |
histogram, f64, s |
Time from request start to the first non-empty output chunk delivered to the buyer. Labels model, purpose, backend. |
When the first output chunk reaches the buyer. |
dexdo.seller.upstream.time_per_output_token |
histogram, f64, s |
Average time per output token after the first output token. Labels model, purpose, backend; emitted for successful requests with more than one output token. |
When an upstream request completes. |
dexdo.seller.upstream.input_tokens |
counter, u64 | Input tokens reported for completed inference usage. Labels model, purpose=inference, backend. |
When usage is reported by the upstream adapter. |
dexdo.seller.upstream.output_tokens |
counter, u64 | Output tokens reported for completed inference usage. Labels model, purpose=inference, backend. |
When usage is reported by the upstream adapter. |
dexdo.seller.billable_ticks |
counter, f64, no OTLP unit (value is ticks) | Cumulative inference usage accepted by gateway billing (charged_tokens / TICK_SIZE), after grant and shared-budget limits. Labels model, purpose=inference, backend. |
Once authoritative billing succeeds. |
dexdo.seller.deals.in_progress |
observable gauge, u64 | Number of matched seller deals not yet confirmed terminal. Label model; cleared only after an authoritative terminal settlement fact. |
On every export. |
dexdo.seller.contract.call.errors |
counter, u64 | Failed calls to contracts. Labels model, error.type, contract, method; see Contract call errors below. |
When a call fails, once per call. |
dexdo.seller.note.balance |
observable gauge, f64, {SHELL} |
SHELL on each note that has a deal this seller is working now: an ask it watches or a matched deal not yet settled. The note is the one the deal's record in <data-dir>/deals/ names. Labels note, pocket; no model label. NaN when the read failed, and from the moment the note's last active deal is gone. A note with no active deal is not written. |
Read every 60 s, exported on every export. |
dexdo.seller.telemetry.export_failures |
observable counter, u64 | Failed exports to the collector, cumulative; visible after the next successful export. | On each failed export; visible after the next successful one. |
| Label | Values | Meaning |
|---|---|---|
model |
the market's model name | The model this seller sells, as configured in models.json for the market; mock for the mock backend. Never taken from a buyer request. |
component |
gateway_task |
The seller's gateway task inside the process is still running. |
advertised_gateway |
The seller reaches its own gateway at the address it advertised to buyers, the way a buyer would. | |
outcome on health.* |
pass, fail, timeout |
fail: the check got an answer and it was wrong (an error, a refused connection, or the wrong gateway identity). timeout: no answer within 20 s. |
state on health.status |
pass, fail, unknown |
unknown: no check of a watched deal in the last 120 s. |
outcome on offer.events |
matched |
A buyer bought the ask. |
expired |
The ask reached its deadline unsold. | |
relisted |
The seller posted a fresh ask after one expired. | |
recovering |
Posting an ask failed and the seller is retrying. | |
isolated |
A deal watcher stopped after an error; that deal is no longer supervised by this process. | |
purpose |
inference |
A buyer's request. |
probe |
The seller's own readiness check. | |
backend |
openai, anthropic, mock |
OpenAI-compatible provider, native Anthropic API, or the simulated backend, which never reaches a real provider. |
outcome on upstream.* |
success |
The stream ended with the provider's usage record. |
error |
The provider or the stream failed; see error_class. |
|
cancelled |
The call stopped before either, usually because the buyer disconnected. | |
error_class |
none |
No error (outcome is not error). |
unavailable |
The provider could not be reached, the connection broke, or it answered with an HTTP error status. Provider rate limits (429) and rejected keys (401, 403) land here too. |
|
timeout |
The provider produced no output before the seller's supervision deadline. | |
stream_protocol |
The provider's stream was malformed or ended without its usage record. | |
configuration |
A seller-side setup problem or a request the seller refuses: missing key, another model, a path it does not serve. | |
rate_limit |
A single stream frame from the provider exceeded the seller's buffer cap. | |
authentication |
Reserved; the adapters do not produce it today. | |
other |
Any other failure. | |
status_class |
started |
On upstream.attempts: an HTTP attempt began. |
2xx, 4xx, 5xx, other |
On upstream.responses: the class of the provider's HTTP status; status_code carries the exact code. |
|
note |
0, 1, ... |
On note.balance: the note's position in the note pool (DEXDO_PN_POOL, pn_pool.json), counted from 0. Never its address. |
pocket |
trading |
On note.balance: the note's trading balance, the SHELL it buys and sells with (getDetails, currency 2). |
gas |
On note.balance: the note account's own ECC[2] SHELL, which pays for its calls. |
A failed or stale chain read is reported as unknown, never as zero: while
offer.unknown is nonzero for a model, offer.executable and
offer.remaining_ticks report NaN for it. A matched ask is an end state: once
the last watched deal of a model is sold, its offer series show 0 and its
health series keep their last result instead of turning unknown. A watcher
that stops does not mean the offer was cancelled.
dexdo seller counts every failed call to a contract in
dexdo.seller.contract.call.errors, and dexdo buyer in
dexdo.buyer.contract.call.errors. A call is a getter run or a signed message
sent to a contract; reading an account's balance or its event history is not a
call. A call is counted once, when it fails: a read the client repeats on its
own counts once, by its last failure, and a call answered after a repeat is not
counted. The exit code is not a label, its type is, and no label carries an
address.
| Label | Values | Meaning |
|---|---|---|
error.type |
transport |
The node was not reached or the connection broke: DNS, TCP, TLS, HTTP 5xx. |
timeout |
The node did not answer a read in time, 20 s per attempt. | |
node_rejected |
The node answered with an error: a GraphQL error, an HTTP 4xx, or a message it refused before executing it. | |
tvm_compute |
The transaction aborted or its compute phase exited non-zero; a getter failed in the TVM. | |
tvm_action |
The action phase returned a non-zero result code, for example no funds for an outbound send. | |
unconfirmed |
The message may have reached the chain, and no result for it was observed in time. | |
decode |
The answer arrived and did not decode: not the JSON or the ABI shape the call expects. | |
client |
The client refused the call before sending it: the message did not encode by its ABI, or the machine clock disagrees with the chain. | |
contract |
TokenContract, PrivateNote, InferenceOrderBook, RootPN, RootModel, SuperRoot, UpdateCustodianMultisigWallet_v2 |
The contract called, by its ABI name. unknown for a message whose function the client cannot name. |
method |
a function or getter name | For example getState, claimTokens, postSellOffer. unknown with contract=unknown. |
model |
the model name | Buyer: the model it buys. Seller: the model of the deal whose TokenContract was called; any other call carries the model the seller was started for. |
dexdo buyer exports its own metrics over OTLP/gRPC with the same variables as
dexdo seller (table above). Export is off unless OTEL_METRICS_EXPORTER=otlp;
without it the buyer opens no connection to a collector and runs exactly as
before. OTEL_SERVICE_NAME defaults to dexdo-buyer, and the client adds
role=buyer, network (mock under --mock-chain) and service.version. An
invalid configuration with export turned on stops dexdo buyer before it buys.
A collector that is down or slow changes no answer the buyer gives: the metrics
are lost and requests are served as usual. No label carries addresses, keys,
prompts or deal identifiers; the seller gateway's address is never recorded, so
server.address and server.port are not set.
A service that launches buyers in batches ties them to itself through two
resource attributes, which the buyer passes on unchanged: service.namespace,
one value for every buyer that service starts, and service.instance.id, a
value of its own for each buyer, for example its slot. Through a Collector's
Prometheus exporter they usually become job (<service.namespace>/<service.name>)
and instance.
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://127.0.0.1:4317
export OTEL_RESOURCE_ATTRIBUTES=service.namespace=slot-orchestrator,service.instance.id=slot-7Then start dexdo buyer in the same environment as usual.
Names and labels follow the OpenTelemetry semantic conventions:
http.server.request.duration and rpc.client.call.duration appear with the
dexdo.buyer. prefix, and each error counter of the local API and of the
gateway calls carries the labels of its histogram. Every metric also carries model, the model this buyer buys, as the
seller's metrics do. Every retry is its own connection and its own calls.
| Metric | Type | Value | Recorded |
|---|---|---|---|
dexdo.buyer.http.server.errors |
counter, u64 | Answers of the local API with a status of 400 or above. | On every such answer, on any path and method, including an unknown path (404) and a body over the limit (413). |
dexdo.buyer.http.server.request.duration |
histogram, f64, s |
Time from receiving a request to the last byte of its answer; a streamed answer is timed to its end or to the moment it broke off. | On every answer with any status, and on a request the client left before any answer. |
dexdo.buyer.rpc.client.connect.errors |
counter, u64 | Failed connections to the seller gateway. | On every failed connection. A handover address that does not parse is no connection and is not recorded here or in connect.duration. |
dexdo.buyer.rpc.client.connect.duration |
histogram, f64, s |
Time from the start of the TCP connection to a ready HTTP/2 channel, or to the failure. | On every connection, failed or not. |
dexdo.buyer.rpc.client.call.duration |
histogram, f64, s |
Time of one GetChallenge or OpenStream call; OpenStream is timed to the end of its response stream. |
When the call ends. A connection that failed makes no call. |
dexdo.buyer.rpc.client.errors |
counter, u64 | Calls that ended with a gRPC status other than OK. |
When such a call ends. |
dexdo.buyer.contract.call.errors |
counter, u64 | Failed calls to contracts. Labels model, error.type, contract, method, the same as on the seller; see Contract call errors above. |
When a call fails, once per call. |
| Label | Metrics | Values |
|---|---|---|
model |
all | The model this buyer buys, as resolved at start. Never taken from a client's request. |
http.request.method |
http.server.* |
The request method; a method outside RFC 9110 other than PATCH is _OTHER. |
url.scheme |
http.server.* |
http. |
http.response.status_code |
http.server.* |
The status sent, as an integer. Absent when the client left before any answer. |
http.route |
http.server.* |
The matched route: /v1/chat/completions, /v1/responses, /v1/messages, /v1/models, /v1/usage, /v1/usage/facts. Absent on an unknown path; the raw path is never recorded. |
network.protocol.version |
http.server.* |
1.1 or 2. |
error.type |
http.server.* |
On a 5xx answer the status as a string, for example "502"; client_disconnected when the client left before any answer. Absent otherwise: a 4xx is not a server error. |
error.type |
rpc.client.connect.* |
The stage the connection failed at: tcp_connect, tls_handshake, tls_certificate_pin (the gateway's certificate is not the one pinned for the deal) or http2_handshake (TCP and TLS succeeded, HTTP/2 did not). Absent on a connection that succeeded. |
tls.alert |
rpc.client.connect.* |
The TLS alert the gateway sent, by its registry name, for example handshake_failure; _OTHER for an unassigned code. Only when an alert arrived. |
rpc.system.name |
rpc.client.call.duration, rpc.client.errors |
grpc. |
rpc.method |
rpc.client.call.duration, rpc.client.errors |
dexdo.v1.Gateway/GetChallenge or dexdo.v1.Gateway/OpenStream. |
rpc.status_code |
rpc.client.call.duration, rpc.client.errors |
The gRPC status name, OK, CANCELLED, INVALID_ARGUMENT, RESOURCE_EXHAUSTED, UNAVAILABLE, DATA_LOSS and so on, sent by the seller or set by the client. |
error.type |
rpc.client.call.duration, rpc.client.errors |
The same status name when it is not OK. |
purpose |
GetChallenge calls only |
authorize: the nonce that signs a request; capabilities: the once-per-deal query of the paths the seller serves. |
OpenStream ends with CANCELLED when the buyer abandons the stream, usually
because its client disconnected. A provider's HTTP error that the seller
forwards is not a gRPC error: the client receives it unchanged and it shows in
http.server.*. A stream that ends with OK but whose content the buyer
rejects is still OK here.
Histogram buckets, seconds: http.server.request.duration uses
0, 1, 5, 10, 25, 60, 300; rpc.client.connect.duration and
rpc.client.call.duration share
0, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10, 25, 60, 300.
Through a Collector's Prometheus exporter the error counter usually appears as
dexdo_buyer_http_server_errors_total; check the exposed names before writing
alerts. An alert on server errors of the local API:
sum(rate(dexdo_buyer_http_server_errors_total{http_response_status_code=~"5.."}[5m])) > 0
- DEX.DO glossary,
- Registered AI models,
- Wallets and fund flows,
- Withdrawing PrivateNote funds to a wallet
Released under the MIT License -- see LICENSE.