You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inserting events into the repository, the generated logs use the a Type property: MongoCommitRepository
Line 194 logger.LogError(e, "Error when saving a commit for {type} {id}", commit.AggregateType, commit.AggregateId);
and Line 203 logger.LogDebug("{Count} events for {Type} - {Id} handled. Result: {Result}.", commit.Events.Count, commit.AggregateType, commit.AggregateId, result.CommitId);
When using structured logs, the Type property is usually already in use by some data processing pipelines, in this particular Logstash, which then can cause errors.
Proposal
Rename the Type property to AggregateType to prevent such conflicts
The text was updated successfully, but these errors were encountered:
Description
When inserting events into the repository, the generated logs use the a
Type
property:MongoCommitRepository
Line 194
logger.LogError(e, "Error when saving a commit for {type} {id}", commit.AggregateType, commit.AggregateId);
and Line 203
logger.LogDebug("{Count} events for {Type} - {Id} handled. Result: {Result}.", commit.Events.Count, commit.AggregateType, commit.AggregateId, result.CommitId);
When using structured logs, the
Type
property is usually already in use by some data processing pipelines, in this particular Logstash, which then can cause errors.Proposal
Rename the
Type
property toAggregateType
to prevent such conflictsThe text was updated successfully, but these errors were encountered: