feat(tracing): add Livewire support and improve tracing configuration#30
Merged
feat(tracing): add Livewire support and improve tracing configuration#30
Conversation
- Add LivewireDataCollector for capturing Livewire component data - Add ResolvesTracingConfig trait for consistent config resolution - Add config/github-monolog.php with comprehensive default configuration - Improve RouteDataCollector with Livewire route detection - Enhance UserDataCollector with logout event handling and caching - Update EventHandler to use new config resolution pattern - Add Livewire section support in templates Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rewrite LivewireDataCollector to use request-based detection - Detects via X-Livewire header or /livewire/update path - Parses component data directly from request payload - No Livewire package dependency required - Captures: component name, id, path, methods, updated properties - Add InertiaDataCollector for Inertia.js requests - Detects via X-Inertia header - Captures: component, version, partial reload info, partial keys - No Inertia package dependency required - Update EventHandler to support multiple collectors per event - Restore context dehydration to prevent bloated job payloads - Add Inertia section to issue template and section mappings - Update ContextFormatter to exclude new context keys Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35dd5db to
da44457
Compare
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.
Summary
ResolvesTracingConfigtrait for consistent configuration resolutionChanges
New Files
src/Tracing/LivewireDataCollector.php- Captures Livewire component data on hydrate eventssrc/Tracing/Concerns/ResolvesTracingConfig.php- Trait for reading tracing config from multiple locationsconfig/github-monolog.php- Default package configurationtests/Tracing/LivewireDataCollectorTest.php- Tests for Livewire collectorModified Files
RouteDataCollector- Detects Livewire routes and uses originating page for route summaryUserDataCollector- Adds logout event handling, caching, and custom resolver supportEventHandler- Uses new config resolution patternEnvironmentCollector,CommandContextCollector,JobContextCollector- Use ResolvesTracingConfig traitTest plan
🤖 Generated with Claude Code