Skip to content

Update error message for idData hexadecimal length#12582

Merged
gewarren merged 1 commit intomainfrom
hoyosjs-patch-1
May 1, 2026
Merged

Update error message for idData hexadecimal length#12582
gewarren merged 1 commit intomainfrom
hoyosjs-patch-1

Conversation

@hoyosjs
Copy link
Copy Markdown
Member

@hoyosjs hoyosjs commented May 1, 2026

Summary

  • Updated the exception documentation in ActivityTraceId to state that idData must contain 32 hexadecimal characters, not 16, reflecting the actual string size.

Copilot AI review requested due to automatic review settings May 1, 2026 01:55
@hoyosjs hoyosjs requested a review from a team as a code owner May 1, 2026 01:55
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @tommcdon

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the API reference documentation for System.Diagnostics.ActivityTraceId to accurately describe the required hexadecimal string length for idData when creating a trace ID from a string.

Changes:

  • Corrected the ArgumentOutOfRangeException documentation for ActivityTraceId.CreateFromString(ReadOnlySpan<char>) to say idData must contain 32 hexadecimal characters (not 16).

@gewarren gewarren merged commit ed5152d into main May 1, 2026
12 checks passed
@gewarren gewarren deleted the hoyosjs-patch-1 branch May 1, 2026 19:07
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.

4 participants