Skip to content

Remove backpressure from XMLDoc#2203

Merged
nblumhardt merged 1 commit intoserilog:devfrom
timothycoleman:fix-backpressure-xml-doc
Sep 26, 2025
Merged

Remove backpressure from XMLDoc#2203
nblumhardt merged 1 commit intoserilog:devfrom
timothycoleman:fix-backpressure-xml-doc

Conversation

@timothycoleman
Copy link
Contributor

Because backpressure is not applied, instead events are discarded when the queue is full.

The xmldoc for BatchingOptions.QueueLimit says that backpressure is applied when the limit is exceeded.

However, in BatchingSink.cs we see that no backpressure is applied

_queue.Writer.TryWrite(logEvent);

Instead the event is discarded (which is good).

To me it looks like a mistake in the XMLDoc, and this PR adjusts it.

Because backpressure is not applied, instead events are discarded when the queue is full.
@nblumhardt
Copy link
Member

Nice spotting - thanks! (Some leftovers from an earlier prototype, IIRC :-))

@nblumhardt nblumhardt merged commit 1f36d2e into serilog:dev Sep 26, 2025
1 check passed
@timothycoleman timothycoleman deleted the fix-backpressure-xml-doc branch September 27, 2025 06:55
@nblumhardt nblumhardt mentioned this pull request Feb 10, 2026
This was referenced Feb 10, 2026
tetsuo13 pushed a commit to tetsuo13/TeamsStatusPub that referenced this pull request Feb 17, 2026
Updated [Serilog](https://github.com/serilog/serilog) from 4.3.0 to
4.3.1.

<details>
<summary>Release notes</summary>

_Sourced from [Serilog's
releases](https://github.com/serilog/serilog/releases)._

## 4.3.1

## What's Changed
* Remove SourceLink by @​SimonCropp in
serilog/serilog#2183
* Handle Exception.ToString failures in text formatter by @​krisbiradar
in serilog/serilog#2197
* Remove char[] allocation by @​karpinsn in
serilog/serilog#2198
* Remove backpressure from XMLDoc by @​timothycoleman in
serilog/serilog#2203
* Don't enable XDOC for tests by @​nblumhardt in
serilog/serilog#2205
* Target and test on net10 by @​SimonCropp in
serilog/serilog#2206
* Fix trimming error when Serilog is a transitive dependency by @​Numpsy
in serilog/serilog#2214
* Inline TraceId and SpanId JSON string formatting by @​SimonCropp in
serilog/serilog#2215

## New Contributors
* @​krisbiradar made their first contribution in
serilog/serilog#2197
* @​karpinsn made their first contribution in
serilog/serilog#2198
* @​timothycoleman made their first contribution in
serilog/serilog#2203
* @​Numpsy made their first contribution in
serilog/serilog#2214

**Full Changelog**:
serilog/serilog@v4.3.0...v4.3.1

Commits viewable in [compare
view](serilog/serilog@v4.3.0...v4.3.1).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Serilog&package-manager=nuget&previous-version=4.3.0&new-version=4.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

Comments