Skip to content

Commit

Permalink
model: add {Transaction,Span}.Outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Sep 24, 2020
1 parent 3764442 commit 6a36e8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions model/marshal_fastjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ type Transaction struct {

// SpanCount holds statistics on spans within a transaction.
SpanCount SpanCount `json:"span_count"`

// Outcome holds the transaction outcome: success, failure, or unknown.
Outcome string `json:"outcome,omitempty"`
}

// SpanCount holds statistics on spans within a transaction.
Expand Down Expand Up @@ -324,6 +327,9 @@ type Span struct {

// Stacktrace holds stack frames corresponding to the span.
Stacktrace []StacktraceFrame `json:"stacktrace,omitempty"`

// Outcome holds the span outcome: success, failure, or unknown.
Outcome string `json:"outcome,omitempty"`
}

// SpanContext holds contextual information relating to the span.
Expand Down

0 comments on commit 6a36e8a

Please sign in to comment.