Skip to content

feat(tracing): add context collectors and processor for enhanced logging#22

Merged
Naoray merged 8 commits intomainfrom
refactor/stack-trace-formatter
Jan 9, 2026
Merged

feat(tracing): add context collectors and processor for enhanced logging#22
Naoray merged 8 commits intomainfrom
refactor/stack-trace-formatter

Conversation

@Naoray
Copy link
Copy Markdown
Owner

@Naoray Naoray commented Jan 9, 2026

Summary

This PR adds tracing capabilities with context collectors and processors, introduces formatters for structured data sections, adds template sections for tracing data, improves deduplication signature generation, and resolves security vulnerabilities.

Features

  • add context collectors and processor for enhanced logging
  • add formatters for structured data sections
  • add sections for tracing data

Fixes

  • resolve security vulnerabilities in league/commonmark and symfony/http-foundation

Refactors

  • improve signature generation with vendor frame detection

Naoray and others added 7 commits January 9, 2026 15:32
- Add ContextProcessor to collect and merge context data
- Add collectors for environment, session, route, queries, jobs, commands, and outgoing requests
- Add contracts for DataCollectorInterface and EventDrivenCollectorInterface
- Refactor EventHandler to support multiple event-driven collectors
- Update RequestDataCollector and UserDataCollector to use new interfaces
- Add comprehensive test coverage for all collectors
- Add ContextFormatter to format remaining context data
- Add ExtraFormatter to format extra log data
- Add OutgoingRequestFormatter to format HTTP client requests
- Add QueryFormatter to format database queries
- Add StructuredDataFormatter for environment, request, route, user, job, command, and session data
- Update TemplateRenderer to use new formatters for all sections
- Update SectionMapping and StackTraceFormatter
- Add comprehensive test coverage
- Add environment, request, route, user, queries, job, command, outgoing requests, and session sections to issue template
- Update comment template with matching sections
…me detection

- Add VendorFrameDetector to identify vendor frames in stack traces
- Refactor DefaultSignatureGenerator to use vendor frame detection
- Improve message-based signature generation to use stable context keys
- Update signature generation to handle exceptions more reliably
- Update GithubIssueHandlerFactory to inject VendorFrameDetector
- Add comprehensive test coverage for signature generation improvements
@Naoray Naoray force-pushed the refactor/stack-trace-formatter branch from 6a300a1 to 8aea848 Compare January 9, 2026 15:06
@Naoray Naoray force-pushed the refactor/stack-trace-formatter branch from 7421611 to 758b2c3 Compare January 9, 2026 15:21
@Naoray Naoray merged commit e89e287 into main Jan 9, 2026
11 checks passed
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