-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal: appsec: switch appsec event tag from json to messagepack using meta_struct #2570
Conversation
Signed-off-by: Eliott Bouhana <[email protected]>
APPSEC-51698 Signed-off-by: Eliott Bouhana <[email protected]>
fd8438d
to
42ecfa3
Compare
6d6e18c
to
1491e59
Compare
BenchmarksBenchmark execution time: 2024-02-23 13:36:44 Comparing candidate commit 147955e in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 40 metrics, 1 unstable metrics. |
Signed-off-by: Eliott Bouhana <[email protected]>
…ing meta_struct Signed-off-by: Eliott Bouhana <[email protected]>
…[]any but it supports map[string]any :[ Signed-off-by: Eliott Bouhana <[email protected]>
… in meta_struct Signed-off-by: Eliott Bouhana <[email protected]>
e4d58cb
to
147955e
Compare
This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
c3350e9
to
3b9f898
Compare
This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
What does this PR do?
This PR optimize the was appsec events are sent to the backend by using the new
meta_struct
span field to sent structured data to the backend without resorting to json in a string.Motivation
Marshaling json values directly in the customer hot path adds overhead to ASM that can now be avoided using this method that moves serializing to the agent writer goroutine.
Reviewer's Checklist
For Datadog employees:
@DataDog/security-design-and-guidance
.Unsure? Have a question? Request a review!
APPSEC-51698
Signed-off-by: Eliott Bouhana [email protected]