Feature | Add Doctrine logging generic classes#96
Merged
Conversation
matiasperrone-exo
force-pushed
the
feat/add-doctrine-event-listener
branch
from
January 5, 2026 19:36
97ff4ea to
1aa5516
Compare
matiasperrone-exo
marked this pull request as ready for review
January 5, 2026 19:40
smarcet
reviewed
Jan 6, 2026
smarcet
requested changes
Jan 6, 2026
smarcet
left a comment
Collaborator
There was a problem hiding this comment.
@matiasperrone-exo please review comments
smarcet
reviewed
Jan 7, 2026
smarcet
requested changes
Jan 7, 2026
smarcet
left a comment
Collaborator
There was a problem hiding this comment.
@matiasperrone-exo please review comments
matiasperrone-exo
force-pushed
the
feat/add-doctrine-event-listener
branch
from
January 8, 2026 15:38
b738815 to
28dd586
Compare
smarcet
reviewed
Jan 9, 2026
smarcet
reviewed
Jan 9, 2026
smarcet
requested changes
Jan 9, 2026
smarcet
left a comment
Collaborator
There was a problem hiding this comment.
@matiasperrone-exo please review comments
Contributor
Author
|
@smarcet please review it again as all the requested changes were incorporated. |
matiasperrone-exo
force-pushed
the
feat/add-doctrine-event-listener
branch
3 times, most recently
from
January 9, 2026 22:03
cd8efb9 to
6edc929
Compare
smarcet
reviewed
Jan 14, 2026
smarcet
reviewed
Jan 14, 2026
matiasperrone-exo
force-pushed
the
feat/add-doctrine-event-listener
branch
4 times, most recently
from
January 15, 2026 21:56
1bf31f8 to
e92e0ef
Compare
|
@smarcet please can you review this PR before 97. This contains the UT. |
matiasperrone-exo
force-pushed
the
feat/add-doctrine-event-listener
branch
from
January 19, 2026 21:22
895b226 to
b039221
Compare
matiasperrone-exo
force-pushed
the
feat/add-doctrine-event-listener
branch
from
January 19, 2026 21:32
b039221 to
9ee4d37
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.
Overview
This PR introduces a comprehensive Doctrine ORM audit logging framework with support for both database-backed and OpenTelemetry-based audit strategies.
Key Features
AuditContextclass that captures user, request, and application metadataAuditEventListenerthat intercepts Doctrine ORM events (insertions, updates, deletions, collection changes)AuditLogStrategy- Database persistence strategyAuditLogOtlpStrategy- OpenTelemetry/Elasticsearch integrationAbstractAuditLogFormatter- Base class for all formattersEmitAuditLogJobfor asynchronous audit log emissionFiles Added
app/Audit/AbstractAuditLogFormatter.phpapp/Audit/AuditContext.phpapp/Audit/AuditEventListener.phpapp/Audit/AuditLogFormatterFactory.phpapp/Audit/AuditLogOtlpStrategy.phpapp/Audit/AuditLogStrategy.phpapp/Audit/AuditLoggerFactory.phpapp/Audit/AuditProvider.phpapp/Audit/Interfaces/IAuditStrategy.phpapp/Audit/Interfaces/IAuditLogFormatter.phpapp/Audit/Interfaces/IAuditLogFormatterFactory.phpapp/Audit/Interfaces/ILogger.phpapp/Audit/ConcreteFormatters/EntityCreationAuditLogFormatter.phpapp/Audit/ConcreteFormatters/EntityUpdateAuditLogFormatter.phpapp/Audit/ConcreteFormatters/EntityDeletionAuditLogFormatter.phpapp/Audit/ConcreteFormatters/EntityCollectionUpdateAuditLogFormatter.phpapp/Audit/ConcreteFormatters/ChildEntityFormatters/IChildEntityAuditLogFormatter.phpapp/Audit/ConcreteFormatters/ChildEntityFormatters/ChildEntityFormatterFactory.phpapp/Jobs/EmitAuditLogJob.phpconfig/audit_log.phpFiles Modified
app/ModelSerializers/SerializerRegistry.php- Code formatting improvementsArchitecture Highlights
Configuration
The audit system checks for
opentelemetry.enabledconfiguration:Notes
Task:
Ref: https://app.clickup.com/t/86b7xy5fp