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-4142] Create a Lambda span on timeouts #21481

Merged
merged 25 commits into from
Apr 12, 2024
Merged

Conversation

DylanLovesCoffee
Copy link
Contributor

@DylanLovesCoffee DylanLovesCoffee commented Dec 11, 2023

What does this PR do?

This is specific to universal instrumentation (runtimes: Java, .NET, Go). Modifies OnInvokeEnd to handle a timeouts and create the aws.lambda span in the Extension.

Motivation

The Lambda extension requires requests to be made to its startInvocation and endInvocation endpoints by the tracer in order to complete an aws.lambda span. Typically during a timeout invocation, we only receive a request to startInvocation because the Lambda times out before the tracer can make a request to endInvocation with the tracer-generated trace ID, span ID and sampling priority.

This change has the Extension create the trace ID, span ID and sampling priority itself since it can't rely on the tracer sending that information. The Extension already keeps a record of how much time is left (deadlineMs), so we're able to finish the execution span and flush it before the timeout.

Screenshot 2024-01-29 at 1 31 07 PM

Additional Notes

Possible Drawbacks / Trade-offs

On caveat of this method that we've discussed (but haven't solved) is the following case:

  1. During a timeout, the Extension creates the Lambda span with newly generated trace and span IDs
  2. The Tracer still creates the original trace ID and span ID for the Lambda span but is dropped during the timeout
  3. The Tracer also creates a child span of the Lambda span and manages to send it to the Extension
  4. The child span's parent ID is that of the Tracer-generated Lambda span
  5. The child span is now orphaned and cannot be tied to the Extension-generated Lambda span's span ID

Describe how to test/QA your changes

Manual testing + RC, coupled with multiple unit tests

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
  • A release note has been added or the changelog/no-changelog label has been applied.
  • Changed code has automated tests for its functionality.
  • Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
  • At least one team/.. label has been applied, indicating the team(s) that should QA this change.
  • If applicable, docs team has been notified or an issue has been opened on the documentation repo.
  • If applicable, the need-change/operator and need-change/helm labels have been applied.
  • If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
  • If applicable, the config template has been updated.

@DylanLovesCoffee DylanLovesCoffee marked this pull request as ready for review December 11, 2023 21:49
@DylanLovesCoffee DylanLovesCoffee requested review from a team as code owners December 11, 2023 21:51
@pr-commenter
Copy link

pr-commenter bot commented Dec 21, 2023

Bloop Bleep... Dogbot Here

Regression Detector Results

Run ID: 8d0956f7-62bf-4081-b5a1-e8c249864159
Baseline: fecc15a
Comparison: 70cbf83
Total CPUs: 7

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.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI
file_to_blackhole % cpu utilization +0.11 [-6.41, +6.64]
idle memory utilization +0.09 [+0.06, +0.12]
file_tree memory utilization +0.09 [-0.03, +0.20]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI
otel_to_otel_logs ingress throughput +1.26 [+0.53, +2.00]
file_to_blackhole % cpu utilization +0.11 [-6.41, +6.64]
process_agent_real_time_mode memory utilization +0.10 [+0.06, +0.13]
idle memory utilization +0.09 [+0.06, +0.12]
file_tree memory utilization +0.09 [-0.03, +0.20]
process_agent_standard_check_with_stats memory utilization +0.04 [-0.00, +0.09]
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.06, +0.06]
uds_dogstatsd_to_api ingress throughput -0.00 [-0.03, +0.03]
trace_agent_json ingress throughput -0.02 [-0.04, +0.01]
trace_agent_msgpack ingress throughput -0.02 [-0.03, -0.01]
process_agent_standard_check memory utilization -0.10 [-0.15, -0.04]
tcp_syslog_to_blackhole ingress throughput -0.15 [-0.21, -0.09]

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

@@ -86,6 +89,7 @@ type EndInvocation struct {

func (e *EndInvocation) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Debug("Hit on the serverless.EndInvocation route.")
e.daemon.SetExecutionSpanComplete(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest doing this as a defer instead. Or at least right right after we actually complete the span.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, actually, this takes some careful thought. I think this is actually the correct thing to do. No defer.

If end-invocation has been called, even if it is not done, we do not want to also call it a second time on impending timeout. That could potentially lead to two invocation spans.

@pr-commenter
Copy link

pr-commenter bot commented Apr 4, 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=31682128 --os-family=ubuntu

@pr-commenter
Copy link

pr-commenter bot commented Apr 4, 2024

Regression Detector

Regression Detector Results

Run ID: 4a3399e3-d6bf-4b30-ae19-c8d3529ee7c6
Baseline: 9deee18
Comparison: 7148b7d

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.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI
file_to_blackhole % cpu utilization -1.16 [-7.31, +4.98]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI
pycheck_1000_100byte_tags % cpu utilization +1.73 [-3.20, +6.66]
file_tree memory utilization +0.45 [+0.34, +0.56]
tcp_syslog_to_blackhole ingress throughput +0.45 [+0.36, +0.54]
idle memory utilization +0.30 [+0.25, +0.34]
basic_py_check % cpu utilization +0.13 [-2.32, +2.58]
process_agent_standard_check memory utilization +0.04 [-0.02, +0.11]
trace_agent_json ingress throughput +0.01 [-0.03, +0.04]
otel_to_otel_logs ingress throughput -0.00 [-0.43, +0.43]
trace_agent_msgpack ingress throughput -0.00 [-0.00, +0.00]
uds_dogstatsd_to_api ingress throughput -0.00 [-0.21, +0.20]
tcp_dd_logs_filter_exclude ingress throughput -0.04 [-0.07, -0.01]
process_agent_standard_check_with_stats memory utilization -0.19 [-0.24, -0.13]
process_agent_real_time_mode memory utilization -0.26 [-0.30, -0.21]
uds_dogstatsd_to_api_cpu % cpu utilization -0.90 [-3.73, +1.93]
file_to_blackhole % cpu utilization -1.16 [-7.31, +4.98]

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

pkg/serverless/serverless.go Outdated Show resolved Hide resolved
cmd/serverless/main.go Show resolved Hide resolved
Comment on lines +29 to +30
h.daemon.LambdaLibraryStateLock.Lock()
defer h.daemon.LambdaLibraryStateLock.Unlock()
Copy link
Contributor Author

@DylanLovesCoffee DylanLovesCoffee Apr 8, 2024

Choose a reason for hiding this comment

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

Re: timeout spans for NodeJS -> updated this to ignore when the /hello route is hit. Instead, Daemon.executionSpanIncomplete is false when unset, and is only changed to true when the /startInvocation route is hit.

Now the Impending Timeout span in NodeJS should only be created by the Node Lambda Layer

DylanLovesCoffee and others added 2 commits April 8, 2024 17:22
Co-authored-by: Duncan Harvey <35278470+duncanpharvey@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Apr 8, 2024

Serverless Benchmark Results

BenchmarkStartEndInvocation comparison between 4c5cdd2 and 965a20d.

tl;dr
  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.

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.91µ ± 12%    83.62µ ± 2%       ~ (p=0.063 n=10)
api-gateway-kong-appsec.json                      65.60µ ±  2%    66.56µ ± 2%  +1.47% (p=0.003 n=10)
api-gateway-kong.json                             64.92µ ±  2%    64.07µ ± 1%       ~ (p=0.148 n=10)
api-gateway-non-proxy-async.json                  98.41µ ±  1%   102.23µ ± 3%  +3.89% (p=0.001 n=10)
api-gateway-non-proxy.json                        97.94µ ±  2%   102.44µ ± 2%  +4.59% (p=0.000 n=10)
api-gateway-websocket-connect.json                64.90µ ±  1%    68.01µ ± 1%  +4.79% (p=0.000 n=10)
api-gateway-websocket-default.json                58.43µ ±  5%    60.36µ ± 2%  +3.30% (p=0.015 n=10)
api-gateway-websocket-disconnect.json             58.52µ ±  1%    61.05µ ± 1%  +4.33% (p=0.000 n=10)
api-gateway.json                                  109.0µ ±  1%    112.3µ ± 1%  +3.08% (p=0.000 n=10)
application-load-balancer.json                    59.40µ ±  1%    61.31µ ± 1%  +3.21% (p=0.000 n=10)
cloudfront.json                                   45.28µ ±  4%    45.67µ ± 1%       ~ (p=0.579 n=10)
cloudwatch-events.json                            36.20µ ±  2%    36.78µ ± 3%       ~ (p=0.143 n=10)
cloudwatch-logs.json                              62.64µ ±  2%    63.11µ ± 1%       ~ (p=0.105 n=10)
custom.json                                       29.13µ ±  2%    29.05µ ± 3%       ~ (p=0.481 n=10)
dynamodb.json                                     90.10µ ±  1%    90.74µ ± 1%       ~ (p=0.063 n=10)
empty.json                                        27.85µ ±  2%    27.41µ ± 3%       ~ (p=0.089 n=10)
eventbridge-custom.json                           40.32µ ±  2%    40.43µ ± 2%       ~ (p=0.739 n=10)
http-api.json                                     70.82µ ±  1%    70.59µ ± 1%       ~ (p=0.579 n=10)
kinesis-batch.json                                68.83µ ±  2%    68.42µ ± 1%       ~ (p=0.579 n=10)
kinesis.json                                      52.49µ ±  3%    52.72µ ± 2%       ~ (p=0.739 n=10)
s3.json                                           57.67µ ±  1%    57.84µ ± 2%       ~ (p=0.579 n=10)
sns-batch.json                                    86.42µ ±  2%    85.40µ ± 1%       ~ (p=0.089 n=10)
sns.json                                          63.27µ ±  2%    62.53µ ± 2%  -1.17% (p=0.043 n=10)
snssqs.json                                       107.7µ ±  1%    108.0µ ± 2%       ~ (p=0.280 n=10)
snssqs_no_dd_context.json                         95.45µ ±  1%    96.55µ ± 2%  +1.16% (p=0.009 n=10)
sqs-aws-header.json                               53.89µ ±  3%    52.91µ ± 1%       ~ (p=0.393 n=10)
sqs-batch.json                                    90.44µ ±  1%    91.21µ ± 1%  +0.86% (p=0.006 n=10)
sqs.json                                          67.16µ ±  2%    66.60µ ± 1%       ~ (p=0.190 n=10)
sqs_no_dd_context.json                            60.32µ ±  2%    59.63µ ± 1%       ~ (p=0.143 n=10)
geomean                                           64.00µ          64.60µ       +0.94%

                                      │ baseline/benchmark.log │        current/benchmark.log        │
                                      │          B/op          │     B/op      vs base               │
api-gateway-appsec.json                           37.11Ki ± 0%   37.19Ki ± 0%  +0.20% (p=0.000 n=10)
api-gateway-kong-appsec.json                      26.78Ki ± 0%   26.79Ki ± 0%  +0.06% (p=0.000 n=10)
api-gateway-kong.json                             24.26Ki ± 0%   24.28Ki ± 0%  +0.07% (p=0.001 n=10)
api-gateway-non-proxy-async.json                  47.91Ki ± 0%   47.99Ki ± 0%  +0.18% (p=0.000 n=10)
api-gateway-non-proxy.json                        47.12Ki ± 0%   47.20Ki ± 0%  +0.17% (p=0.000 n=10)
api-gateway-websocket-connect.json                25.34Ki ± 0%   25.40Ki ± 0%  +0.21% (p=0.000 n=10)
api-gateway-websocket-default.json                21.25Ki ± 0%   21.29Ki ± 0%  +0.22% (p=0.000 n=10)
api-gateway-websocket-disconnect.json             21.03Ki ± 0%   21.08Ki ± 0%  +0.26% (p=0.000 n=10)
api-gateway.json                                  49.42Ki ± 0%   49.44Ki ± 0%  +0.05% (p=0.000 n=10)
application-load-balancer.json                    22.21Ki ± 0%   23.17Ki ± 0%  +4.32% (p=0.000 n=10)
cloudfront.json                                   17.53Ki ± 0%   17.57Ki ± 0%  +0.21% (p=0.000 n=10)
cloudwatch-events.json                            11.59Ki ± 0%   11.65Ki ± 0%  +0.52% (p=0.000 n=10)
cloudwatch-logs.json                              53.26Ki ± 0%   53.28Ki ± 0%  +0.03% (p=0.018 n=10)
custom.json                                       9.622Ki ± 0%   9.655Ki ± 0%  +0.35% (p=0.000 n=10)
dynamodb.json                                     40.56Ki ± 0%   40.60Ki ± 0%  +0.11% (p=0.000 n=10)
empty.json                                        9.176Ki ± 0%   9.201Ki ± 0%  +0.27% (p=0.016 n=10)
eventbridge-custom.json                           13.30Ki ± 0%   13.36Ki ± 0%  +0.50% (p=0.000 n=10)
http-api.json                                     23.61Ki ± 0%   23.66Ki ± 0%  +0.22% (p=0.001 n=10)
kinesis-batch.json                                26.89Ki ± 0%   26.94Ki ± 0%  +0.21% (p=0.000 n=10)
kinesis.json                                      17.70Ki ± 0%   17.73Ki ± 0%  +0.21% (p=0.011 n=10)
s3.json                                           20.23Ki ± 0%   20.25Ki ± 0%  +0.11% (p=0.009 n=10)
sns-batch.json                                    38.51Ki ± 0%   38.53Ki ± 0%       ~ (p=0.382 n=10)
sns.json                                          23.87Ki ± 0%   23.89Ki ± 0%       ~ (p=0.447 n=10)
snssqs.json                                       50.51Ki ± 0%   50.53Ki ± 0%       ~ (p=0.105 n=10)
snssqs_no_dd_context.json                         44.64Ki ± 0%   44.77Ki ± 0%  +0.29% (p=0.000 n=10)
sqs-aws-header.json                               18.77Ki ± 0%   18.81Ki ± 0%       ~ (p=0.052 n=10)
sqs-batch.json                                    41.48Ki ± 0%   41.53Ki ± 0%       ~ (p=0.110 n=10)
sqs.json                                          25.43Ki ± 0%   25.44Ki ± 0%       ~ (p=0.591 n=10)
sqs_no_dd_context.json                            20.59Ki ± 0%   20.62Ki ± 0%       ~ (p=0.447 n=10)
geomean                                           25.57Ki        25.66Ki       +0.32%

                                      │ baseline/benchmark.log │       current/benchmark.log       │
                                      │       allocs/op        │ allocs/op   vs base               │
api-gateway-appsec.json                             628.5 ± 0%   629.0 ± 0%  +0.08% (p=0.005 n=10)
api-gateway-kong-appsec.json                        487.0 ± 0%   488.0 ± 0%  +0.21% (p=0.000 n=10)
api-gateway-kong.json                               465.0 ± 0%   466.0 ± 0%  +0.22% (p=0.000 n=10)
api-gateway-non-proxy-async.json                    724.0 ± 0%   725.0 ± 0%  +0.14% (p=0.000 n=10)
api-gateway-non-proxy.json                          714.5 ± 0%   716.0 ± 0%  +0.21% (p=0.001 n=10)
api-gateway-websocket-connect.json                  452.0 ± 0%   453.0 ± 0%  +0.22% (p=0.000 n=10)
api-gateway-websocket-default.json                  378.0 ± 0%   379.0 ± 0%  +0.26% (p=0.000 n=10)
api-gateway-websocket-disconnect.json               368.0 ± 0%   369.0 ± 0%  +0.27% (p=0.000 n=10)
api-gateway.json                                    789.0 ± 0%   790.0 ± 0%  +0.13% (p=0.000 n=10)
application-load-balancer.json                      350.0 ± 0%   352.0 ± 0%  +0.57% (p=0.000 n=10)
cloudfront.json                                     282.0 ± 0%   283.0 ± 0%  +0.35% (p=0.000 n=10)
cloudwatch-events.json                              219.0 ± 0%   220.0 ± 0%  +0.46% (p=0.000 n=10)
cloudwatch-logs.json                                214.0 ± 0%   215.0 ± 0%  +0.47% (p=0.000 n=10)
custom.json                                         167.0 ± 0%   168.0 ± 0%  +0.60% (p=0.000 n=10)
dynamodb.json                                       587.0 ± 0%   588.0 ± 0%  +0.17% (p=0.001 n=10)
empty.json                                          158.0 ± 0%   159.0 ± 0%  +0.63% (p=0.001 n=10)
eventbridge-custom.json                             252.0 ± 0%   253.0 ± 0%  +0.40% (p=0.000 n=10)
http-api.json                                       431.0 ± 0%   432.0 ± 0%  +0.23% (p=0.028 n=10)
kinesis-batch.json                                  389.0 ± 0%   390.0 ± 0%  +0.26% (p=0.000 n=10)
kinesis.json                                        284.0 ± 0%   284.0 ± 0%   0.00% (p=0.010 n=10)
s3.json                                             356.0 ± 0%   357.0 ± 0%  +0.28% (p=0.001 n=10)
sns-batch.json                                      453.0 ± 0%   454.0 ± 0%  +0.22% (p=0.008 n=10)
sns.json                                            321.5 ± 0%   322.0 ± 0%  +0.16% (p=0.023 n=10)
snssqs.json                                         444.0 ± 0%   444.5 ± 0%       ~ (p=0.332 n=10)
snssqs_no_dd_context.json                           397.0 ± 0%   399.0 ± 0%  +0.50% (p=0.000 n=10)
sqs-aws-header.json                                 272.0 ± 0%   274.0 ± 0%  +0.74% (p=0.000 n=10)
sqs-batch.json                                      501.0 ± 0%   502.5 ± 0%  +0.30% (p=0.003 n=10)
sqs.json                                            349.0 ± 0%   350.0 ± 0%  +0.29% (p=0.028 n=10)
sqs_no_dd_context.json                              323.0 ± 1%   324.0 ± 1%       ~ (p=0.230 n=10)
geomean                                             374.9        376.1       +0.30%

Copy link
Contributor

@duncanpharvey duncanpharvey left a comment

Choose a reason for hiding this comment

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

LGTM!

@DylanLovesCoffee
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Apr 12, 2024

🚂 MergeQueue

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.

Use /merge -c to cancel this operation!

@dd-devflow
Copy link

dd-devflow bot commented Apr 12, 2024

🚂 MergeQueue

Pull request added to the queue.

This build is going to start soon! (estimated merge in less than 24m)

Use /merge -c to cancel this operation!

@DylanLovesCoffee
Copy link
Contributor Author

sister PR: #22202

@dd-mergequeue dd-mergequeue bot merged commit 1f33b61 into main Apr 12, 2024
179 checks passed
@dd-mergequeue dd-mergequeue bot deleted the dylan/timeout-trace branch April 12, 2024 20:03
@github-actions github-actions bot modified the milestones: Triage, 7.54.0 Apr 12, 2024
CelianR pushed a commit that referenced this pull request Apr 26, 2024
* create a Lambda span on timeouts

* don't create a cold start span when the runtime restarts during timeouts

* fix linting

* fix test

* lint: rename name variables

* lint again

* small fixes

* refactor timeout span logic

* add mutexes

* fix span completed check

* revert refactor

* remove cold start span changes

* use mutex over rwmutex

* test routes

* add comment + update tests

* test endExecutionSpan

* add serverless.go test

* add test /hello for route

* only set span incomplete when /startInvocation has been hit

* time out -> timeout

Co-authored-by: Duncan Harvey <35278470+duncanpharvey@users.noreply.github.com>

---------

Co-authored-by: Duncan Harvey <35278470+duncanpharvey@users.noreply.github.com>
alexgallotta pushed a commit that referenced this pull request May 9, 2024
* create a Lambda span on timeouts

* don't create a cold start span when the runtime restarts during timeouts

* fix linting

* fix test

* lint: rename name variables

* lint again

* small fixes

* refactor timeout span logic

* add mutexes

* fix span completed check

* revert refactor

* remove cold start span changes

* use mutex over rwmutex

* test routes

* add comment + update tests

* test endExecutionSpan

* add serverless.go test

* add test /hello for route

* only set span incomplete when /startInvocation has been hit

* time out -> timeout

Co-authored-by: Duncan Harvey <35278470+duncanpharvey@users.noreply.github.com>

---------

Co-authored-by: Duncan Harvey <35278470+duncanpharvey@users.noreply.github.com>
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.

4 participants