Skip to content

Conversation

@Rafikooo
Copy link
Collaborator

@Rafikooo Rafikooo commented Jan 30, 2026

Uses PrependExtensionInterface to enable telemetry before SyliusCoreExtension processes its config. This covers both disable paths:

  • ENV disabled (SYLIUS_TELEMETRY_ENABLED=0) — overrides $_ENV and $_SERVER to '1'
  • Config disabled (sylius_core.telemetry.enabled: false) — prepends config with enabled: true

A compiler pass alone wouldn't work because SyliusCoreExtension::configureTelemetry() skips loading telemetry services entirely when ENV is disabled — by the time a compiler pass runs, services are already missing.

Dev/test environments are skipped.

Compatibility

Composer constraints support Sylius ^1.12 with Symfony ^5.4. For Sylius versions older than 1.12.20 / 1.13.12 / 1.14.14 (before telemetry was added), the extension checks interface_exists(TelemetrySendManagerInterface::class) and gracefully skips if telemetry is not available.

CI only covers Sylius 1.14+ and 2.x because sylius/test-application does not exist for 1.12/1.13. The isTelemetrySupported() guard is unit-tested separately.

@Rafikooo Rafikooo changed the title Add TelemetryPass compiler pass Force-enable telemetry when bundle is installed Jan 30, 2026
@Rafikooo Rafikooo changed the title Force-enable telemetry when bundle is installed Enable telemetry when bundle is installed Jan 30, 2026
@Rafikooo Rafikooo changed the title Enable telemetry when bundle is installed Add TelemetryExtension — ensure telemetry is active for official plugins Jan 30, 2026
@Rafikooo Rafikooo changed the title Add TelemetryExtension — ensure telemetry is active for official plugins Ensure telemetry is active for official plugins Jan 30, 2026
@Rafikooo Rafikooo force-pushed the add-telemetry-pass branch 14 times, most recently from 84c1e0b to bd99ac4 Compare January 30, 2026 14:48
@Rafikooo Rafikooo changed the title Ensure telemetry is active for official plugins Telemetry for official plugins Jan 30, 2026
@Rafikooo Rafikooo force-pushed the add-telemetry-pass branch 9 times, most recently from b7fc5c9 to 1856185 Compare February 2, 2026 09:34
@Rafikooo Rafikooo force-pushed the add-telemetry-pass branch 3 times, most recently from 75992b9 to ce3b304 Compare February 2, 2026 09:45
@Rafikooo
Copy link
Collaborator Author

Rafikooo commented Feb 2, 2026

I'm closing in favor of: #4

@Rafikooo Rafikooo closed this Feb 2, 2026
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.

1 participant