Skip to content

Conversation

@y9v
Copy link
Member

@y9v y9v commented Oct 2, 2025

What does this PR do?
It enables Endpoint Collection by default for AppSec users. I also adds a safeguard that rescues exceptions during routes serialization.

Motivation:
We want this feature to be enabled by default for AppSec users.

Change log entry
None. This change is internal.

Additional Notes:
I also added a rescue to the method for reporting routes as a safeguard - in case Rails changes some internals and route serialization will start raising errors.

APPSEC-59521

How to test the change?
CI

y9v added 2 commits October 2, 2025 17:32
    endpoint_collection_spec.rb
    branch 'appsec-enable-endpoint-collection-by-default' on '4ab26d0b58'.
    endpoint_collection_spec.rb
@y9v y9v self-assigned this Oct 2, 2025
@y9v y9v requested a review from a team as a code owner October 2, 2025 15:34
@github-actions github-actions bot added integrations Involves tracing integrations appsec Application Security monitoring product labels Oct 2, 2025
@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Oct 2, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 101.95% (-0.05%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8f44c50 | Docs | Was this helpful? Give us feedback!

@pr-commenter
Copy link

pr-commenter bot commented Oct 2, 2025

Benchmarks

Benchmark execution time: 2025-10-02 16:09:06

Comparing candidate commit df5562b in PR branch appsec-enable-endpoint-collection-by-default with baseline commit 4ab26d0 in branch master.

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

scenario:profiling - Allocations ()

  • 🟥 throughput [-278969.070op/s; -219559.115op/s] or [-8.386%; -6.600%]

scenario:tracing - Propagation - Trace Context

  • 🟥 throughput [-4204.176op/s; -4088.759op/s] or [-10.966%; -10.665%]

@p-datadog
Copy link
Member

The title of this PR doesn't match the first statement in the description though the PR contains both changes - should the title reflect the feature being enabled by default?

@y9v y9v changed the title Add a safeguard for Endpoint Collection Enable Endpoint Collection feature by default Oct 6, 2025
@y9v
Copy link
Member Author

y9v commented Oct 6, 2025

@p-datadog thanks, good catch! The PR was actually auto-generated from my commit title, and I forgot to change it.

    endpoint_collection_spec.rb
@y9v y9v requested a review from p-datadog October 6, 2025 07:57
@y9v y9v merged commit a42da25 into master Oct 8, 2025
356 checks passed
@y9v y9v deleted the appsec-enable-endpoint-collection-by-default branch October 8, 2025 14:32
@github-actions github-actions bot added this to the 2.22.0 milestone Oct 8, 2025
@p-datadog
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appsec Application Security monitoring product integrations Involves tracing integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants