@@ -90,6 +90,26 @@ trait TestData {
90
90
" error" -> 1
91
91
)
92
92
93
+ val spanWithErrorTags = span.copy(tags = TagSet .from(Map (
94
+ " error" -> true ,
95
+ " error.type" -> " RuntimeException" ,
96
+ " error.message" -> " Error message" ,
97
+ " error.stacktrace" -> " Error stacktrace"
98
+ )), hasError = true )
99
+
100
+ val jsonWithErrorTags = json ++ Json .obj(
101
+ " meta" -> Json .obj(
102
+ " error" -> " true" ,
103
+ " env" -> " staging" ,
104
+ " error.type" -> " RuntimeException" ,
105
+ " error.message" -> " Error message" ,
106
+ " error.msg" -> " Error message" ,
107
+ " error.stacktrace" -> " Error stacktrace" ,
108
+ " error.stack" -> " Error stacktrace"
109
+ ),
110
+ " error" -> 1
111
+ )
112
+
93
113
val spanWithTags = span.copy(metricTags =
94
114
TagSet .from(
95
115
Map (
@@ -152,6 +172,7 @@ trait TestData {
152
172
" span with marks" -> (Seq (spanWithMarks), Json .arr(Json .arr(jsonWithMarks))),
153
173
" span with meta and marks" -> (Seq (spanWithTagsAndMarks), Json .arr(Json .arr(jsonWithTagsAndMarks))),
154
174
" span with error" -> (Seq (spanWithError), Json .arr(Json .arr(jsonWithError))),
175
+ " span with error tags" -> (Seq (spanWithErrorTags), Json .arr(Json .arr(jsonWithErrorTags))),
155
176
156
177
" multiple spans with same trace" -> (Seq (span, spanWithTags), Json .arr(Json .arr(json, jsonWithTags)))
157
178
// "multiple spans with two traces" -> (Seq(span, spanWithTags, otherTraceSpan, span), Json.arr(Json.arr(json, jsonWithTags, json), Json.arr(otherTraceJson)))
0 commit comments