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

fix(elasticsearch): Hook not being removed #2615

Closed
wants to merge 1 commit into from

Conversation

PROFeNoM
Copy link
Contributor

@PROFeNoM PROFeNoM commented Apr 5, 2024

Description

As mentioned in this GH comment from #2427, an elasticsearch hook wasn't removed

[ddtrace] [error] Could not add hook to Elastic\Elasticsearch\Endpoints\Indices::__construct with more than datadog.trace.hook_limit = 100 installed hooks in /opt/datadog-php/dd-trace-sources/bridge/_generated_integrations.php on line 5437; This message is only displayed once. Specify DD_TRACE_ONCE_LOGS=0 to show all messages.

dd_untrace was called on the Trait while it should have been called on the hooked class. With this PR, the installed hook is removed on the correct class.

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@PROFeNoM PROFeNoM added 🐛 bug Something isn't working cat:integration labels Apr 5, 2024
@PROFeNoM PROFeNoM self-assigned this Apr 5, 2024
@PROFeNoM PROFeNoM requested a review from a team as a code owner April 5, 2024 13:29
@codecov-commenter
Copy link

codecov-commenter commented Apr 5, 2024

Codecov Report

Merging #2615 (da4b652) into master (0d08bf6) will decrease coverage by 12.15%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master    #2615       +/-   ##
=============================================
- Coverage     76.53%   64.39%   -12.15%     
  Complexity     2609     2609               
=============================================
  Files           217      217               
  Lines         23318    23318               
=============================================
- Hits          17846    15015     -2831     
- Misses         5472     8303     +2831     
Flag Coverage Δ
tracer-extension 78.70% <ø> (ø)
tracer-php 46.83% <100.00%> (-27.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ions/ElasticSearch/V8/ElasticSearchIntegration.php 99.13% <100.00%> (ø)

... and 19 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d08bf6...da4b652. Read the comment docs.

@pr-commenter
Copy link

pr-commenter bot commented Apr 5, 2024

Benchmarks

Benchmark execution time: 2024-04-05 13:59:35

Comparing candidate commit da4b652 in PR branch alex/issue/gh2427-fourth with baseline commit 0d08bf6 in branch master.

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

scenario:ComposerTelemetryBench/benchTelemetryParsing

  • 🟥 execution_time [+1.153µs; +2.847µs] or [+2.112%; +5.214%]

scenario:SamplingRuleMatchingBench/benchRegexMatching4

  • 🟩 execution_time [-354.047ns; -142.153ns] or [-5.576%; -2.239%]

@PROFeNoM
Copy link
Contributor Author

PROFeNoM commented Apr 5, 2024

Superseded by #2616

@PROFeNoM PROFeNoM closed this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working cat:integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants