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

[SVLS-6367] Update Step Function Trace Context #34264

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

avedmala
Copy link
Contributor

@avedmala avedmala commented Feb 20, 2025

What does this PR do?

Updates the creation of trace context from a Step Function execution's context object to...

  1. Make use of State.RetryCount and Execution.RedriveCount for inferable parent ID generation in a backwards compatible manner (related to Update Step Functions Parent ID Generation datadog-lambda-python#559)
  2. Support the new trace context propagation for multi-level trace merging. These are cases where we're receiving a Step Function event but that Step Function has another parent service which can be either a Lambda or another Step Function (related Explicit trace ID propagation for SFN w/o Hashing datadog-lambda-python#537)

Motivation

Bring feature parity from Node and Python layers to the Universal runtimes

  1. Using these new values for parent ID generation will prevent collisions with "retry spans" which are Step Function spans that parent a Lambda. Without using the State.RetryCount the other values we use for the hash are identical across tries
  2. Multi-level trace merging is the future, it lets us merge an arbitrary number of Lambda and Step Function traces. The previous approach only lets us do a max depth of 2 services, losing the context after that. We're able to always preserve some about the top-most service or the root service to keep the Trace ID intact while using the context object to infer the parent ID.

Two things worth looking at for context:

Describe how you validated your changes

WIP - Will build the extension and tested it manually with a Step Function in our sandbox account

Possible Drawbacks / Trade-offs

Additional Notes

@github-actions github-actions bot added the medium review PR review might take time label Feb 20, 2025
@avedmala avedmala self-assigned this Feb 20, 2025
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 20, 2025

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=56943243 --os-family=ubuntu

Note: This applies to commit 12c3cbd

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 20, 2025

Uncompressed package size comparison

Comparison with ancestor 4eb26be6e00997517dc6a6393199396ad23dcf7e

Diff per package
package diff status size ancestor threshold
datadog-agent-x86_64-rpm 0.00MB 827.66MB 827.66MB 0.50MB
datadog-agent-x86_64-suse 0.00MB 827.66MB 827.66MB 0.50MB
datadog-agent-aarch64-rpm 0.00MB 818.62MB 818.62MB 0.50MB
datadog-iot-agent-x86_64-rpm 0.00MB 62.09MB 62.09MB 0.50MB
datadog-iot-agent-x86_64-suse 0.00MB 62.09MB 62.09MB 0.50MB
datadog-iot-agent-aarch64-rpm 0.00MB 59.33MB 59.33MB 0.50MB
datadog-dogstatsd-x86_64-rpm 0.00MB 39.50MB 39.50MB 0.50MB
datadog-dogstatsd-x86_64-suse 0.00MB 39.50MB 39.50MB 0.50MB
datadog-agent-amd64-deb 0.00MB 817.87MB 817.87MB 0.50MB
datadog-agent-arm64-deb 0.00MB 808.84MB 808.84MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 39.42MB 39.42MB 0.50MB
datadog-dogstatsd-arm64-deb 0.00MB 37.96MB 37.96MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 443.28MB 443.28MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 62.02MB 62.02MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 59.27MB 59.27MB 0.50MB

Decision

✅ Passed

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Feb 20, 2025

Static quality checks ✅

Please find below the results from static quality gates

Successful checks

Info

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_deb_amd64 791.7MiB 801.8MiB 192.58MiB 202.62MiB
static_quality_gate_agent_deb_arm64 783.16MiB 793.14MiB 174.54MiB 184.51MiB
static_quality_gate_agent_rpm_amd64 791.8MiB 801.79MiB 195.02MiB 205.03MiB
static_quality_gate_agent_rpm_arm64 783.08MiB 793.09MiB 176.38MiB 186.44MiB
static_quality_gate_agent_suse_amd64 791.76MiB 801.81MiB 195.02MiB 205.03MiB
static_quality_gate_agent_suse_arm64 783.12MiB 793.14MiB 176.38MiB 186.44MiB
static_quality_gate_dogstatsd_deb_amd64 37.67MiB 47.67MiB 9.78MiB 19.78MiB
static_quality_gate_dogstatsd_deb_arm64 36.27MiB 46.27MiB 8.48MiB 18.49MiB
static_quality_gate_dogstatsd_rpm_amd64 37.67MiB 47.67MiB 9.79MiB 19.79MiB
static_quality_gate_dogstatsd_suse_amd64 37.67MiB 47.67MiB 9.79MiB 19.79MiB
static_quality_gate_iot_agent_deb_amd64 59.23MiB 69.0MiB 14.89MiB 24.8MiB
static_quality_gate_iot_agent_deb_arm64 56.6MiB 66.4MiB 12.83MiB 22.8MiB
static_quality_gate_iot_agent_rpm_amd64 59.23MiB 69.0MiB 14.9MiB 24.8MiB
static_quality_gate_iot_agent_rpm_arm64 56.6MiB 66.4MiB 12.85MiB 22.8MiB
static_quality_gate_iot_agent_suse_amd64 59.23MiB 69.0MiB 14.9MiB 24.8MiB
static_quality_gate_docker_agent_amd64 876.12MiB 886.12MiB 294.2MiB 304.21MiB
static_quality_gate_docker_agent_arm64 890.78MiB 900.79MiB 280.46MiB 290.47MiB
static_quality_gate_docker_agent_jmx_amd64 1.05GiB 1.06GiB 369.32MiB 379.33MiB
static_quality_gate_docker_agent_jmx_arm64 1.05GiB 1.06GiB 351.56MiB 361.55MiB
static_quality_gate_docker_dogstatsd_amd64 45.81MiB 55.78MiB 17.28MiB 27.28MiB
static_quality_gate_docker_dogstatsd_arm64 44.45MiB 54.45MiB 16.16MiB 26.16MiB
static_quality_gate_docker_cluster_agent_amd64 264.95MiB 274.78MiB 106.34MiB 116.28MiB
static_quality_gate_docker_cluster_agent_arm64 280.91MiB 290.82MiB 101.18MiB 111.12MiB

Copy link

cit-pr-commenter bot commented Feb 20, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: f2d16d29-58ca-4a58-86fc-bae650587e0c

Baseline: 4eb26be
Comparison: 12c3cbd
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
uds_dogstatsd_to_api_cpu % cpu utilization +2.94 [+2.04, +3.84] 1 Logs
file_tree memory utilization +0.25 [+0.19, +0.31] 1 Logs
file_to_blackhole_1000ms_latency_linear_load egress throughput +0.20 [-0.27, +0.67] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.02 [-0.75, +0.79] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput +0.02 [-0.79, +0.82] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.01 [-0.29, +0.31] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput +0.00 [-0.82, +0.83] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.03, +0.03] 1 Logs
file_to_blackhole_300ms_latency egress throughput -0.00 [-0.63, +0.63] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.01 [-0.84, +0.83] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.01 [-0.62, +0.60] 1 Logs
quality_gate_idle_all_features memory utilization -0.03 [-0.08, +0.02] 1 Logs bounds checks dashboard
quality_gate_idle memory utilization -0.06 [-0.11, -0.02] 1 Logs bounds checks dashboard
file_to_blackhole_500ms_latency egress throughput -0.11 [-0.89, +0.68] 1 Logs
quality_gate_logs % cpu utilization -0.30 [-3.15, +2.55] 1 Logs
tcp_syslog_to_blackhole ingress throughput -0.81 [-0.87, -0.75] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_0ms_latency_http1 lost_bytes 10/10
file_to_blackhole_0ms_latency_http1 memory_usage 10/10
file_to_blackhole_0ms_latency_http2 lost_bytes 10/10
file_to_blackhole_0ms_latency_http2 memory_usage 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency_linear_load memory_usage 10/10
file_to_blackhole_100ms_latency lost_bytes 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_300ms_latency lost_bytes 10/10
file_to_blackhole_300ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency lost_bytes 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
quality_gate_idle intake_connections 10/10 bounds checks dashboard
quality_gate_idle memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard
quality_gate_logs intake_connections 10/10
quality_gate_logs lost_bytes 10/10
quality_gate_logs memory_usage 10/10

Explanation

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

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

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".

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.

@github-actions github-actions bot added long review PR is complex, plan time to review it and removed medium review PR review might take time labels Feb 21, 2025
@avedmala avedmala added qa/done QA done before merge and regressions are covered by tests medium review PR review might take time and removed long review PR is complex, plan time to review it labels Feb 21, 2025
@github-actions github-actions bot added long review PR is complex, plan time to review it and removed medium review PR review might take time labels Feb 21, 2025
@avedmala
Copy link
Contributor Author

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on

@dd-devflow
Copy link

dd-devflow bot commented Feb 21, 2025

View all feedbacks in Devflow UI.
2025-02-21 21:58:25 UTC ℹ️ Start processing command /trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on


2025-02-21 21:59:07 UTC ℹ️ Gitlab pipeline started

Started pipeline #56646487

@avedmala avedmala marked this pull request as ready for review February 21, 2025 21:59
@avedmala avedmala requested review from a team as code owners February 21, 2025 21:59
if !lp.DetectLambdaLibrary() && lp.InferredSpansEnabled {
lp.GetInferredSpan().EnrichInferredSpanWithLambdaFunctionURLEvent(event)
}
lp.addTag(tagFunctionTriggerEventSource, functionURL)
lp.addTag(tagFunctionTriggerEventSourceArn, fmt.Sprintf("arn:aws:lambda:%v:%v:url:%v", region, accountID, functionName))
lp.addTags(trigger.GetTagsFromLambdaFunctionURLRequest(event))
}

func (lp *LifecycleProcessor) initFromStepFunctionPayload(event events.StepFunctionPayload) {
lp.requestHandler.event = event
Copy link
Contributor Author

@avedmala avedmala Feb 21, 2025

Choose a reason for hiding this comment

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

This value is never being used, the Event() interface{} in lifecycle.go was probably used by something before but not anymore so I removed both

}

// genericUnmarshal helps extract fields from _datadog.
func genericUnmarshal(data []byte, fieldMap map[string]interface{}) error {
Copy link
Contributor Author

@avedmala avedmala Feb 21, 2025

Choose a reason for hiding this comment

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

The custom unmarshaler is a consequence of how I defined the types above.

For example, the StepFunctionPayload should be at the same top-level as the RootExecutionID and ServerlessVersion for type NestedStepFunctionPayload if we want to follow how the JSON payloads look.

But, I liked this nested approach so that we can deal with this shared context object the exact same way in all cases in carriers.go. We can simply pass the whole payload into extractTraceContextFromStepFunctionContext() without needing to deal with each case separately.

Happy to change this but this way felt cleaner overall. The unmarshaler is also easy to edit if we want to include more arguments in the future.

}
ev = eventPayload
case trigger.LegacyLambdaRootStepFunctionEvent:
var event events.StepFunctionEvent[events.LambdaRootStepFunctionPayload]
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 felt a little repetitive to repeat the whole case for every "legacy lambda" case when in reality the only difference is the whole payload is wrapped in a "Payload": {...}

But the alternative was to parse out this Payload somewhere upstream so we treat legacy vs non-legacy the same here. We're basically doing the same thing because the extractors won't know the difference. I also didn't want to modify the value as it's being passed down

return nil, errorNoStepFunctionContextFound
}

tc, err := extractTraceContextFromStepFunctionContext(event.Payload)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Being able to do this is why I liked the custom unmarshal route, otherwise we'd need to be dynamic about types to create some shared handler or parse out each of the values for each function here and in extractTraceContextFromLambdaRootStepFunctionContext()

Copy link
Contributor

Serverless Benchmark Results

BenchmarkStartEndInvocation comparison between 4eb26be and 9bda87f.

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                           81.98µ ± 14%   82.48µ ± 8%       ~ (p=0.579 n=10)
api-gateway-kong-appsec.json                      63.35µ ±  1%   63.61µ ± 1%       ~ (p=0.190 n=10)
api-gateway-kong.json                             60.38µ ±  2%   60.73µ ± 1%       ~ (p=0.105 n=10)
api-gateway-non-proxy-async.json                  96.04µ ±  2%   97.27µ ± 1%  +1.28% (p=0.019 n=10)
api-gateway-non-proxy.json                        95.51µ ±  1%   96.34µ ± 1%       ~ (p=0.052 n=10)
api-gateway-websocket-connect.json                61.73µ ±  1%   63.28µ ± 2%  +2.52% (p=0.003 n=10)
api-gateway-websocket-default.json                54.47µ ±  1%   56.53µ ± 2%  +3.79% (p=0.000 n=10)
api-gateway-websocket-disconnect.json             55.78µ ±  2%   57.33µ ± 1%  +2.78% (p=0.000 n=10)
api-gateway.json                                  101.4µ ±  2%   109.3µ ± 1%  +7.76% (p=0.000 n=10)
application-load-balancer.json                    55.31µ ±  1%   58.51µ ± 1%  +5.79% (p=0.000 n=10)
cloudfront.json                                   41.46µ ±  3%   44.93µ ± 2%  +8.38% (p=0.000 n=10)
cloudwatch-events.json                            34.61µ ±  1%   37.21µ ± 2%  +7.51% (p=0.000 n=10)
cloudwatch-logs.json                              55.92µ ±  2%   58.16µ ± 3%  +4.00% (p=0.000 n=10)
custom.json                                       29.18µ ±  2%   31.08µ ± 3%  +6.54% (p=0.000 n=10)
dynamodb.json                                     80.39µ ±  1%   83.25µ ± 2%  +3.56% (p=0.000 n=10)
empty.json                                        27.67µ ±  2%   29.09µ ± 1%  +5.10% (p=0.000 n=10)
eventbridge-custom.json                           42.79µ ±  2%   44.34µ ± 1%  +3.62% (p=0.000 n=10)
eventbridge-no-bus.json                           42.25µ ±  1%   43.44µ ± 2%  +2.82% (p=0.000 n=10)
eventbridge-no-timestamp.json                     42.11µ ±  3%   43.63µ ± 2%  +3.60% (p=0.000 n=10)
eventbridgesns.json                               56.27µ ±  2%   57.52µ ± 1%  +2.21% (p=0.000 n=10)
eventbridgesqs.json                               62.75µ ±  1%   63.28µ ± 1%       ~ (p=0.063 n=10)
http-api.json                                     62.41µ ±  1%   62.57µ ± 1%       ~ (p=0.280 n=10)
kinesis-batch.json                                62.60µ ±  1%   62.92µ ± 2%       ~ (p=0.225 n=10)
kinesis.json                                      49.94µ ±  2%   50.41µ ± 1%       ~ (p=0.353 n=10)
s3.json                                           53.61µ ±  1%   54.91µ ± 2%  +2.42% (p=0.000 n=10)
sns-batch.json                                    79.38µ ±  1%   80.56µ ± 1%  +1.49% (p=0.000 n=10)
sns.json                                          60.33µ ±  1%   61.44µ ± 2%  +1.84% (p=0.019 n=10)
snssqs.json                                       100.9µ ±  1%   101.9µ ± 1%       ~ (p=0.063 n=10)
snssqs_no_dd_context.json                         91.58µ ±  2%   93.44µ ± 2%  +2.03% (p=0.015 n=10)
sqs-aws-header.json                               50.46µ ±  1%   51.01µ ± 1%  +1.09% (p=0.029 n=10)
sqs-batch.json                                    81.69µ ±  1%   82.96µ ± 1%  +1.56% (p=0.000 n=10)
sqs.json                                          60.87µ ±  1%   61.73µ ± 1%  +1.40% (p=0.000 n=10)
sqs_no_dd_context.json                            56.23µ ±  1%   56.28µ ± 1%       ~ (p=0.971 n=10)
stepfunction.json                                 39.38µ ±  1%   40.11µ ± 2%       ~ (p=0.063 n=10)
geomean                                           58.32µ         59.86µ       +2.65%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │          B/op          │     B/op      vs base               │
api-gateway-appsec.json                           37.40Ki ± 0%   37.18Ki ± 0%  -0.59% (p=0.000 n=10)
api-gateway-kong-appsec.json                      27.13Ki ± 0%   26.97Ki ± 0%  -0.58% (p=0.000 n=10)
api-gateway-kong.json                             24.62Ki ± 0%   24.46Ki ± 0%  -0.63% (p=0.000 n=10)
api-gateway-non-proxy-async.json                  47.99Ki ± 0%   47.78Ki ± 0%  -0.44% (p=0.000 n=10)
api-gateway-non-proxy.json                        47.19Ki ± 0%   46.98Ki ± 0%  -0.46% (p=0.000 n=10)
api-gateway-websocket-connect.json                25.37Ki ± 0%   25.19Ki ± 0%  -0.68% (p=0.000 n=10)
api-gateway-websocket-default.json                20.09Ki ± 0%   19.91Ki ± 0%  -0.85% (p=0.000 n=10)
api-gateway-websocket-disconnect.json             21.00Ki ± 0%   20.83Ki ± 0%  -0.82% (p=0.000 n=10)
api-gateway.json                                  49.18Ki ± 0%   49.02Ki ± 0%  -0.33% (p=0.000 n=10)
application-load-balancer.json                    23.40Ki ± 0%   22.40Ki ± 0%  -4.28% (p=0.000 n=10)
cloudfront.json                                   17.48Ki ± 0%   17.46Ki ± 0%  -0.09% (p=0.000 n=10)
cloudwatch-events.json                            11.55Ki ± 0%   11.49Ki ± 0%  -0.48% (p=0.000 n=10)
cloudwatch-logs.json                              53.07Ki ± 0%   53.06Ki ± 0%  -0.03% (p=0.000 n=10)
custom.json                                       9.572Ki ± 0%   9.556Ki ± 0%  -0.17% (p=0.000 n=10)
dynamodb.json                                     40.37Ki ± 0%   40.31Ki ± 0%  -0.14% (p=0.000 n=10)
empty.json                                        9.110Ki ± 0%   9.095Ki ± 0%  -0.17% (p=0.000 n=10)
eventbridge-custom.json                           14.73Ki ± 0%   14.67Ki ± 0%  -0.43% (p=0.000 n=10)
eventbridge-no-bus.json                           13.70Ki ± 0%   13.64Ki ± 0%  -0.45% (p=0.000 n=10)
eventbridge-no-timestamp.json                     13.70Ki ± 0%   13.63Ki ± 0%  -0.46% (p=0.000 n=10)
eventbridgesns.json                               20.50Ki ± 0%   20.44Ki ± 0%  -0.26% (p=0.000 n=10)
eventbridgesqs.json                               24.63Ki ± 0%   24.58Ki ± 0%  -0.22% (p=0.000 n=10)
http-api.json                                     23.46Ki ± 0%   23.23Ki ± 0%  -1.01% (p=0.000 n=10)
kinesis-batch.json                                26.57Ki ± 0%   26.51Ki ± 0%  -0.21% (p=0.000 n=10)
kinesis.json                                      17.45Ki ± 0%   17.39Ki ± 0%  -0.32% (p=0.000 n=10)
s3.json                                           19.96Ki ± 0%   19.91Ki ± 0%  -0.27% (p=0.000 n=10)
sns-batch.json                                    39.13Ki ± 0%   39.11Ki ± 0%  -0.06% (p=0.000 n=10)
sns.json                                          24.57Ki ± 0%   24.54Ki ± 0%  -0.10% (p=0.000 n=10)
snssqs.json                                       52.81Ki ± 0%   52.72Ki ± 0%  -0.17% (p=0.000 n=10)
snssqs_no_dd_context.json                         46.56Ki ± 0%   46.48Ki ± 0%  -0.16% (p=0.000 n=10)
sqs-aws-header.json                               18.80Ki ± 0%   18.78Ki ± 0%  -0.10% (p=0.000 n=10)
sqs-batch.json                                    41.34Ki ± 0%   41.32Ki ± 0%  -0.06% (p=0.000 n=10)
sqs.json                                          25.44Ki ± 0%   25.42Ki ± 0%  -0.09% (p=0.000 n=10)
sqs_no_dd_context.json                            21.09Ki ± 0%   21.04Ki ± 0%  -0.25% (p=0.000 n=10)
stepfunction.json                                 13.53Ki ± 0%   13.43Ki ± 0%  -0.70% (p=0.000 n=10)
geomean                                           24.16Ki        24.05Ki       -0.48%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │       allocs/op        │ allocs/op   vs base                 │
api-gateway-appsec.json                             637.0 ± 0%   636.0 ± 0%  -0.16% (p=0.000 n=10)
api-gateway-kong-appsec.json                        495.0 ± 0%   494.0 ± 0%  -0.20% (p=0.000 n=10)
api-gateway-kong.json                               473.0 ± 0%   472.0 ± 0%  -0.21% (p=0.000 n=10)
api-gateway-non-proxy-async.json                    738.0 ± 0%   737.0 ± 0%  -0.14% (p=0.000 n=10)
api-gateway-non-proxy.json                          728.0 ± 0%   727.0 ± 0%  -0.14% (p=0.000 n=10)
api-gateway-websocket-connect.json                  455.0 ± 0%   454.0 ± 0%  -0.22% (p=0.000 n=10)
api-gateway-websocket-default.json                  376.0 ± 0%   375.0 ± 0%  -0.27% (p=0.000 n=10)
api-gateway-websocket-disconnect.json               368.0 ± 0%   367.0 ± 0%  -0.27% (p=0.000 n=10)
api-gateway.json                                    799.0 ± 0%   798.0 ± 0%  -0.13% (p=0.000 n=10)
application-load-balancer.json                      353.0 ± 0%   351.0 ± 0%  -0.57% (p=0.000 n=10)
cloudfront.json                                     278.0 ± 0%   278.0 ± 0%       ~ (p=1.000 n=10) ¹
cloudwatch-events.json                              215.0 ± 0%   214.0 ± 0%  -0.47% (p=0.000 n=10)
cloudwatch-logs.json                                208.0 ± 0%   207.0 ± 0%  -0.48% (p=0.000 n=10)
custom.json                                         163.0 ± 0%   163.0 ± 0%       ~ (p=1.000 n=10) ¹
dynamodb.json                                       581.0 ± 0%   580.0 ± 0%  -0.17% (p=0.000 n=10)
empty.json                                          154.0 ± 0%   154.0 ± 0%       ~ (p=1.000 n=10) ¹
eventbridge-custom.json                             260.0 ± 0%   259.0 ± 0%  -0.38% (p=0.000 n=10)
eventbridge-no-bus.json                             251.0 ± 0%   250.0 ± 0%  -0.40% (p=0.000 n=10)
eventbridge-no-timestamp.json                       251.0 ± 0%   250.0 ± 0%  -0.40% (p=0.000 n=10)
eventbridgesns.json                                 315.0 ± 0%   314.0 ± 0%  -0.32% (p=0.000 n=10)
eventbridgesqs.json                                 355.0 ± 0%   354.0 ± 0%  -0.28% (p=0.000 n=10)
http-api.json                                       431.0 ± 0%   430.0 ± 0%  -0.23% (p=0.000 n=10)
kinesis-batch.json                                  382.0 ± 0%   381.0 ± 0%  -0.26% (p=0.000 n=10)
kinesis.json                                        278.0 ± 0%   277.0 ± 0%  -0.36% (p=0.000 n=10)
s3.json                                             350.0 ± 0%   349.0 ± 0%  -0.29% (p=0.000 n=10)
sns-batch.json                                      466.0 ± 0%   465.0 ± 0%  -0.21% (p=0.000 n=10)
sns.json                                            337.0 ± 0%   336.0 ± 0%  -0.30% (p=0.000 n=10)
snssqs.json                                         459.0 ± 0%   458.0 ± 0%  -0.22% (p=0.000 n=10)
snssqs_no_dd_context.json                           419.0 ± 0%   418.0 ± 0%  -0.24% (p=0.000 n=10)
sqs-aws-header.json                                 275.0 ± 0%   274.0 ± 0%  -0.36% (p=0.000 n=10)
sqs-batch.json                                      501.0 ± 0%   500.0 ± 0%  -0.20% (p=0.000 n=10)
sqs.json                                            350.0 ± 0%   349.0 ± 0%  -0.29% (p=0.000 n=10)
sqs_no_dd_context.json                              336.0 ± 0%   335.0 ± 0%  -0.30% (p=0.000 n=10)
stepfunction.json                                   223.0 ± 0%   220.0 ± 0%  -1.35% (p=0.000 n=10)
geomean                                             360.1        359.0       -0.29%
¹ all samples are equal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
long review PR is complex, plan time to review it qa/done QA done before merge and regressions are covered by tests team/serverless
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants