Symfony Telemetry Bundle - Chores & Features#2489
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 1.x #2489 +/- ##
============================================
+ Coverage 85.22% 85.73% +0.50%
- Complexity 21571 21695 +124
============================================
Files 1627 1640 +13
Lines 66558 66943 +385
============================================
+ Hits 56725 57393 +668
+ Misses 9833 9550 -283 🚀 New features to boost your workflow:
|
… and messenger instrumentation - complete sub-request spans on kernel.finish_request - detach extracted request propagation scope so it no longer leaks into the next request - detach messenger continuation/baggage scope after handling
- decorate the request span with the authenticated user (configurable user.id/roles/email) - capture the user at kernel.controller and on LoginSuccessEvent - add UserSpanAttributeProvider extension point for custom attributes
- show resource attributes, instrumentation scopes, and configured instruments (collapsible) - capture the in-flight HTTP server span so the root request span appears in the panel
…d route-aware span namin - outgoing trace context propagation via TraceContextProvider, Twig helpers and trace-context URL generator - extract incoming context from the URL query string (context_propagation_query, off by default) - name request spans by route path template or route name (route_naming), with sub-request/controller fallbacks
- wrap client in lazy proxy, deferring pg_connect until first use - add per-connection lazy flag (default true) to opt back into eager
…runtimes - add runtime_mode (auto|classic|worker) with FrankenPHP/RoadRunner auto-detection - flush on terminate in worker mode instead of shutting the transport down - reset trace context between requests via kernel.reset - harden span completion so a failure can't strand the context scope
… emit the request span - resolve the request (SERVER) span via RequestStack instead of the active inner span - keeps documentLoad/AJAX parented under the request regardless of call site or Twig tracing
- leave span status Unset on success instead of Ok - set error.type on error spans (exception FQCN, HTTP/exit code, token) - server spans: only 5xx is an error, 4xx stays unset - record errors in controller arg/value/controller resolvers
696c6cc to
a9d45c0
Compare
…kernel environment - env-keyed default cache path so dev/prod don't freeze deployment.environment.name - track new cache filename in test cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Log
Added
flow-php/symfony-telemetry-bundle- security instrumentationflow-php/symfony-telemetry-bundle- enriched web profiler panelflow-php/symfony-telemetry-bundle- trace context propagation and route-aware span namingflow-php/symfony-telemetry-bundle- long-running worker runtime supportflow-php/symfony-http-foundation-telemetry-bridge- query string trace context carrierFixed
flow-php/symfony-telemetry-bundle- browser trace-context helpers emit the request spanflow-php/symfony-telemetry-bundle- leaked context scopes in HTTP and messenger instrumentationChanged
flow-php/symfony-postgresql-bundle- lazy connections by defaultRemoved
Deprecated
Security