Skip to content

Don't truncate traces at span depth 4 - #493

Open
nblumhardt-ro wants to merge 4 commits into
datalust:devfrom
nblumhardt-ro:trace-depth
Open

Don't truncate traces at span depth 4#493
nblumhardt-ro wants to merge 4 commits into
datalust:devfrom
nblumhardt-ro:trace-depth

Conversation

@nblumhardt-ro

Copy link
Copy Markdown

Formatting via the Serilog logger inadvertently truncates traces at the logger's maximum destructuring depth.

We're always dealing with already-serialization-friendly data in this context, so there's not much to lose by relaxing the depth limit.


var writer = new LoggerConfiguration()
.Destructure.With<JsonNetDestructuringPolicy>()
.Destructure.ToMaximumDepth(10000)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nobody will ever need an object nested to 10,000 levels

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