Skip to content
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

Use serde_bytes for meta_struct #540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bwoebi
Copy link
Contributor

@bwoebi bwoebi commented Jul 19, 2024

Otherwise meta_struct will be serialized as an array of integers instead of a byte string, breaking the expected representation.

Appsec is trying to use it, but breaking when using the sidecar trace sender.

@bwoebi bwoebi requested review from a team as code owners July 19, 2024 12:29
@bwoebi bwoebi force-pushed the bob/meta_struct-serde_bytes branch 2 times, most recently from 0a36ced to 8fb9346 Compare July 19, 2024 13:31
Otherwise meta_struct will be serialized as an array of integers instead of a byte string, breaking the expected representation.

Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
@bwoebi bwoebi force-pushed the bob/meta_struct-serde_bytes branch from 8fb9346 to 3ae1507 Compare July 19, 2024 13:33
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Project coverage is 70.58%. Comparing base (d351d66) to head (3ae1507).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #540   +/-   ##
=======================================
  Coverage   70.58%   70.58%           
=======================================
  Files         206      206           
  Lines       28129    28129           
=======================================
  Hits        19856    19856           
  Misses       8273     8273           
Components Coverage Δ
crashtracker 16.52% <ø> (ø)
datadog-alloc 98.73% <ø> (ø)
data-pipeline 50.00% <ø> (ø)
data-pipeline-ffi 0.00% <ø> (ø)
ddcommon 86.43% <ø> (ø)
ddcommon-ffi 75.29% <ø> (ø)
ddtelemetry 58.95% <ø> (ø)
ipc 84.13% <ø> (ø)
profiling 78.78% <ø> (ø)
profiling-ffi 58.64% <ø> (ø)
serverless 0.00% <ø> (ø)
sidecar 35.42% <ø> (ø)
sidecar-ffi 0.00% <ø> (ø)
spawn-worker 54.98% <ø> (ø)
trace-mini-agent 71.14% <ø> (ø)
trace-normalization 98.24% <ø> (ø)
trace-obfuscation 95.73% <ø> (ø)
trace-protobuf 69.83% <0.00%> (-7.33%) ⬇️
trace-utils 91.63% <ø> (+0.59%) ⬆️

@pr-commenter
Copy link

pr-commenter bot commented Jul 19, 2024

Benchmarks

This comment was omitted because it was over 65536 characters.Please check the Gitlab Job logs to see its output.

Copy link
Contributor

@bantonsson bantonsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, since we're not going to send v0.7 (or at least not optimize or test that) from the sidecar, I don't know how ASM will be able to use meta_struct.

I'm not saying that the fix is wrong, but I can only see meta_struct being used in an agentless setting, when sending directly to intake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants