Skip to content

DRAFTDONOTMERGE feat(agent): handle special segment starts with fibers#1215

Draft
zsistla wants to merge 2 commits into
feat/fibersfrom
fiber/handle_segment_start
Draft

DRAFTDONOTMERGE feat(agent): handle special segment starts with fibers#1215
zsistla wants to merge 2 commits into
feat/fibersfrom
fiber/handle_segment_start

Conversation

@zsistla
Copy link
Copy Markdown
Contributor

@zsistla zsistla commented May 1, 2026

No description provided.

@newrelic-php-agent-bot
Copy link
Copy Markdown

newrelic-php-agent-bot commented May 1, 2026

Test Suite Status Result
Multiverse 12/18 passing
SOAK 134/135 passing

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 1, 2026

Codecov Report

❌ Patch coverage is 47.61905% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.19%. Comparing base (6af103c) to head (97b699c).

Files with missing lines Patch % Lines
agent/lib_aws_sdk_php.c 0.00% 4 Missing ⚠️
axiom/nr_segment.c 70.00% 3 Missing ⚠️
agent/lib_laminas_http.c 0.00% 2 Missing ⚠️
agent/lib_php_amqplib.c 0.00% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           feat/fibers    #1215      +/-   ##
===============================================
- Coverage        80.20%   80.19%   -0.01%     
===============================================
  Files              190      190              
  Lines            27830    27840      +10     
===============================================
+ Hits             22320    22327       +7     
- Misses            5510     5513       +3     
Flag Coverage Δ
agent-for-php-7.2 80.04% <56.25%> (-0.01%) ⬇️
agent-for-php-7.3 80.06% <56.25%> (-0.01%) ⬇️
agent-for-php-7.4 79.93% <56.25%> (-0.01%) ⬇️
agent-for-php-8.0 79.49% <56.25%> (-0.01%) ⬇️
agent-for-php-8.1 79.80% <45.00%> (-0.01%) ⬇️
agent-for-php-8.2 79.41% <40.00%> (-0.01%) ⬇️
agent-for-php-8.3 79.49% <40.00%> (-0.01%) ⬇️
agent-for-php-8.4 79.50% <40.00%> (-0.01%) ⬇️
agent-for-php-8.5 78.82% <40.00%> (-0.01%) ⬇️

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

☔ 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.

zsistla added 2 commits May 13, 2026 13:16
This causes different behavior than just passing the parent to nr_segment_start as a parameter to segment start.
Please note the updated documentation for nr_segment_start.
The updated documentation does NOT reflect new behavior.
It reflects CURRENT behavior that was not previously documented as such.
New segments should be started in the context of their parent for proper parentage.
auto_segment helps with this.
@zsistla zsistla force-pushed the fiber/handle_segment_start branch from 82615f9 to 97b699c Compare May 13, 2026 20:16
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.

3 participants