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

[BUG] Elastic.CommonSchema.NLog : trace.id field contains extra } #347

Closed
MathieuJouis opened this issue Nov 20, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@MathieuJouis
Copy link

ECS integration/library project(s): Elastic.CommonSchema.NLog 8.6.1

**ECS schema version **: 8.6.0

.NET framework / OS: .NET 7.0

Description of the problem, including expected versus actual behavior:

The produced field trace.id contains an extra } :

e.g. : "trace.id": "0HMV9PNIEVF7F:00000009}"

{
    "@timestamp": "2023-11-20T14:38:10.248235+01:00",
    "log.level": "Info",
    "message": "Message log",
    "ecs.version": "8.6.0",
    "log": {
        "logger": "My.Logger",
        "origin.file.name": "",
        "origin.function": ""
    },
    "span.id": "4c1ae36601f62ccc",
    "trace.id": "0HMV9PNIEVF7F:00000009}"
}

Responsible line :

ApmTraceId = "${scopeproperty:item=RequestId:whenEmpty=${aspnet-TraceIdentifier}}}";

@MathieuJouis MathieuJouis added the bug Something isn't working label Nov 20, 2023
@Mpdreamz
Copy link
Member

Mpdreamz commented Apr 5, 2024

Thank you for reporting this, and apologies for us taking a while to address this.

This should now be fixed as per #348 and a new release will go out shortly.

@Mpdreamz Mpdreamz closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants