Skip to content

fix: Remove redundant on_error for HTTP integrations#4673

Merged
dubloom merged 6 commits into
masterfrom
dubloom/fix/ticket-4670
May 22, 2025
Merged

fix: Remove redundant on_error for HTTP integrations#4673
dubloom merged 6 commits into
masterfrom
dubloom/fix/ticket-4670

Conversation

@dubloom

@dubloom dubloom commented May 21, 2025

Copy link
Copy Markdown
Contributor

Fixes #4670

What does this PR do?
The on_error method in HTTP integrations was a copy of the default on_error handler. This PR removes the custom on_error handler, as it is unnecessary.

Motivation:
Before 2.16, a Method object for on_error was provided, which raises a warning because the method expects a Proc. #4611 introduces a warning to tell the user that the on_error was not going to be taken into account. Several customers raised the concern here #4670.

Change log entry
Yes. Tracing: Fix: The on_error warning for HTTP instrumentations

@github-actions

github-actions Bot commented May 21, 2025

Copy link
Copy Markdown

Thank you for updating Change log entry section 👏

Visited at: 2025-05-21 11:19:50 UTC

@github-actions github-actions Bot added the integrations Involves tracing integrations label May 21, 2025
@pr-commenter

pr-commenter Bot commented May 21, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-05-21 14:44:14

Comparing candidate commit 4ad8c15 in PR branch dubloom/fix/ticket-4670 with baseline commit 5a070a9 in branch master.

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

scenario:profiling - Allocations ()

  • 🟩 throughput [+450155.166op/s; +460781.503op/s] or [+15.746%; +16.118%]

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented May 21, 2025

Copy link
Copy Markdown
Contributor

Datadog Report

Branch report: dubloom/fix/ticket-4670
Commit report: 4ad8c15
Test service: dd-trace-rb

✅ 0 Failed, 21096 Passed, 1439 Skipped, 3m 45.71s Total Time

@dubloom dubloom changed the title chore: detect all the problems with on_error proc fix: http instrumentation is not providing the right :on_error type May 21, 2025
@codecov-commenter

codecov-commenter commented May 21, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.73%. Comparing base (5a070a9) to head (4ad8c15).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4673      +/-   ##
==========================================
- Coverage   97.73%   97.73%   -0.01%     
==========================================
  Files        1442     1442              
  Lines       87249    87242       -7     
  Branches     4488     4488              
==========================================
- Hits        85276    85263      -13     
- Misses       1973     1979       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dubloom
dubloom marked this pull request as ready for review May 21, 2025 11:19
@dubloom
dubloom requested a review from a team as a code owner May 21, 2025 11:19
@dubloom dubloom changed the title fix: http instrumentation is not providing the right :on_error type fix: http instrumentations are not providing the right :on_error type May 21, 2025
@marcotc
marcotc requested a review from a team as a code owner May 21, 2025 14:11
@marcotc
marcotc force-pushed the dubloom/fix/ticket-4670 branch from 8e7d819 to 4ad8c15 Compare May 21, 2025 14:13
@marcotc marcotc changed the title fix: http instrumentations are not providing the right :on_error type fix: Remove redundant on_error for HTTP integrations May 21, 2025
@dubloom
dubloom merged commit 367301b into master May 22, 2025
@dubloom
dubloom deleted the dubloom/fix/ticket-4670 branch May 22, 2025 09:13
@github-actions github-actions Bot added this to the 2.17.0 milestone May 22, 2025
@p-datadog p-datadog mentioned this pull request Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrations Involves tracing integrations tracing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: new warning from 2.16.0

5 participants