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 withspan handler nullable + example #1377

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Sep 6, 2024

  • class is nullable for pre hooks
  • add phpt tests for withspan and its interaction with auto root span

- class is nullable for pre hooks
- add phpt tests for withspan and its interaction with auto root span
@brettmc brettmc requested a review from a team September 6, 2024 05:02
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.14%. Comparing base (bee9c64) to head (08ad04b).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1377      +/-   ##
============================================
+ Coverage     74.07%   74.14%   +0.06%     
  Complexity     2666     2666              
============================================
  Files           385      385              
  Lines          7638     7638              
============================================
+ Hits           5658     5663       +5     
+ Misses         1980     1975       -5     
Flag Coverage Δ
8.1 73.79% <100.00%> (+0.09%) ⬆️
8.2 73.96% <100.00%> (+0.01%) ⬆️
8.3 74.01% <100.00%> (-0.02%) ⬇️
8.4 73.89% <100.00%> (-0.05%) ⬇️

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

Files with missing lines Coverage Δ
src/API/Instrumentation/WithSpanHandler.php 90.32% <100.00%> (ø)

... and 3 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 bee9c64...08ad04b. Read the comment docs.

@brettmc brettmc merged commit 0680863 into open-telemetry:main Sep 6, 2024
10 checks passed
brettmc added a commit to brettmc/opentelemetry-php that referenced this pull request Oct 2, 2024
- class is nullable for pre hooks
- add phpt tests for withspan and its interaction with auto root span
bobstrecansky pushed a commit that referenced this pull request Oct 2, 2024
* 8.4: fixing some implicit nullable params

* fix withspan handler nullable + example (#1377)

- class is nullable for pre hooks
- add phpt tests for withspan and its interaction with auto root span

* fix: update references to logging exporter (#1383)

This exporter has been replaced by the debug exporter and will be removed soon. Related to open-telemetry/opentelemetry-collector#11037

Signed-off-by: Alex Boten <[email protected]>

* fix: Update collector tag in example to latest (#1384)

Follow-up from #1383. Debug exporter isn't available until v0.86.0, so this new configuration throws an error when trying to run the collector. `Error: cannot unmarshal the configuration: unknown exporters type "debug" for "debug"` Instead of setting to v0.86.0, I noticed the other docker files omitted the tag (so latest is pulled). I just updated this to match.

* Remove `MeterInterface::isEnabled()` and fix meter config re-enabling (#1387)

* Update SPI dependency to v1. (#1388)

* Fix README badges. (#1389)

* add phpDocumentor instructions to Makefile (#1385)

* add phpDocumentor instructions to Makefile

Signed-off-by: svrnm <[email protected]>

* update DEVELOPMENT.md

Signed-off-by: svrnm <[email protected]>

---------

Signed-off-by: svrnm <[email protected]>

* Update README.md (#1344)

* Fix `IncompatibleReturnValueException` in `MessageFactoryTest` (#1392)

PSR7 `RequestInterface::getUri()` must return `UriInterface`, not `string`; explicit typehint was added in `2.0`.

* more implicit nulls

---------

Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: svrnm <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
Co-authored-by: Jamie Danielson <[email protected]>
Co-authored-by: Tobias Bachert <[email protected]>
Co-authored-by: Chris Lightfoot-Wild <[email protected]>
Co-authored-by: Severin Neumann <[email protected]>
Co-authored-by: Oleg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants