MCPcopy
hub / github.com/nats-io/nats.go / ClientTrace

Struct ClientTrace

js.go:360–363  ·  view source on GitHub ↗

ClientTrace can be used to trace API interactions for the JetStream Context.

Source from the content-addressed store, hash-verified

358
359// ClientTrace can be used to trace API interactions for the JetStream Context.
360type ClientTrace struct {
361 RequestSent func(subj string, payload []byte)
362 ResponseReceived func(subj string, payload []byte, hdr Header)
363}
364
365func (ct ClientTrace) configureJSContext(js *jsOpts) error {
366 js.ctrace = ct

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected