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 bug #515 #535

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Conversation

vui611
Copy link
Contributor

@vui611 vui611 commented Apr 30, 2024

When include 2 standard columns SpanId and TraceId, AuditTo() will throw an exception. The quick solution is adding ToString() for these columns in the function GetStandardColumnNameAndValue
Fix #515

When include 2 standard columns SpanId and TraceId, AuditTo will throw an exception. The quick solution is adding ToString() for these columns.
@ckadluba
Copy link
Member

ckadluba commented Apr 30, 2024

Thank you very much for the contribution! Can you please add at least one unit test to ensure the fix?

BR,
Christian

@vui611
Copy link
Contributor Author

vui611 commented Apr 30, 2024

@ckadluba I have updated your exist test cases in the latest commit. Please have a look when you have a chance.
Regards,

@ckadluba ckadluba added this pull request to the merge queue Apr 30, 2024
Merged via the queue into serilog-mssql:dev with commit b019022 Apr 30, 2024
4 of 5 checks 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.

Cannot use .AuditTo with SpanId or TraceId
2 participants