File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
enrichments/trace/internal/elastic Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ func (s *spanEnrichmentContext) setTxnResult(span ptrace.Span) {
322322func (s * spanEnrichmentContext ) setEventOutcome (span ptrace.Span ) {
323323 // default to success outcome
324324 outcome := "success"
325- successCount := 1
325+ successCount := getRepresentativeCount ( span . TraceState (). AsRaw ())
326326 switch {
327327 case s .spanStatusCode == ptrace .StatusCodeError :
328328 outcome = "failure"
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ func TestElasticTransactionEnrich(t *testing.T) {
9696 AttributeTransactionRepresentativeCount : float64 (256 ),
9797 AttributeTransactionDurationUs : int64 (0 ),
9898 AttributeEventOutcome : "success" ,
99- AttributeSuccessCount : int64 (1 ),
99+ AttributeSuccessCount : int64 (256 ),
100100 AttributeTransactionResult : "Success" ,
101101 AttributeTransactionType : "unknown" ,
102102 },
You can’t perform that action at this time.
0 commit comments