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 15 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

Regression Detector Results

Run ID: ac0e6f9f-bcc9-4bb4-83c3-edd3a6ad7863 Metrics dashboard Target profiles

Baseline: 40c637a
Comparison: dc1928e

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

No significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
pycheck_lots_of_tags % cpu utilization +1.82 [-0.71, +4.34] 1 Logs
tcp_syslog_to_blackhole ingress throughput +0.41 [+0.35, +0.46] 1 Logs
uds_dogstatsd_to_api_cpu % cpu utilization +0.36 [-0.35, +1.08] 1 Logs
file_tree memory utilization +0.22 [+0.07, +0.37] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.11 [-0.15, +0.36] 1 Logs
otel_to_otel_logs ingress throughput +0.05 [-0.76, +0.85] 1 Logs
file_to_blackhole_300ms_latency egress throughput +0.00 [-0.18, +0.18] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.00 [-0.10, +0.10] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.01, +0.01] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.02 [-0.36, +0.31] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.05 [-0.27, +0.17] 1 Logs
idle_all_features memory utilization -0.06 [-0.18, +0.05] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency egress throughput -0.44 [-0.93, +0.06] 1 Logs
idle memory utilization -0.66 [-0.70, -0.61] 1 Logs bounds checks dashboard
basic_py_check % cpu utilization -1.46 [-4.17, +1.24] 1 Logs

Bounds Checks

perf experiment bounds_check_name replicates_passed
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_300ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
idle memory_usage 10/10
idle_all_features memory_usage 10/10

Explanation

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

@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: 5037933

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 672cadc and 7b22f01.

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                            87.98µ ± 7%   86.85µ ± 8%       ~ (p=0.529 n=10)
api-gateway-kong-appsec.json                       66.98µ ± 1%   65.70µ ± 1%  -1.92% (p=0.000 n=10)
api-gateway-kong.json                              64.80µ ± 2%   64.09µ ± 2%       ~ (p=0.247 n=10)
api-gateway-non-proxy-async.json                   105.0µ ± 1%   103.2µ ± 1%  -1.75% (p=0.002 n=10)
api-gateway-non-proxy.json                         106.5µ ± 1%   104.8µ ± 3%  -1.62% (p=0.000 n=10)
api-gateway-websocket-connect.json                 70.73µ ± 1%   70.23µ ± 2%       ~ (p=0.315 n=10)
api-gateway-websocket-default.json                 63.03µ ± 1%   63.01µ ± 2%       ~ (p=1.000 n=10)
api-gateway-websocket-disconnect.json              64.39µ ± 1%   63.14µ ± 1%  -1.94% (p=0.004 n=10)
api-gateway.json                                   117.1µ ± 1%   115.3µ ± 1%  -1.54% (p=0.004 n=10)
application-load-balancer.json                     65.19µ ± 1%   65.23µ ± 3%       ~ (p=0.631 n=10)
cloudfront.json                                    47.48µ ± 3%   47.16µ ± 2%       ~ (p=0.912 n=10)
cloudwatch-events.json                             38.11µ ± 2%   37.05µ ± 2%  -2.78% (p=0.000 n=10)
cloudwatch-logs.json                               65.29µ ± 1%   64.87µ ± 2%       ~ (p=0.684 n=10)
custom.json                                        31.32µ ± 1%   31.08µ ± 2%       ~ (p=0.123 n=10)
dynamodb.json                                      93.93µ ± 2%   93.88µ ± 1%       ~ (p=0.971 n=10)
empty.json                                         29.94µ ± 1%   29.04µ ± 1%  -3.00% (p=0.000 n=10)
eventbridge-custom.json                            48.66µ ± 1%   47.90µ ± 2%  -1.56% (p=0.009 n=10)
eventbridge-no-bus.json                            47.35µ ± 3%   47.58µ ± 2%       ~ (p=0.853 n=10)
eventbridge-no-timestamp.json                      47.01µ ± 2%   46.94µ ± 1%       ~ (p=0.631 n=10)
eventbridgesns.json                                64.70µ ± 2%   64.60µ ± 1%       ~ (p=0.971 n=10)
eventbridgesqs.json                                73.01µ ± 2%   72.84µ ± 1%       ~ (p=0.280 n=10)
http-api.json                                      74.10µ ± 2%   71.79µ ± 2%  -3.12% (p=0.000 n=10)
kinesis-batch.json                                 72.05µ ± 1%   70.85µ ± 1%  -1.66% (p=0.009 n=10)
kinesis.json                                       55.33µ ± 0%   54.23µ ± 1%  -1.99% (p=0.000 n=10)
s3.json                                            60.97µ ± 1%   60.60µ ± 2%       ~ (p=0.063 n=10)
sns-batch.json                                     93.99µ ± 2%   94.88µ ± 2%       ~ (p=0.393 n=10)
sns.json                                           70.18µ ± 1%   69.67µ ± 2%       ~ (p=0.190 n=10)
snssqs.json                                        120.4µ ± 1%   119.2µ ± 3%       ~ (p=0.143 n=10)
snssqs_no_dd_context.json                          108.4µ ± 1%   108.2µ ± 1%       ~ (p=0.404 n=10)
sqs-aws-header.json                                61.28µ ± 2%   60.47µ ± 1%       ~ (p=0.075 n=10)
sqs-batch.json                                     98.56µ ± 2%   98.72µ ± 2%       ~ (p=0.579 n=10)
sqs.json                                           77.39µ ± 4%   75.14µ ± 2%       ~ (p=0.052 n=10)
sqs_no_dd_context.json                             70.89µ ± 4%   69.57µ ± 1%  -1.86% (p=0.035 n=10)
stepfunction.json                                  47.79µ ± 4%   49.40µ ± 3%       ~ (p=0.063 n=10)
geomean                                            67.01µ        66.36µ       -0.96%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │          B/op          │     B/op      vs base               │
api-gateway-appsec.json                           37.33Ki ± 0%   37.33Ki ± 0%       ~ (p=0.435 n=10)
api-gateway-kong-appsec.json                      26.93Ki ± 0%   26.93Ki ± 0%       ~ (p=0.469 n=10)
api-gateway-kong.json                             24.43Ki ± 0%   24.43Ki ± 0%       ~ (p=0.926 n=10)
api-gateway-non-proxy-async.json                  48.13Ki ± 0%   48.13Ki ± 0%       ~ (p=0.956 n=10)
api-gateway-non-proxy.json                        47.35Ki ± 0%   47.34Ki ± 0%       ~ (p=0.305 n=10)
api-gateway-websocket-connect.json                25.53Ki ± 0%   25.53Ki ± 0%       ~ (p=0.697 n=10)
api-gateway-websocket-default.json                21.43Ki ± 0%   21.44Ki ± 0%       ~ (p=0.838 n=10)
api-gateway-websocket-disconnect.json             21.22Ki ± 0%   21.22Ki ± 0%       ~ (p=0.725 n=10)
api-gateway.json                                  49.61Ki ± 0%   49.59Ki ± 0%       ~ (p=0.079 n=10)
application-load-balancer.json                    23.32Ki ± 0%   23.32Ki ± 0%       ~ (p=0.099 n=10)
cloudfront.json                                   17.68Ki ± 0%   17.67Ki ± 0%       ~ (p=0.127 n=10)
cloudwatch-events.json                            11.73Ki ± 0%   11.72Ki ± 0%  -0.11% (p=0.003 n=10)
cloudwatch-logs.json                              53.38Ki ± 0%   53.38Ki ± 0%       ~ (p=0.271 n=10)
custom.json                                       9.753Ki ± 0%   9.745Ki ± 0%       ~ (p=0.447 n=10)
dynamodb.json                                     40.82Ki ± 0%   40.79Ki ± 0%  -0.06% (p=0.020 n=10)
empty.json                                        9.313Ki ± 0%   9.290Ki ± 0%  -0.25% (p=0.024 n=10)
eventbridge-custom.json                           15.02Ki ± 0%   15.01Ki ± 0%       ~ (p=0.838 n=10)
eventbridge-no-bus.json                           13.99Ki ± 0%   14.01Ki ± 0%       ~ (p=0.101 n=10)
eventbridge-no-timestamp.json                     14.00Ki ± 1%   14.03Ki ± 0%       ~ (p=0.078 n=10)
eventbridgesns.json                               20.96Ki ± 0%   20.99Ki ± 0%       ~ (p=0.105 n=10)
eventbridgesqs.json                               25.19Ki ± 0%   25.19Ki ± 0%       ~ (p=0.684 n=10)
http-api.json                                     23.97Ki ± 0%   23.94Ki ± 0%  -0.15% (p=0.017 n=10)
kinesis-batch.json                                27.14Ki ± 0%   27.08Ki ± 0%       ~ (p=0.217 n=10)
kinesis.json                                      17.91Ki ± 0%   17.88Ki ± 0%       ~ (p=0.165 n=10)
s3.json                                           20.49Ki ± 1%   20.51Ki ± 0%       ~ (p=0.725 n=10)
sns-batch.json                                    40.00Ki ± 0%   39.96Ki ± 0%       ~ (p=0.796 n=10)
sns.json                                          25.16Ki ± 0%   25.14Ki ± 0%       ~ (p=0.425 n=10)
snssqs.json                                       53.94Ki ± 0%   53.88Ki ± 0%       ~ (p=0.247 n=10)
snssqs_no_dd_context.json                         47.62Ki ± 0%   47.63Ki ± 0%       ~ (p=0.853 n=10)
sqs-aws-header.json                               19.48Ki ± 0%   19.37Ki ± 1%       ~ (p=0.159 n=10)
sqs-batch.json                                    42.22Ki ± 1%   42.33Ki ± 1%       ~ (p=0.481 n=10)
sqs.json                                          26.31Ki ± 1%   26.23Ki ± 0%       ~ (p=0.315 n=10)
sqs_no_dd_context.json                            21.95Ki ± 1%   21.90Ki ± 1%       ~ (p=0.579 n=10)
stepfunction.json                                 14.28Ki ± 1%   14.33Ki ± 0%       ~ (p=0.325 n=10)
geomean                                           24.62Ki        24.61Ki       -0.04%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │       allocs/op        │ allocs/op   vs base                 │
api-gateway-appsec.json                             629.5 ± 0%   629.5 ± 0%       ~ (p=1.000 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.0 ± 0%       ~ (p=0.650 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=1.000 n=10)
api-gateway-websocket-disconnect.json               370.0 ± 0%   370.0 ± 0%       ~ (p=0.474 n=10)
api-gateway.json                                    791.0 ± 0%   791.0 ± 0%       ~ (p=0.303 n=10)
application-load-balancer.json                      353.0 ± 0%   353.0 ± 0%       ~ (p=1.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 ± 1%   168.0 ± 0%       ~ (p=0.474 n=10)
dynamodb.json                                       589.0 ± 0%   589.0 ± 0%       ~ (p=0.635 n=10)
empty.json                                          160.0 ± 1%   159.0 ± 1%       ~ (p=0.179 n=10)
eventbridge-custom.json                             266.0 ± 0%   266.0 ± 0%       ~ (p=0.837 n=10)
eventbridge-no-bus.json                             257.0 ± 0%   258.0 ± 0%       ~ (p=0.170 n=10)
eventbridge-no-timestamp.json                       257.0 ± 0%   258.0 ± 0%  +0.39% (p=0.013 n=10)
eventbridgesns.json                                 325.5 ± 0%   326.0 ± 0%       ~ (p=0.113 n=10)
eventbridgesqs.json                                 367.0 ± 0%   367.0 ± 0%       ~ (p=0.559 n=10)
http-api.json                                       435.0 ± 0%   434.0 ± 0%  -0.23% (p=0.007 n=10)
kinesis-batch.json                                  392.0 ± 0%   391.0 ± 0%       ~ (p=0.185 n=10)
kinesis.json                                        286.0 ± 0%   286.0 ± 0%       ~ (p=0.261 n=10)
s3.json                                             359.0 ± 1%   360.0 ± 0%       ~ (p=1.000 n=10)
sns-batch.json                                      480.0 ± 0%   479.0 ± 0%       ~ (p=0.877 n=10)
sns.json                                            346.5 ± 0%   346.0 ± 0%       ~ (p=0.663 n=10)
snssqs.json                                         479.0 ± 0%   478.0 ± 0%       ~ (p=0.155 n=10)
snssqs_no_dd_context.json                           437.0 ± 0%   437.5 ± 0%       ~ (p=0.729 n=10)
sqs-aws-header.json                                 287.0 ± 0%   285.0 ± 1%       ~ (p=0.076 n=10)
sqs-batch.json                                      515.0 ± 1%   516.5 ± 1%       ~ (p=0.469 n=10)
sqs.json                                            365.0 ± 1%   364.0 ± 1%       ~ (p=0.265 n=10)
sqs_no_dd_context.json                              350.5 ± 1%   350.0 ± 1%       ~ (p=0.571 n=10)
stepfunction.json                                   237.5 ± 1%   238.0 ± 0%       ~ (p=0.485 n=10)
geomean                                             367.2        367.1       -0.03%
¹ 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