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

implement SpanProcessor::onEnding #1483

Merged
merged 10 commits into from
Jan 29, 2025

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Jan 23, 2025

added to spec 1.36.0

@brettmc brettmc requested a review from a team as a code owner January 23, 2025 02:39
@brettmc brettmc added the breaking A breaking change label Jan 23, 2025
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 52.94118% with 8 lines in your changes missing coverage. Please review.

Project coverage is 70.57%. Comparing base (a537dbf) to head (d1057fd).
Report is 2 commits behind head on 2.x.

Files with missing lines Patch % Lines
src/SDK/Trace/SpanProcessor/MultiSpanProcessor.php 0.00% 3 Missing ⚠️
src/SDK/Trace/SpanProcessor/BatchSpanProcessor.php 0.00% 2 Missing ⚠️
...rc/SDK/Trace/SpanProcessor/SimpleSpanProcessor.php 0.00% 2 Missing ⚠️
src/SDK/Trace/Span.php 90.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #1483      +/-   ##
============================================
+ Coverage     70.49%   70.57%   +0.07%     
- Complexity     2792     2797       +5     
============================================
  Files           413      413              
  Lines          8416     8428      +12     
============================================
+ Hits           5933     5948      +15     
+ Misses         2483     2480       -3     
Flag Coverage Δ
8.2 70.40% <52.94%> (+0.08%) ⬆️
8.3 70.40% <52.94%> (+0.04%) ⬆️
8.4 70.50% <52.94%> (+0.08%) ⬆️
8.5 70.28% <52.94%> (-0.04%) ⬇️

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

Files with missing lines Coverage Δ
src/SDK/Trace/SpanProcessor/NoopSpanProcessor.php 100.00% <ø> (ø)
src/SDK/Trace/Span.php 94.15% <90.00%> (-0.48%) ⬇️
src/SDK/Trace/SpanProcessor/BatchSpanProcessor.php 98.51% <0.00%> (-1.49%) ⬇️
...rc/SDK/Trace/SpanProcessor/SimpleSpanProcessor.php 95.55% <0.00%> (-4.45%) ⬇️
src/SDK/Trace/SpanProcessor/MultiSpanProcessor.php 88.46% <0.00%> (-11.54%) ⬇️

... and 8 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 a537dbf...d1057fd. Read the comment docs.

src/SDK/Trace/Span.php Outdated Show resolved Hide resolved
@brettmc brettmc marked this pull request as draft January 24, 2025 23:45
cached vendor dir was causing havoc with a conflict between vendor and vendor-bin/psalm (amphp/amp)
@brettmc brettmc force-pushed the span-processor-onending branch from 74ec0fd to e7570c4 Compare January 27, 2025 23:41
@brettmc brettmc marked this pull request as ready for review January 28, 2025 00:32
@@ -3,5 +3,8 @@
"vimeo/psalm": "^5.24",
"psalm/plugin-mockery": "^1",
"psalm/plugin-phpunit": "^0.18.4"
},
"replace": {
"amphp/amp": "*"
Copy link
Collaborator Author

@brettmc brettmc Jan 28, 2025

Choose a reason for hiding this comment

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

This avoids a conflict between vendor-bin/psalm's version of amp conflicting with the dev dependency.

src/SDK/Trace/Span.php Outdated Show resolved Hide resolved
src/SDK/Trace/Span.php Outdated Show resolved Hide resolved
src/SDK/Trace/Span.php Outdated Show resolved Hide resolved
src/SDK/Trace/SpanProcessorInterface.php Outdated Show resolved Hide resolved
@brettmc brettmc merged commit 86fb69d into open-telemetry:2.x Jan 29, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants