File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ impl Item {
106
106
107
107
match self . ty ( ) {
108
108
ItemType :: Event => smallvec ! [ ( DataCategory :: Error , item_count) ] ,
109
- ItemType :: Transaction => smallvec ! [ ( DataCategory :: Transaction , item_count) ] ,
109
+ ItemType :: Transaction => smallvec ! [
110
+ ( DataCategory :: Transaction , item_count) ,
111
+ ( DataCategory :: Span , item_count)
112
+ ] ,
110
113
ItemType :: Security | ItemType :: RawSecurity => {
111
114
smallvec ! [ ( DataCategory :: Security , item_count) ]
112
115
}
Original file line number Diff line number Diff line change @@ -178,9 +178,7 @@ fn count_nested_spans(envelope: &ManagedEnvelope) -> usize {
178
178
. items ( )
179
179
. find ( |item| * item. ty ( ) == ItemType :: Transaction && !item. spans_extracted ( ) )
180
180
. and_then ( |item| serde_json:: from_slice :: < PartialEvent > ( & item. payload ( ) ) . ok ( ) )
181
- // We do + 1, since we count the transaction itself because it will be extracted
182
- // as a span and counted during the slow path of rate limiting.
183
- . map_or ( 0 , |event| event. spans . 0 + 1 )
181
+ . map_or ( 0 , |event| event. spans . 0 )
184
182
}
185
183
186
184
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments