-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model: introduce APMEvent; Batch is now []model.APMEvent (#5613)
* model: introduce APMEvent; Batch is now []APMEvent Introduce APMEvent, a sort of discriminated union of all possible APM event types. In the future we will define module types in protobuf and generate the Go code. The APMEvent type will evolve to map directly to the Elasticsearch docs we produce, along these lines: ``` message APMEvent { google.protobuf.Timestamp timestamp = 1; Event event = 2; Trace trace = 3; Transaction transaction = 4; Span span = 5; Metricset metricset = 6; Parent parent = 7; Agent agent = 8; Client client = 9; Cloud cloud = 10; Container container = 11; Host host = 12; Kubernetes kubernetes = 13; map<string, LabelValue> labels = 14; Process process = 15; Service service = 16; Session session = 17; User user = 18; UserAgent user_agent = 19; HTTP http = 20; URL url = 21; Child child = 22; Error error = 23; } ``` When we do that, we'll be moving common fields (e.g. service details, labels) to APMEvent, and out of the specific event objects. * Adapt code to model.Batch changes * Update approvals Order of events changed: they're once again reported in the order received. (cherry picked from commit 0661ad0)
- Loading branch information
Showing
40 changed files
with
1,557 additions
and
1,523 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
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
Oops, something went wrong.