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

[APR-258] Add option to compress logs with zstd #27148

Merged
merged 106 commits into from
Jan 16, 2025
Merged

Conversation

StephenWakely
Copy link
Contributor

@StephenWakely StephenWakely commented Jun 28, 2024

What does this PR do?

This adds a config option to compress log payloads with zstd. We have a new option:

logs_enabled: true
logs_config:
  use_compression: true
  compression_kind: zstd

compression_kind defaults to gzip if not specified. This was the only compression used previously.

Motivation

Additional Notes

To make this change, in the interests of reusing code, I have moved the previous gzip code used for logs into the comp/serializer/compression component. This component is currently used by metrics. I have had to add extra functionality to limit the available compression algorithms since metrics only allows zlib and zstd and logs only allows zstd and gzip.

I'm not totally convinced that I have done this in a idiomatic way, so would appreciate feedback.

Note: We've discussed the compenitization with @DataDog/agent-shared-components , who wants some refactoring, but we'll do this after this is merged so that we can have zstd for logs available for testing.

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Configure the agent with:

logs_enabled: true
logs_config:
  use_http: true
  use_compression: true
  compression_kind: zstd
  compression_level: 5

Configure the agent to tail a file:

logs:
  - type: file
    path: "/tmp/zorkdork.log"
    service: "zork"
    source: "zorkzork"

Add some text to /tmp/zorkdork.log, ensure the logs are sent to Datadog and are decompressed correctly.

QA for the open telemetry team

Can you make sure the otel collector can process logs correctly. Hopefully the fx components are wired up as you need them.

Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
@pr-commenter
Copy link

pr-commenter bot commented Jun 28, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv aws.create-vm --pipeline-id=53201356 --os-family=ubuntu

Note: This applies to commit fdc16ca

Copy link

cit-pr-commenter bot commented Aug 30, 2024

Go Package Import Differences

Baseline: 9e36fae
Comparison: fdc16ca

binaryosarchchange
agentlinuxamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
agentlinuxarm64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
agentwindowsamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
agentdarwinamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
agentdarwinarm64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
iot-agentlinuxamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
iot-agentlinuxarm64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
heroku-agentlinuxamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
cluster-agentlinuxamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
cluster-agentlinuxarm64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
cluster-agent-cloudfoundrylinuxamd64
+11, -4
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
cluster-agent-cloudfoundrylinuxarm64
+11, -4
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
dogstatsdlinuxamd64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
dogstatsdlinuxarm64
+12, -7
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/fx
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/impl
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
process-agentlinuxamd64
+10, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
process-agentlinuxarm64
+10, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
process-agentwindowsamd64
+10, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
process-agentdarwinamd64
+10, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
process-agentdarwinarm64
+10, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
heroku-process-agentlinuxamd64
+10, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
security-agentlinuxamd64
+10, -6
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
security-agentlinuxarm64
+10, -6
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
security-agentwindowsamd64
+10, -6
-github.com/DataDog/datadog-agent/comp/serializer/compression/common
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zlib
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-zstd
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zlib
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-zstd
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
serverlesslinuxamd64
+8, -3
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
serverlesslinuxarm64
+8, -3
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
-github.com/DataDog/datadog-agent/comp/serializer/compression/impl-noop
-github.com/DataDog/datadog-agent/comp/serializer/compression/selector
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/impl
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-gzip
+github.com/DataDog/datadog-agent/pkg/util/compression/impl-noop
+github.com/DataDog/datadog-agent/pkg/util/compression/selector
system-probelinuxamd64
+3, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
system-probelinuxarm64
+3, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
system-probewindowsamd64
+3, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/logscompression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
trace-agentlinuxamd64
+2, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
trace-agentlinuxarm64
+2, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
trace-agentwindowsamd64
+2, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
trace-agentdarwinamd64
+2, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
trace-agentdarwinarm64
+2, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression
heroku-trace-agentlinuxamd64
+2, -1
-github.com/DataDog/datadog-agent/comp/serializer/compression/def
+github.com/DataDog/datadog-agent/comp/serializer/metricscompression/def
+github.com/DataDog/datadog-agent/pkg/util/compression

Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Signed-off-by: Stephen Wakely <[email protected]>
Copy link
Contributor

@ogaca-dd ogaca-dd left a comment

Choose a reason for hiding this comment

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

Nice PR with well written code!
Note: I have use Request changes because there is a TODO in the code

CompressionLevel int `mapstructure:"compression_level" json:"compression_level"`
UseCompression bool `mapstructure:"use_compression" json:"use_compression"`
CompressionKind string `mapstructure:"compression_kind" json:"compression_kind"`
CompressionLevel int `mapstructure:"compression_level" json:"compression_level"`
Copy link
Member

Choose a reason for hiding this comment

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

Should we also have zstd_compression_level here? (and in the endpoint constructor below)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CompressionLevel gets set to either compression_level or zstd_compression_level earlier on in the process since there's not a need to have two separate fields at this stage.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense. I forget that additional_endpoints inherit the compression strategy from the main endpoint.

However this opens up a followup question, is there a use case where an additional endpoint would use a different compression strategy than the main endpoint? (ex if an on-prem log collector/proxy doesn't support zstd, and we enable zstd by default for the main endpoint).

We can probably track this as a followup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a good question. I think we have been looking towards only supporting one compression strategy throughout the agent (both metrics and logs). It just makes things simpler. So if there is a case where we should allow multiple at the same time, we should find out about these now.

pkg/util/compression/impl-noop/no_strategy.go Show resolved Hide resolved
Signed-off-by: Stephen Wakely <[email protected]>
@@ -474,6 +473,7 @@ func getSharedFxOption() fx.Option {
networkpath.Bundle(),
remoteagentregistryfx.Module(),
haagentfx.Module(),
metricscompressorfx.Module(),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason we don't need the logscompression.Module() here? (while for instance we need it in the JMX command. FWIW it seems we need it in all other commands)

Copy link
Contributor Author

@StephenWakely StephenWakely Jan 16, 2025

Choose a reason for hiding this comment

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

It is being provided by process.Bundle(). It needs to be in this bundle, because that also includes the eventplatformimpl component which needs the logscompression component.

@@ -125,7 +129,7 @@ func runAgent(tagger tagger.Component) {

go startTraceAgent(&wg, lambdaSpanChan, coldStartSpanId, serverlessDaemon, tagger, rcService)
go startOtlpAgent(&wg, metricAgent, serverlessDaemon, tagger)
go startTelemetryCollection(&wg, serverlessID, logChannel, serverlessDaemon, tagger)
go startTelemetryCollection(&wg, serverlessID, logChannel, serverlessDaemon, tagger, compression)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know how's serverless sending this telemetry? Through logs? Otherwise why are we providing a logs compression module here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. It sets it up here.

comp/README.md Outdated Show resolved Hide resolved
comp/logs/agent/config/config_keys.go Show resolved Hide resolved
pkg/util/compression/selector/no-zlib-no-zstd.go Outdated Show resolved Hide resolved
@StephenWakely StephenWakely added qa/rc-required Only for a PR that requires validation on the Release Candidate team/opentelemetry OpenTelemetry team labels Jan 16, 2025
Signed-off-by: Stephen Wakely <[email protected]>
Copy link
Contributor

@julien-lebot julien-lebot left a comment

Choose a reason for hiding this comment

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

✅ for Windows Agent files.

Copy link
Contributor

@remeh remeh left a comment

Choose a reason for hiding this comment

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

I'll let the review of the components part to our specialists, but from an APR perspective, LGTM!

Copy link
Member

@chouetz chouetz left a comment

Choose a reason for hiding this comment

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

ok for devx files

Signed-off-by: Stephen Wakely <[email protected]>
Copy link
Contributor

Serverless Benchmark Results

BenchmarkStartEndInvocation comparison between 70c1a14 and 41cd48c.

tl;dr

Use these benchmarks as an insight tool during development.

  1. Skim down the vs base column in each chart. If there is a ~, then there was no statistically significant change to the benchmark. Otherwise, ensure the estimated percent change is either negative or very small.

  2. The last row of each chart is the geomean. Ensure this percentage is either negative or very small.

What is this benchmarking?

The BenchmarkStartEndInvocation compares the amount of time it takes to call the start-invocation and end-invocation endpoints. For universal instrumentation languages (Dotnet, Golang, Java, Ruby), this represents the majority of the duration overhead added by our tracing layer.

The benchmark is run using a large variety of lambda request payloads. In the charts below, there is one row for each event payload type.

How do I interpret these charts?

The charts below comes from benchstat. They represent the statistical change in duration (sec/op), memory overhead (B/op), and allocations (allocs/op).

The benchstat docs explain how to interpret these charts.

Before the comparison table, we see common file-level configuration. If there are benchmarks with different configuration (for example, from different packages), benchstat will print separate tables for each configuration.

The table then compares the two input files for each benchmark. It shows the median and 95% confidence interval summaries for each benchmark before and after the change, and an A/B comparison under "vs base". ... The p-value measures how likely it is that any differences were due to random chance (i.e., noise). The "~" means benchstat did not detect a statistically significant difference between the two inputs. ...

Note that "statistically significant" is not the same as "large": with enough low-noise data, even very small changes can be distinguished from noise and considered statistically significant. It is, of course, generally easier to distinguish large changes from noise.

Finally, the last row of the table shows the geometric mean of each column, giving an overall picture of how the benchmarks changed. Proportional changes in the geomean reflect proportional changes in the benchmarks. For example, given n benchmarks, if sec/op for one of them increases by a factor of 2, then the sec/op geomean will increase by a factor of ⁿ√2.

I need more help

First off, do not worry if the benchmarks are failing. They are not tests. The intention is for them to be a tool for you to use during development.

If you would like a hand interpreting the results come chat with us in #serverless-agent in the internal DataDog slack or in #serverless in the public DataDog slack. We're happy to help!

Benchmark stats
goos: linux
goarch: amd64
pkg: github.com/DataDog/datadog-agent/pkg/serverless/daemon
cpu: AMD EPYC 7763 64-Core Processor                
                                      │ baseline/benchmark.log │       current/benchmark.log        │
                                      │         sec/op         │   sec/op     vs base               │
api-gateway-appsec.json                            86.92µ ± 9%   84.82µ ± 3%  -2.42% (p=0.007 n=10)
api-gateway-kong-appsec.json                       68.06µ ± 2%   66.41µ ± 7%       ~ (p=0.089 n=10)
api-gateway-kong.json                              64.40µ ± 2%   63.44µ ± 2%  -1.49% (p=0.005 n=10)
api-gateway-non-proxy-async.json                   102.1µ ± 2%   100.0µ ± 1%  -2.02% (p=0.002 n=10)
api-gateway-non-proxy.json                        102.37µ ± 2%   98.96µ ± 1%  -3.33% (p=0.000 n=10)
api-gateway-websocket-connect.json                 68.92µ ± 4%   63.72µ ± 1%  -7.55% (p=0.000 n=10)
api-gateway-websocket-default.json                 60.36µ ± 4%   57.34µ ± 1%  -5.01% (p=0.004 n=10)
api-gateway-websocket-disconnect.json              59.08µ ± 2%   56.60µ ± 1%  -4.20% (p=0.000 n=10)
api-gateway.json                                   107.5µ ± 1%   105.0µ ± 1%  -2.32% (p=0.000 n=10)
application-load-balancer.json                     58.26µ ± 4%   56.50µ ± 1%  -3.01% (p=0.000 n=10)
cloudfront.json                                    44.62µ ± 3%   42.14µ ± 1%  -5.56% (p=0.000 n=10)
cloudwatch-events.json                             37.66µ ± 2%   35.89µ ± 3%  -4.70% (p=0.001 n=10)
cloudwatch-logs.json                               62.67µ ± 2%   57.85µ ± 3%  -7.69% (p=0.000 n=10)
custom.json                                        32.11µ ± 1%   29.44µ ± 1%  -8.33% (p=0.000 n=10)
dynamodb.json                                      87.84µ ± 1%   82.03µ ± 1%  -6.62% (p=0.000 n=10)
empty.json                                         30.41µ ± 2%   28.20µ ± 1%  -7.25% (p=0.000 n=10)
eventbridge-custom.json                            47.76µ ± 1%   44.31µ ± 1%  -7.23% (p=0.000 n=10)
eventbridge-no-bus.json                            46.87µ ± 1%   43.33µ ± 1%  -7.55% (p=0.000 n=10)
eventbridge-no-timestamp.json                      46.50µ ± 2%   43.59µ ± 1%  -6.25% (p=0.000 n=10)
eventbridgesns.json                                61.33µ ± 2%   57.91µ ± 1%  -5.58% (p=0.000 n=10)
eventbridgesqs.json                                67.38µ ± 3%   63.57µ ± 1%  -5.65% (p=0.000 n=10)
http-api.json                                      67.61µ ± 2%   63.87µ ± 1%  -5.53% (p=0.000 n=10)
kinesis-batch.json                                 66.93µ ± 2%   63.34µ ± 1%  -5.37% (p=0.000 n=10)
kinesis.json                                       53.74µ ± 2%   50.62µ ± 1%  -5.82% (p=0.000 n=10)
s3.json                                            57.29µ ± 1%   54.88µ ± 1%  -4.21% (p=0.000 n=10)
sns-batch.json                                     85.55µ ± 1%   81.03µ ± 1%  -5.29% (p=0.000 n=10)
sns.json                                           64.78µ ± 1%   61.89µ ± 1%  -4.47% (p=0.000 n=10)
snssqs.json                                        108.7µ ± 1%   102.8µ ± 1%  -5.36% (p=0.000 n=10)
snssqs_no_dd_context.json                          99.66µ ± 1%   93.55µ ± 2%  -6.14% (p=0.000 n=10)
sqs-aws-header.json                                54.67µ ± 1%   52.09µ ± 2%  -4.73% (p=0.000 n=10)
sqs-batch.json                                     89.44µ ± 1%   84.11µ ± 1%  -5.95% (p=0.000 n=10)
sqs.json                                           65.69µ ± 2%   63.42µ ± 1%  -3.45% (p=0.001 n=10)
sqs_no_dd_context.json                             60.15µ ± 2%   57.37µ ± 1%  -4.63% (p=0.000 n=10)
stepfunction.json                                  43.41µ ± 3%   40.77µ ± 1%  -6.07% (p=0.000 n=10)
geomean                                            63.19µ        59.96µ       -5.11%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │          B/op          │     B/op      vs base               │
api-gateway-appsec.json                           37.26Ki ± 0%   37.26Ki ± 0%       ~ (p=0.222 n=10)
api-gateway-kong-appsec.json                      26.90Ki ± 0%   26.90Ki ± 0%       ~ (p=0.280 n=10)
api-gateway-kong.json                             24.37Ki ± 0%   24.37Ki ± 0%       ~ (p=0.093 n=10)
api-gateway-non-proxy-async.json                  47.93Ki ± 0%   47.93Ki ± 0%       ~ (p=0.869 n=10)
api-gateway-non-proxy.json                        47.12Ki ± 0%   47.11Ki ± 0%       ~ (p=0.109 n=10)
api-gateway-websocket-connect.json                25.34Ki ± 0%   25.34Ki ± 0%       ~ (p=0.222 n=10)
api-gateway-websocket-default.json                21.23Ki ± 0%   21.23Ki ± 0%       ~ (p=0.133 n=10)
api-gateway-websocket-disconnect.json             20.99Ki ± 0%   20.98Ki ± 0%  -0.01% (p=0.016 n=10)
api-gateway.json                                  49.26Ki ± 0%   49.26Ki ± 0%       ~ (p=0.238 n=10)
application-load-balancer.json                    22.45Ki ± 0%   22.45Ki ± 0%       ~ (p=0.354 n=10)
cloudfront.json                                   17.43Ki ± 0%   17.43Ki ± 0%       ~ (p=0.185 n=10)
cloudwatch-events.json                            11.49Ki ± 0%   11.49Ki ± 0%       ~ (p=0.655 n=10)
cloudwatch-logs.json                              53.05Ki ± 0%   53.04Ki ± 0%       ~ (p=0.397 n=10)
custom.json                                       9.525Ki ± 0%   9.525Ki ± 0%       ~ (p=0.977 n=10)
dynamodb.json                                     40.29Ki ± 0%   40.29Ki ± 0%       ~ (p=0.081 n=10)
empty.json                                        9.063Ki ± 0%   9.063Ki ± 0%       ~ (p=0.342 n=10)
eventbridge-custom.json                           14.66Ki ± 0%   14.66Ki ± 0%       ~ (p=0.381 n=10)
eventbridge-no-bus.json                           13.63Ki ± 0%   13.63Ki ± 0%       ~ (p=0.727 n=10)
eventbridge-no-timestamp.json                     13.63Ki ± 0%   13.63Ki ± 0%       ~ (p=0.870 n=10)
eventbridgesns.json                               20.43Ki ± 0%   20.44Ki ± 0%       ~ (p=0.426 n=10)
eventbridgesqs.json                               24.57Ki ± 0%   24.57Ki ± 0%       ~ (p=0.478 n=10)
http-api.json                                     23.24Ki ± 0%   23.24Ki ± 0%  +0.02% (p=0.044 n=10)
kinesis-batch.json                                26.49Ki ± 0%   26.49Ki ± 0%       ~ (p=0.168 n=10)
kinesis.json                                      17.37Ki ± 0%   17.37Ki ± 0%       ~ (p=0.492 n=10)
s3.json                                           19.86Ki ± 0%   19.86Ki ± 0%       ~ (p=0.524 n=10)
sns-batch.json                                    39.06Ki ± 0%   39.06Ki ± 0%  +0.01% (p=0.039 n=10)
sns.json                                          24.48Ki ± 0%   24.48Ki ± 0%       ~ (p=0.152 n=10)
snssqs.json                                       52.68Ki ± 0%   52.68Ki ± 0%       ~ (p=0.587 n=10)
snssqs_no_dd_context.json                         46.44Ki ± 0%   46.44Ki ± 0%       ~ (p=0.565 n=10)
sqs-aws-header.json                               18.77Ki ± 0%   18.78Ki ± 0%  +0.05% (p=0.001 n=10)
sqs-batch.json                                    41.25Ki ± 0%   41.25Ki ± 0%       ~ (p=0.514 n=10)
sqs.json                                          25.37Ki ± 0%   25.38Ki ± 0%  +0.02% (p=0.033 n=10)
sqs_no_dd_context.json                            21.00Ki ± 0%   21.00Ki ± 0%       ~ (p=0.777 n=10)
stepfunction.json                                 13.50Ki ± 0%   13.50Ki ± 0%       ~ (p=0.390 n=10)
geomean                                           24.09Ki        24.09Ki       +0.00%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │       allocs/op        │ allocs/op   vs base                 │
api-gateway-appsec.json                             627.0 ± 0%   627.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-kong-appsec.json                        485.0 ± 0%   485.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-kong.json                               463.0 ± 0%   463.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-non-proxy-async.json                    720.0 ± 0%   720.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-non-proxy.json                          710.0 ± 0%   710.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-websocket-connect.json                  448.0 ± 0%   448.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-websocket-default.json                  373.0 ± 0%   373.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-websocket-disconnect.json               363.0 ± 0%   363.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway.json                                    782.0 ± 0%   782.0 ± 0%       ~ (p=1.000 n=10) ¹
application-load-balancer.json                      347.0 ± 0%   347.0 ± 0%       ~ (p=1.000 n=10) ¹
cloudfront.json                                     278.0 ± 0%   278.0 ± 0%       ~ (p=1.000 n=10) ¹
cloudwatch-events.json                              215.0 ± 0%   215.0 ± 0%       ~ (p=1.000 n=10) ¹
cloudwatch-logs.json                                208.0 ± 0%   208.0 ± 0%       ~ (p=1.000 n=10) ¹
custom.json                                         163.0 ± 0%   163.0 ± 0%       ~ (p=1.000 n=10) ¹
dynamodb.json                                       579.0 ± 0%   579.0 ± 0%       ~ (p=1.000 n=10) ¹
empty.json                                          154.0 ± 0%   154.0 ± 0%       ~ (p=1.000 n=10) ¹
eventbridge-custom.json                             258.0 ± 0%   258.0 ± 0%       ~ (p=1.000 n=10) ¹
eventbridge-no-bus.json                             249.0 ± 0%   249.0 ± 0%       ~ (p=1.000 n=10) ¹
eventbridge-no-timestamp.json                       249.0 ± 0%   249.0 ± 0%       ~ (p=1.000 n=10) ¹
eventbridgesns.json                                 315.0 ± 0%   315.0 ± 0%       ~ (p=1.000 n=10) ¹
eventbridgesqs.json                                 355.0 ± 0%   355.0 ± 0%       ~ (p=1.000 n=10) ¹
http-api.json                                       421.0 ± 0%   421.0 ± 0%       ~ (p=1.000 n=10) ¹
kinesis-batch.json                                  380.0 ± 0%   380.0 ± 0%       ~ (p=1.000 n=10) ¹
kinesis.json                                        276.0 ± 0%   276.0 ± 0%       ~ (p=1.000 n=10) ¹
s3.json                                             348.0 ± 0%   348.0 ± 0%       ~ (p=1.000 n=10) ¹
sns-batch.json                                      462.0 ± 0%   462.0 ± 0%       ~ (p=1.000 n=10) ¹
sns.json                                            333.0 ± 0%   333.0 ± 0%       ~ (p=1.000 n=10) ¹
snssqs.json                                         457.0 ± 0%   457.0 ± 0%       ~ (p=1.000 n=10) ¹
snssqs_no_dd_context.json                           417.0 ± 0%   417.0 ± 0%       ~ (p=1.000 n=10) ¹
sqs-aws-header.json                                 273.0 ± 0%   273.0 ± 0%       ~ (p=1.000 n=10) ¹
sqs-batch.json                                      497.0 ± 0%   497.0 ± 0%       ~ (p=1.000 n=10) ¹
sqs.json                                            348.0 ± 0%   348.0 ± 0%       ~ (p=1.000 n=10) ¹
sqs_no_dd_context.json                              334.0 ± 0%   334.0 ± 0%       ~ (p=1.000 n=10) ¹
stepfunction.json                                   223.0 ± 0%   223.0 ± 0%       ~ (p=1.000 n=10) ¹
geomean                                             356.8        356.8       +0.00%
¹ all samples are equal

@jeremy-hanna jeremy-hanna removed their request for review January 16, 2025 16:47
@StephenWakely
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Jan 16, 2025

Devflow running: /merge

View all feedbacks in Devflow UI.


2025-01-16 17:37:42 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 35m.


2025-01-16 18:12:06 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit 96d253e into main Jan 16, 2025
343 checks passed
@dd-mergequeue dd-mergequeue bot deleted the stephen/zstd_logs branch January 16, 2025 18:12
@github-actions github-actions bot added this to the 7.63.0 milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/system-probe long review PR is complex, plan time to review it qa/rc-required Only for a PR that requires validation on the Release Candidate team/agent-processing-and-routing team/opentelemetry OpenTelemetry team
Projects
None yet
Development

Successfully merging this pull request may close these issues.