Skip to content

feat(tracing): add Livewire support and improve tracing configuration#30

Merged
Naoray merged 4 commits intomainfrom
feat/tracing-improvements
Jan 27, 2026
Merged

feat(tracing): add Livewire support and improve tracing configuration#30
Naoray merged 4 commits intomainfrom
feat/tracing-improvements

Conversation

@Naoray
Copy link
Copy Markdown
Owner

@Naoray Naoray commented Jan 27, 2026

Summary

  • Adds Livewire component data collection support
  • Introduces ResolvesTracingConfig trait for consistent configuration resolution
  • Adds comprehensive default configuration file
  • Improves route detection for Livewire requests
  • Enhances user data collection with logout handling and caching

Changes

New Files

  • src/Tracing/LivewireDataCollector.php - Captures Livewire component data on hydrate events
  • src/Tracing/Concerns/ResolvesTracingConfig.php - Trait for reading tracing config from multiple locations
  • config/github-monolog.php - Default package configuration
  • tests/Tracing/LivewireDataCollectorTest.php - Tests for Livewire collector

Modified Files

  • RouteDataCollector - Detects Livewire routes and uses originating page for route summary
  • UserDataCollector - Adds logout event handling, caching, and custom resolver support
  • EventHandler - Uses new config resolution pattern
  • EnvironmentCollector, CommandContextCollector, JobContextCollector - Use ResolvesTracingConfig trait
  • Template files - Add Livewire section support

Test plan

  • All existing tests pass
  • New LivewireDataCollector tests pass
  • Route detection tests for Livewire routes pass
  • User data collector tests pass

🤖 Generated with Claude Code

Naoray and others added 4 commits January 27, 2026 17:44
- 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>
@Naoray Naoray force-pushed the feat/tracing-improvements branch from 35dd5db to da44457 Compare January 27, 2026 16:45
@Naoray Naoray merged commit d3ec90a into main Jan 27, 2026
11 checks passed
@Naoray Naoray deleted the feat/tracing-improvements branch January 27, 2026 16:45
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