Skip to content

Fixed GHA by syncing the minor release from upstream - #271

Merged
jerrytfleung merged 1 commit into
mainfrom
sync-upstream
Nov 19, 2026
Merged

jerrytfleung merged 1 commit into
mainfrom
sync-upstream

Conversation

@jerrytfleung

Copy link
Copy Markdown
Contributor

This pull request updates dependencies and improves configuration handling in the tracing sampler factory. The most important changes are:

Dependency Updates:

  • Updated OpenTelemetry packages in composer.json to the latest versions: open-telemetry/api to ^1.12, open-telemetry/exporter-otlp to ^1.6, and open-telemetry/sdk to ^1.17. This ensures compatibility with recent features and bug fixes.

Configuration Handling Improvements:

  • Changed the sampler configuration retrieval in SwoSamplerFactory from using Configuration::getString to Configuration::getEnum, improving type safety and correctness when reading the sampler type.

@jerrytfleung
jerrytfleung marked this pull request as ready for review November 19, 2026 17:29
@jerrytfleung
jerrytfleung requested review from a team as code owners November 19, 2026 17:29
Copilot AI balanced review requested due to automatic review settings November 19, 2026 17:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the OpenTelemetry dependency and sampler configuration updates.

No open issues 🎉

What changed in this PR

This PR updates OpenTelemetry dependencies and sampler configuration handling in the SolarWinds APM PHP library to address upstream compatibility and GitHub Actions failures.

Changes:

  • Raises minimum OpenTelemetry API, OTLP exporter, and SDK versions.
  • Switches sampler configuration retrieval from Configuration::getString to Configuration::getEnum.
File Description
src/​Trace/​SwoSamplerFactory.php Uses enum-based retrieval for OTEL_TRACES_SAMPLER.
composer.json Updates API to ^1.12, OTLP exporter to ^1.6, and SDK to ^1.17.

Review effort: Balanced

@jerrytfleung
jerrytfleung merged commit 5d641ad into main Nov 19, 2026
9 checks passed
@jerrytfleung
jerrytfleung deleted the sync-upstream branch November 19, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants