Skip to content

appsec: implement more telemetry metrics/tags - #4093

Merged
cataphract merged 7 commits into
masterfrom
glopes/appsec-more-tel-metrics
Sep 7, 2026
Merged

appsec: implement more telemetry metrics/tags#4093
cataphract merged 7 commits into
masterfrom
glopes/appsec-more-tel-metrics

Conversation

@cataphract

@cataphract cataphract commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description

See individual commits

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@cataphract
cataphract requested a review from a team as a code owner August 5, 2026 14:10
@datadog-official

datadog-official Bot commented Aug 5, 2026

Copy link
Copy Markdown

Pipelines  Tests

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 33 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | check libxml2 version — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-php | compile tracing extension asan: [8.1, amd64, x86_64-unknown-linux-gnu] — 🔄 Retry may pass, looks flaky

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-php | appsec integration tests (ssi): [test8.3-release-ssi]

View more details · View in GitLab

View all 33 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 58.18%
Overall Coverage: 55.05% (-0.05%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7778c89 | Docs | View more details | Give us feedback!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd3dbadbaf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread appsec/src/extension/request_lifecycle.c Outdated
Comment thread appsec/src/extension/request_lifecycle.c Outdated
Comment thread appsec/src/extension/request_lifecycle.c Outdated
@pr-commenter

pr-commenter Bot commented Aug 5, 2026

Copy link
Copy Markdown

Benchmarks [ appsec ]

Benchmark execution time: 2026-09-07 12:36:47

Comparing candidate commit 7778c89 in PR branch glopes/appsec-more-tel-metrics with baseline commit 3b1267d in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

@cataphract
cataphract force-pushed the glopes/appsec-more-tel-metrics branch from d7ddc4f to 2d0424e Compare August 5, 2026 16:29
Comment thread appsec/src/extension/ddappsec.c
@cataphract
cataphract requested a review from a team as a code owner September 7, 2026 10:10
@cataphract
cataphract enabled auto-merge September 7, 2026 10:10
metric_type referenced an undefined FFI-style constant name instead of
the MetricType enum variant, breaking the helper-rust build and
cascading into failures across most CI jobs.
@cataphract
cataphract merged commit 43e9282 into master Sep 7, 2026
2127 of 2160 checks passed
@cataphract
cataphract deleted the glopes/appsec-more-tel-metrics branch September 7, 2026 14:38
@github-actions github-actions Bot added this to the 1.26.0 milestone Sep 7, 2026
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.

2 participants