-
Notifications
You must be signed in to change notification settings - Fork 0
Feature | Add Doctrine logging generic classes #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
97ff4ea to
1aa5516
Compare
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasperrone-exo please review comments
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasperrone-exo please review comments
b738815 to
28dd586
Compare
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasperrone-exo please review comments
|
@smarcet please review it again as all the requested changes were incorporated. |
8caff3f to
91841ea
Compare
cd8efb9 to
6edc929
Compare
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