-
Notifications
You must be signed in to change notification settings - Fork 151
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
WAF telemetry #2735
base: master
Are you sure you want to change the base?
WAF telemetry #2735
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2735 +/- ##
============================================
- Coverage 77.96% 77.77% -0.19%
Complexity 2216 2216
============================================
Files 227 227
Lines 26643 26737 +94
Branches 989 1017 +28
============================================
+ Hits 20771 20796 +25
- Misses 5346 5408 +62
- Partials 526 533 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
BenchmarksBenchmark execution time: 2024-07-13 00:47:21 Comparing candidate commit a225a90 in PR branch Found 17 performance improvements and 0 performance regressions! Performance is the same for 161 metrics, 0 unstable metrics. scenario:EmptyFileBench/benchEmptyFileBaseline
scenario:EmptyFileBench/benchEmptyFileBaseline-opcache
scenario:EmptyFileBench/benchEmptyFileOverhead
scenario:EmptyFileBench/benchEmptyFileOverhead-opcache
scenario:LaravelBench/benchLaravelBaseline
scenario:LaravelBench/benchLaravelBaseline-opcache
scenario:LaravelBench/benchLaravelOverhead
scenario:LaravelBench/benchLaravelOverhead-opcache
scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:SymfonyBench/benchSymfonyBaseline
scenario:SymfonyBench/benchSymfonyBaseline-opcache
scenario:SymfonyBench/benchSymfonyOverhead
scenario:SymfonyBench/benchSymfonyOverhead-opcache
scenario:TraceSerializationBench/benchSerializeTrace
scenario:TraceSerializationBench/benchSerializeTrace-opcache
scenario:WordPressBench/benchWordPressOverhead
scenario:WordPressBench/benchWordPressOverhead-opcache
|
8464095
to
d91cd3f
Compare
ext/telemetry.c
Outdated
@@ -240,3 +247,142 @@ void ddtrace_telemetry_send_trace_api_metrics(trace_api_metrics metrics) { | |||
|
|||
ddog_sidecar_telemetry_buffer_flush(&ddtrace_sidecar, ddtrace_sidecar_instance_id, &dd_bgs_queued_id, buffer); | |||
} | |||
|
|||
ZEND_TLS HashTable metric_buffers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it possible to use a buffer created by ddog_sidecar_telemetry_buffer_alloc
and add the metrics directly into it instead of having 2 levels of buffers?
Then in dd_commit_metrics
we could just flush it.
e777ab6
to
8239978
Compare
8239978
to
3cdc077
Compare
6b37ec2
to
ad72485
Compare
* Support aarch64 * Show the log of the sidecar * Update dependencies * Compile rust code in the tracer in debug mode * Fix build failing when gradle finds broken symlinks * Add PHP debug images (for troubleshooting) The images are now multiarch. See https://registry.hub.docker.com/r/datadog/dd-appsec-php-ci/tags
583b4db
to
1b22395
Compare
Introduces the interface metrics::TelemetrySubmitter and uses two implementations to submit metrics 1) RequestMetricsSubmitter: generated during a request, which are forwarded to the extension in that requests's rshutdown message and 2) MetricsImpl: generated outside a request, inside the service. These are forwarded to the extension in either client_init or rshutdown of any client of that service. This service is also used to submit the legacy meta and span metrics.
asio synchronous network APIs don't support timeouts. Switch to async APIs with stackless C++20 coroutine executor.
1b22395
to
a225a90
Compare
Description
See individual commits for descriptions of the changes.
Reviewer checklist