Skip to content

Conversation

@bram123
Copy link
Member

@bram123 bram123 commented Jun 3, 2025

  • All components are now configured with $config->{component}()->enabled(). -- Previously some were $config->enable{component}() and others $config->{component}()->enabled() -- This makes it easier in the future to add more settings for these components
  • messenger is now enabled by default -- To have full tracing by default
  • Marked some more classes as @internal -- As this is a bundle and not a library to use, only the bundle configuration and the required interfaces should be used outside this bundle

- All components are now configured with `$config->{component}()->enabled()`.
-- Previously some were `$config->enable{component}()` and others `$config->{component}()->enabled()`
-- This makes it easier in the future to add more settings for these components
- messenger is now enabled by default
-- To have full tracing by default
- Marked some more classes as @internal
-- As this is a bundle and not a library to use, only the bundle configuration and the required interfaces should be used outside this bundle
Copilot AI review requested due to automatic review settings June 3, 2025 13:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR prepares the 1.0 release by unifying component enable flags as nested enabled arrays, enabling messenger by default, and marking internal classes with @internal.

  • Consolidate all component flags (monolog, console, messenger, twig) under array nodes with an enabled child
  • Change messenger integration to be enabled by default in both config and tests
  • Annotate internal classes and compiler passes with @internal

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/Functional/App/config/traceid.yml Replace enable_messenger with messenger.enabled
tests/Functional/App/config/tracecontext.yml Replace enable_messenger with messenger.enabled
src/TraceStorage.php Add @internal annotation to TraceStorage
src/Service/TraceContext/TraceContextParser.php Add @internal annotation to TraceContextParser
src/Messenger/TraceStamp.php Add @internal annotation to TraceStamp
src/Http/TraceAwareHttpClient.php Add @internal annotation to TraceAwareHttpClient
src/Generator/TraceId/SymfonyUuid4Generator.php Add @internal annotation
src/Generator/TraceId/RamseyUuid4Generator.php Add @internal annotation
src/DependencyInjection/SymfonyTraceExtension.php Updated service configuration checks and replaced flat flags
src/DependencyInjection/Configuration.php Switched boolean nodes to array nodes for all enabled flags
src/DependencyInjection/Compiler/HttpClientTracePass.php Mark compiler pass as @internal
phpstan-baseline.neon Adjust baseline regex for updated config structure
docs/configuration/traceid.md Updated example calls to use new monolog(), messenger(), twig() APIs
docs/configuration/tracecontext.md Updated example calls to use new monolog(), messenger(), twig() APIs
README.md Updated default notes for HTTP client and messenger settings

Change readme config notation
@bram123 bram123 requested a review from frankdekker June 3, 2025 13:18
@bram123 bram123 merged commit 717da55 into 123inkt:master Jun 3, 2025
14 checks passed
@bram123 bram123 deleted the prepare_1_0 branch June 3, 2025 15:25
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.

2 participants