Skip to content

Comments

Support symfony 8#1839

Merged
brettmc merged 4 commits intoopen-telemetry:mainfrom
Orest-Divintari:orest/support-symfony8
Jan 15, 2026
Merged

Support symfony 8#1839
brettmc merged 4 commits intoopen-telemetry:mainfrom
Orest-Divintari:orest/support-symfony8

Conversation

@Orest-Divintari
Copy link
Contributor

No description provided.

@Orest-Divintari Orest-Divintari requested a review from a team as a code owner December 18, 2025 19:18
@Orest-Divintari Orest-Divintari marked this pull request as draft December 18, 2025 19:18
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 18, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.37%. Comparing base (f413878) to head (0bc6962).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1839      +/-   ##
============================================
+ Coverage     68.30%   68.37%   +0.06%     
  Complexity     2976     2976              
============================================
  Files           449      449              
  Lines          8724     8726       +2     
============================================
+ Hits           5959     5966       +7     
+ Misses         2765     2760       -5     
Flag Coverage Δ
8.1 ?
8.2 68.28% <ø> (?)
8.3 68.34% <ø> (?)
8.4 68.29% <ø> (?)
8.5 67.46% <ø> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...on/Internal/NodeDefinition/ArrayNodeDefinition.php 0.00% <ø> (ø)
.../Internal/NodeDefinition/BooleanNodeDefinition.php 0.00% <ø> (ø)
...ion/Internal/NodeDefinition/EnumNodeDefinition.php 0.00% <ø> (ø)
...on/Internal/NodeDefinition/FloatNodeDefinition.php 0.00% <ø> (ø)
.../Internal/NodeDefinition/IntegerNodeDefinition.php 0.00% <ø> (ø)
...n/Internal/NodeDefinition/ScalarNodeDefinition.php 0.00% <ø> (ø)
...n/Internal/NodeDefinition/StringNodeDefinition.php 0.00% <ø> (ø)
...Internal/NodeDefinition/VariableNodeDefinition.php 0.00% <ø> (ø)

... 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 f413878...0bc6962. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

In Symfony 8, the NodeParentInterface was changed to an empty interface,
removing method declarations that existed in Symfony 5-7. The fluent
builder methods (end(), scalarNode(), etc.) still exist on concrete
classes but are no longer part of the interface signature.

Additionally, Symfony 8 removed template parameters from node definition
classes, causing TooManyTemplateParams errors for our internal
NodeDefinition classes that extend Symfony's base classes.
@Orest-Divintari Orest-Divintari marked this pull request as ready for review December 20, 2025 09:58
@Orest-Divintari
Copy link
Contributor Author

Orest-Divintari commented Dec 20, 2025

hi @brettmc @bobstrecansky could you please have a look when you have time ?
locally every check is passing

@bobstrecansky
Copy link
Contributor

I'll be happy to review once the CLA is signed. Thanks in advance @Orest-Divintari !

@Orest-Divintari
Copy link
Contributor Author

Orest-Divintari commented Jan 9, 2026

I'll be happy to review once the CLA is signed. Thanks in advance @Orest-Divintari !

Hi @brettmc @bobstrecansky and happy new year

The agreement has been signed, could you please have a look whenever you have time ?

@brettmc brettmc mentioned this pull request Jan 15, 2026
@brettmc
Copy link
Contributor

brettmc commented Jan 15, 2026

Hi @Orest-Divintari thanks for the contribution. Could you please take a look at the failing phpstan errors, which look relevant to this change? thanks!

edit: nvm, it's only failing in 8.1, which I think we've dropped support for since it's no longer officially supported

@brettmc brettmc merged commit 4b42c97 into open-telemetry:main Jan 15, 2026
8 of 9 checks passed
@Orest-Divintari
Copy link
Contributor Author

Hi @Orest-Divintari thanks for the contribution. Could you please take a look at the failing phpstan errors, which look relevant to this change? thanks!

edit: nvm, it's only failing in 8.1, which I think we've dropped support for since it's no longer officially supported

hi @brettmc thanks for taking the time to review and merge it
could you also tag it please ?

@brettmc
Copy link
Contributor

brettmc commented Jan 20, 2026

@Orest-Divintari that might need to wait a couple of days, sorry. There aren't any pending changes in the API...that requirement came from https://github.com/open-telemetry/opentelemetry-php/pull/1729/files#diff-2bfa3bf55090de7d62d81745d2cf6ec24ef4a3ec2eb9504725f5f963416e4b3e but I don't see any clues as to why the bump.

In the meantime, can you try aliasing the API to 1.8 in composer.json? There's one PR open in draft which touches the API so I hope that can be merged quickly.

@Orest-Divintari
Copy link
Contributor Author

@Orest-Divintari that might need to wait a couple of days, sorry. There aren't any pending changes in the API...that requirement came from https://github.com/open-telemetry/opentelemetry-php/pull/1729/files#diff-2bfa3bf55090de7d62d81745d2cf6ec24ef4a3ec2eb9504725f5f963416e4b3e but I don't see any clues as to why the bump.

In the meantime, can you try aliasing the API to 1.8 in composer.json? There's one PR open in draft which touches the API so I hope that can be merged quickly.

hi @brettmc thanks for the reply.

I have tagged the API in the composer already with the hash commit as a temporary solution because the sdk configuration required at least api:1.8.

I just wanted to check if that is something that could be resolved on your side so i can update the composer to use normal versions instead of specific has commits

@ruudk
Copy link

ruudk commented Jan 20, 2026

The issue is that https://packagist.org/packages/open-telemetry/sdk-configuration 0.5.0 depends on open-telemetry/api: ^1.8. That does not exist.

So either it should be lowered again in sdk-configuration, or open-telemetry/api should be tagged.

@ruudk
Copy link

ruudk commented Jan 20, 2026

This was done in opentelemetry-php/config-sdk@5d8abf3 but I fail to understand why.

@ruudk
Copy link

ruudk commented Jan 20, 2026

@Nevay Would be great if you could help out here.

@Nevay
Copy link
Contributor

Nevay commented Jan 20, 2026

opentelemetry-php/config-sdk@5d8abf3 uses a newly added method Configuration\Context::withExtension() (related commit in the API package: opentelemetry-php/api@63d4d9c), calling Configuration::create() with API < 1.8.0-dev would fail.

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.

5 participants