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

Fixed log template resulting in nullreference exception #2560

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JTeeuwissen
Copy link

The escaped log template does not match the log arguments. This causes a nullreference exception with serilog, since the LogValuesFormatter creates a LogValues where the last item is null.

https://github.com/elastic/apm-agent-dotnet/blob/36670d5760fe0128e2082dc6918be4c40a3f0efc/src/Elastic.Apm/Logging/LogValuesFormatter.cs#L182C3-L198C4

Copy link

cla-checker-service bot commented Mar 3, 2025

💚 CLA has been signed

Copy link

github-actions bot commented Mar 3, 2025

👋 @JTeeuwissen Thanks a lot for your contribution!

It may take some time before we review a PR, so even if you don’t see activity for some time, it does not mean that we have forgotten about it.

Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming milestone. The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it.

@JTeeuwissen JTeeuwissen marked this pull request as draft March 3, 2025 10:35
@JTeeuwissen JTeeuwissen marked this pull request as ready for review March 3, 2025 10:36
@JTeeuwissen JTeeuwissen closed this Mar 3, 2025
@JTeeuwissen JTeeuwissen reopened this Mar 3, 2025
@stevejgordon
Copy link
Contributor

Thanks @JTeeuwissen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants