Skip to content

Avoid creating many server spans#236

Merged
brettmc merged 1 commit into
open-telemetry:mainfrom
cedricziel:patch-4
Feb 28, 2024
Merged

Avoid creating many server spans#236
brettmc merged 1 commit into
open-telemetry:mainfrom
cedricziel:patch-4

Conversation

@cedricziel

@cedricziel cedricziel commented Feb 12, 2024

Copy link
Copy Markdown
Contributor

When root span is already present, avoid creating additional kind=server ones.

This is a problem with nested request handlers.

Instead recognize the existing one and mark child spans created for request handlers as internal

When root span is already present, avoid creating additional ones.

This is a problem with nested request handlers.
@cedricziel
cedricziel requested a review from a team February 12, 2024 20:52
@codecov

codecov Bot commented Feb 12, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5e8357b) 85.44% compared to head (0592537) 85.44%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #236   +/-   ##
=========================================
  Coverage     85.44%   85.44%           
  Complexity      966      966           
=========================================
  Files            88       88           
  Lines          3916     3916           
=========================================
  Hits           3346     3346           
  Misses          570      570           
Flag Coverage Δ
7.4 85.71% <ø> (ø)
8.0 84.58% <100.00%> (ø)
8.1 84.69% <100.00%> (ø)
8.2 85.36% <100.00%> (ø)

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

Files Coverage Δ
...Instrumentation/Psr15/src/Psr15Instrumentation.php 93.50% <100.00%> (ø)

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 5e8357b...0592537. Read the comment docs.

@brettmc
brettmc merged commit 62fe1ea into open-telemetry:main Feb 28, 2024
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