Documentation
¶
Overview ¶
Package trace keeps what crossed a service's edge during a run, as the records flows/1 is written from. A stack's adapter records its transports through it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Begin ¶
func Begin() int64
Begin takes the next place in the order, for a call that writes its record once it returns.
func Raw ¶
func Raw(body []byte) json.RawMessage
Raw is body as a record holds it: JSON as it is, anything else quoted.
func Start ¶
func Start(t interface{ Name() string })
A suite runs its scenarios one after another, so the one being booted is the one every record belongs to until the next boot.
Types ¶
type Record ¶
type Record struct {
// A call is written once it returns, after whatever it sent on the way, so
// the order it began in is kept here.
Seq int64
Service string
Scenario string
Feature string // the file the scenario is in, as the suite named it
Step string // Context, Action or Outcome: Given, When, Then
Dir string // in, out
Kind string // grpc, event, http, command
Name string // the full method, the routing key, the route or the command
Request json.RawMessage
Response json.RawMessage
Error string // the refusal by code and failure type
}
Click to show internal directories.
Click to hide internal directories.