Skip to content
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

Default to nesting (un-flattening) dotted property names #232

Merged
merged 4 commits into from
Dec 2, 2024

Conversation

nblumhardt
Copy link
Member

Serilog 4.2 will allow dotted property names in message templates.

For Seq to provide a good querying experience over dotted names, and so that its message template rendering can work consistently with events ingested from this sink and those ingested via OTLP, the sink needs to process dotted names into nested objects prior to them being sent to the ingestion endpoint.

Because a small number of existing apps will already rely on dotted names being transmitted as-is, the PR includes an opt out through new SeqCompactJsonFormatter(..., preserveDottedNames: true).

The included test verifies that the expected processing is applied; the property name processing mechanism is already tested via UnflattedDottedPropertyNamesTests.cs.

@nblumhardt nblumhardt merged commit 4f63dd6 into datalust:dev Dec 2, 2024
1 check 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.

2 participants