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

[ASCII-2410] remove usage of global tagger #30214

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

GustavoCaso
Copy link
Member

What does this PR do?

Motivation

Describe how to test/QA your changes

Possible Drawbacks / Trade-offs

Additional Notes

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Oct 17, 2024

Test changes on VM

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

inv create-vm --pipeline-id=46902974 --os-family=ubuntu

Note: This applies to commit 025f898

@GustavoCaso GustavoCaso force-pushed the remove-usage-of-globaltagger branch 2 times, most recently from 1d7f517 to 100ed74 Compare October 17, 2024 13:00
Copy link

cit-pr-commenter bot commented Oct 17, 2024

Regression Detector

@GustavoCaso GustavoCaso changed the title remove usage of global tagger from dogstasd replay component remove usage of global tagger Oct 17, 2024
@GustavoCaso GustavoCaso changed the title remove usage of global tagger [ASCII-2410] remove usage of global tagger Oct 17, 2024
Copy link

cit-pr-commenter bot commented Oct 18, 2024

Go Package Import Differences

Baseline: b77289c
Comparison: d30fc18

binaryosarchchange
agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
iot-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
iot-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
heroku-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
cluster-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
cluster-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
cluster-agent-cloudfoundrylinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
cluster-agent-cloudfoundrylinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
dogstatsdlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
dogstatsdlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
security-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
security-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
trace-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
trace-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
trace-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
trace-agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
trace-agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl
heroku-trace-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/comp/core/tagger/noopimpl

Copy link
Contributor

Serverless Benchmark Results

BenchmarkStartEndInvocation comparison between 32f5a2e and 9097e0c.

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                            83.11µ ± 4%   87.18µ ± 2%  +4.89% (p=0.005 n=10)
api-gateway-kong-appsec.json                       66.54µ ± 2%   68.82µ ± 3%  +3.42% (p=0.001 n=10)
api-gateway-kong.json                              64.39µ ± 1%   67.40µ ± 2%  +4.66% (p=0.000 n=10)
api-gateway-non-proxy-async.json                   101.5µ ± 2%   107.5µ ± 1%  +5.87% (p=0.000 n=10)
api-gateway-non-proxy.json                         101.7µ ± 1%   107.2µ ± 2%  +5.42% (p=0.000 n=10)
api-gateway-websocket-connect.json                 68.49µ ± 2%   71.54µ ± 2%  +4.45% (p=0.000 n=10)
api-gateway-websocket-default.json                 61.38µ ± 1%   64.67µ ± 2%  +5.36% (p=0.000 n=10)
api-gateway-websocket-disconnect.json              61.15µ ± 2%   63.85µ ± 1%  +4.42% (p=0.000 n=10)
api-gateway.json                                   112.6µ ± 1%   116.9µ ± 1%  +3.76% (p=0.000 n=10)
application-load-balancer.json                     62.62µ ± 1%   63.92µ ± 2%  +2.08% (p=0.000 n=10)
cloudfront.json                                    46.20µ ± 1%   47.89µ ± 1%  +3.66% (p=0.000 n=10)
cloudwatch-events.json                             37.32µ ± 2%   38.35µ ± 2%  +2.75% (p=0.007 n=10)
cloudwatch-logs.json                               64.44µ ± 2%   66.23µ ± 3%  +2.79% (p=0.000 n=10)
custom.json                                        30.74µ ± 1%   31.08µ ± 1%  +1.09% (p=0.019 n=10)
dynamodb.json                                      92.13µ ± 2%   95.06µ ± 4%  +3.17% (p=0.002 n=10)
empty.json                                         28.82µ ± 2%   29.26µ ± 1%  +1.50% (p=0.029 n=10)
eventbridge-custom.json                            47.12µ ± 1%   48.17µ ± 1%  +2.22% (p=0.002 n=10)
eventbridge-no-bus.json                            46.28µ ± 1%   47.26µ ± 1%  +2.12% (p=0.000 n=10)
eventbridge-no-timestamp.json                      45.72µ ± 2%   46.88µ ± 1%  +2.54% (p=0.001 n=10)
eventbridgesns.json                                62.35µ ± 2%   65.08µ ± 1%  +4.37% (p=0.000 n=10)
eventbridgesqs.json                                70.43µ ± 1%   72.80µ ± 2%  +3.37% (p=0.000 n=10)
http-api.json                                      70.72µ ± 1%   73.54µ ± 3%  +3.98% (p=0.000 n=10)
kinesis-batch.json                                 69.81µ ± 2%   71.30µ ± 2%  +2.13% (p=0.000 n=10)
kinesis.json                                       53.70µ ± 2%   54.78µ ± 2%  +2.01% (p=0.007 n=10)
s3.json                                            59.66µ ± 1%   61.01µ ± 1%  +2.26% (p=0.000 n=10)
sns-batch.json                                     90.75µ ± 1%   94.84µ ± 2%  +4.51% (p=0.000 n=10)
sns.json                                           68.58µ ± 2%   69.57µ ± 3%       ~ (p=0.143 n=10)
snssqs.json                                        116.9µ ± 1%   122.7µ ± 4%  +4.96% (p=0.000 n=10)
snssqs_no_dd_context.json                          105.2µ ± 2%   108.6µ ± 1%  +3.20% (p=0.003 n=10)
sqs-aws-header.json                                59.70µ ± 4%   61.83µ ± 3%  +3.58% (p=0.015 n=10)
sqs-batch.json                                     95.14µ ± 3%   99.58µ ± 2%  +4.67% (p=0.000 n=10)
sqs.json                                           73.22µ ± 1%   75.63µ ± 2%  +3.29% (p=0.000 n=10)
sqs_no_dd_context.json                             68.19µ ± 2%   70.17µ ± 3%  +2.90% (p=0.011 n=10)
stepfunction.json                                  45.53µ ± 4%   47.97µ ± 2%  +5.37% (p=0.000 n=10)
geomean                                            64.90µ        67.16µ       +3.47%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │          B/op          │     B/op      vs base               │
api-gateway-appsec.json                           37.33Ki ± 0%   37.27Ki ± 0%  -0.16% (p=0.000 n=10)
api-gateway-kong-appsec.json                      26.94Ki ± 0%   26.93Ki ± 0%       ~ (p=0.517 n=10)
api-gateway-kong.json                             24.43Ki ± 0%   24.43Ki ± 0%       ~ (p=0.362 n=10)
api-gateway-non-proxy-async.json                  48.13Ki ± 0%   48.08Ki ± 0%  -0.10% (p=0.000 n=10)
api-gateway-non-proxy.json                        47.35Ki ± 0%   47.30Ki ± 0%  -0.11% (p=0.000 n=10)
api-gateway-websocket-connect.json                25.53Ki ± 0%   25.50Ki ± 0%  -0.14% (p=0.000 n=10)
api-gateway-websocket-default.json                21.44Ki ± 0%   21.41Ki ± 0%  -0.12% (p=0.000 n=10)
api-gateway-websocket-disconnect.json             21.21Ki ± 0%   21.19Ki ± 0%  -0.11% (p=0.000 n=10)
api-gateway.json                                  49.59Ki ± 0%   49.60Ki ± 0%       ~ (p=0.644 n=10)
application-load-balancer.json                    23.31Ki ± 0%   22.37Ki ± 0%  -4.02% (p=0.000 n=10)
cloudfront.json                                   17.67Ki ± 0%   17.65Ki ± 0%  -0.11% (p=0.018 n=10)
cloudwatch-events.json                            11.73Ki ± 0%   11.70Ki ± 0%  -0.28% (p=0.000 n=10)
cloudwatch-logs.json                              53.37Ki ± 0%   53.38Ki ± 0%       ~ (p=0.643 n=10)
custom.json                                       9.748Ki ± 0%   9.731Ki ± 0%  -0.17% (p=0.001 n=10)
dynamodb.json                                     40.81Ki ± 0%   40.78Ki ± 0%  -0.07% (p=0.024 n=10)
empty.json                                        9.281Ki ± 0%   9.286Ki ± 0%       ~ (p=0.985 n=10)
eventbridge-custom.json                           15.02Ki ± 0%   15.01Ki ± 0%       ~ (p=0.196 n=10)
eventbridge-no-bus.json                           14.00Ki ± 0%   14.01Ki ± 0%       ~ (p=0.225 n=10)
eventbridge-no-timestamp.json                     14.02Ki ± 0%   14.01Ki ± 0%       ~ (p=0.542 n=10)
eventbridgesns.json                               20.95Ki ± 0%   20.93Ki ± 0%       ~ (p=0.085 n=10)
eventbridgesqs.json                               25.16Ki ± 0%   25.11Ki ± 0%       ~ (p=0.055 n=10)
http-api.json                                     23.90Ki ± 0%   23.88Ki ± 0%       ~ (p=0.171 n=10)
kinesis-batch.json                                27.15Ki ± 0%   27.11Ki ± 0%       ~ (p=0.448 n=10)
kinesis.json                                      17.88Ki ± 0%   17.88Ki ± 0%       ~ (p=0.470 n=10)
s3.json                                           20.48Ki ± 0%   20.47Ki ± 0%       ~ (p=0.110 n=10)
sns-batch.json                                    39.94Ki ± 0%   39.97Ki ± 0%       ~ (p=0.404 n=10)
sns.json                                          25.12Ki ± 1%   25.18Ki ± 1%       ~ (p=0.739 n=10)
snssqs.json                                       53.84Ki ± 0%   53.89Ki ± 0%       ~ (p=0.050 n=10)
snssqs_no_dd_context.json                         47.61Ki ± 0%   47.57Ki ± 0%       ~ (p=0.315 n=10)
sqs-aws-header.json                               19.43Ki ± 1%   19.52Ki ± 0%       ~ (p=0.190 n=10)
sqs-batch.json                                    42.21Ki ± 1%   42.35Ki ± 1%       ~ (p=0.190 n=10)
sqs.json                                          26.21Ki ± 1%   26.23Ki ± 1%       ~ (p=0.436 n=10)
sqs_no_dd_context.json                            21.83Ki ± 1%   21.86Ki ± 1%       ~ (p=0.079 n=10)
stepfunction.json                                 14.26Ki ± 1%   14.29Ki ± 1%       ~ (p=0.796 n=10)
geomean                                           24.60Ki        24.56Ki       -0.14%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │       allocs/op        │ allocs/op   vs base                 │
api-gateway-appsec.json                             629.0 ± 0%   629.5 ± 0%       ~ (p=0.650 n=10)
api-gateway-kong-appsec.json                        488.0 ± 0%   488.0 ± 0%       ~ (p=1.000 n=10) ¹
api-gateway-kong.json                               466.0 ± 0%   466.0 ± 0%       ~ (p=1.000 n=10)
api-gateway-non-proxy-async.json                    725.5 ± 0%   725.5 ± 0%       ~ (p=1.000 n=10)
api-gateway-non-proxy.json                          716.0 ± 0%   716.0 ± 0%       ~ (p=1.000 n=10)
api-gateway-websocket-connect.json                  453.0 ± 0%   453.0 ± 0%       ~ (p=1.000 n=10)
api-gateway-websocket-default.json                  379.0 ± 0%   379.0 ± 0%       ~ (p=0.211 n=10)
api-gateway-websocket-disconnect.json               369.0 ± 0%   370.0 ± 0%       ~ (p=0.057 n=10)
api-gateway.json                                    790.5 ± 0%   791.0 ± 0%       ~ (p=0.650 n=10)
application-load-balancer.json                      353.0 ± 0%   352.0 ± 0%  -0.28% (p=0.000 n=10)
cloudfront.json                                     284.0 ± 0%   284.0 ± 0%       ~ (p=1.000 n=10)
cloudwatch-events.json                              220.0 ± 0%   220.0 ± 0%       ~ (p=1.000 n=10) ¹
cloudwatch-logs.json                                215.0 ± 0%   215.0 ± 0%       ~ (p=1.000 n=10)
custom.json                                         168.0 ± 0%   168.0 ± 0%       ~ (p=1.000 n=10) ¹
dynamodb.json                                       589.0 ± 0%   589.0 ± 0%       ~ (p=1.000 n=10)
empty.json                                          159.0 ± 1%   159.0 ± 1%       ~ (p=1.000 n=10)
eventbridge-custom.json                             266.0 ± 0%   266.0 ± 0%       ~ (p=1.000 n=10)
eventbridge-no-bus.json                             258.0 ± 0%   258.0 ± 0%       ~ (p=0.628 n=10)
eventbridge-no-timestamp.json                       258.0 ± 0%   258.0 ± 0%       ~ (p=1.000 n=10)
eventbridgesns.json                                 326.0 ± 0%   326.0 ± 0%       ~ (p=0.628 n=10)
eventbridgesqs.json                                 367.0 ± 0%   366.5 ± 0%       ~ (p=0.650 n=10)
http-api.json                                       434.0 ± 0%   434.0 ± 0%       ~ (p=0.253 n=10)
kinesis-batch.json                                  392.0 ± 0%   392.0 ± 0%       ~ (p=0.778 n=10)
kinesis.json                                        285.5 ± 0%   286.0 ± 0%       ~ (p=0.584 n=10)
s3.json                                             359.0 ± 0%   359.0 ± 0%       ~ (p=0.787 n=10)
sns-batch.json                                      479.0 ± 0%   479.0 ± 0%       ~ (p=0.460 n=10)
sns.json                                            346.0 ± 1%   347.0 ± 1%       ~ (p=0.670 n=10)
snssqs.json                                         477.5 ± 0%   479.0 ± 0%  +0.31% (p=0.003 n=10)
snssqs_no_dd_context.json                           437.0 ± 0%   437.0 ± 0%       ~ (p=0.293 n=10)
sqs-aws-header.json                                 286.5 ± 1%   287.5 ± 1%       ~ (p=0.206 n=10)
sqs-batch.json                                      515.0 ± 1%   517.0 ± 1%       ~ (p=0.218 n=10)
sqs.json                                            364.0 ± 1%   364.0 ± 1%       ~ (p=0.490 n=10)
sqs_no_dd_context.json                              348.0 ± 1%   349.0 ± 1%       ~ (p=0.072 n=10)
stepfunction.json                                   237.0 ± 1%   238.0 ± 1%       ~ (p=0.872 n=10)
geomean                                             366.9        367.2       +0.07%
¹ all samples are equal

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

Successfully merging this pull request may close these issues.

1 participant