-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wrong action name: stack_trace -> generate_stack * stacktrace msgp serialization error: wait for new version for better support * dyngo.EmitData on parent operation instead of child operation because of variable shadowing * update contrib roundtripper to ignore events.SecurityBlockingEvent Signed-off-by: Eliott Bouhana <[email protected]>
- Loading branch information
1 parent
b15a3fa
commit c091b03
Showing
8 changed files
with
68 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,14 +88,16 @@ func AddToSpan(span ddtrace.Span, events ...*Event) { | |
return | ||
} | ||
|
||
groupByCategory := map[EventCategory][]*Event{ | ||
ExceptionEvent: {}, | ||
VulnerabilityEvent: {}, | ||
ExploitEvent: {}, | ||
} | ||
// TODO(eliott.bouhana): switch to a map[EventCategory][]*Event type when the tinylib/[email protected] is out | ||
groupByCategory := make(map[string]any, 3) | ||
|
||
for _, event := range events { | ||
groupByCategory[event.Category] = append(groupByCategory[event.Category], event) | ||
if _, ok := groupByCategory[string(event.Category)]; !ok { | ||
groupByCategory[string(event.Category)] = []*Event{event} | ||
continue | ||
} | ||
|
||
groupByCategory[string(event.Category)] = append(groupByCategory[string(event.Category)].([]*Event), event) | ||
} | ||
|
||
type rooter interface { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters