E53C [otlp] Fix incorrect length handling of Status.Description exceeding 127 bytes by rajkumar-rangaraj · Pull Request #6119 · open-telemetry/opentelemetry-dotnet · GitHub
[go: up one dir, main page]

Skip to content

Conversation

rajkumar-rangaraj
Copy link
Contributor

Fixes #6117
Design discussion issue #

Changes

Please provide a brief description of the changes here.

Fixed an issue with incorrect length encoding of Status.Description when its byte length exceeds 127. The previous behavior resulted in incorrect reporting, causing serialization issues and potential payload corruption. The fix ensures proper length encoding and safe handling of longer descriptions.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes

@rajkumar-rangaraj rajkumar-rangaraj requested a review from a team as a code owner January 31, 2025 20:49
@github-actions github-actions bot added the pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package label Jan 31, 2025
Copy link
Member
@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

CHANGELOG suggestion but LGTM

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
@rajkumar-rangaraj rajkumar-rangaraj merged commit 36b777b into open-telemetry:main Feb 1, 2025
35 checks passed
Copy link
codecov bot commented Feb 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.39%. Comparing base (cccf1ec) to head (401a544).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6119      +/-   ##
==========================================
- Coverage   86.39%   86.39%   -0.01%     
==========================================
  Files         257      257              
  Lines       11640    11639       -1     
==========================================
- Hits        10056    10055       -1     
  Misses       1584     1584              
Files with missing lines Coverage Δ
...entation/Serializer/ProtobufOtlpTraceSerializer.cs 95.00% <ø> (-0.02%) ⬇️

@davidfowl
Copy link
Contributor

@CodeBlanch is this in any release?

@CodeBlanch
Copy link
Member

@davidfowl Not yet.

/cc @rajkumar-rangaraj

@rajkumar-rangaraj
Copy link
Contributor Author

@davidfowl Plan to release the hotfix by the end of this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Span/Activity cannot be exported to Tempo if Activity.StatusDescription has the length of 128 characters or greater
4 participants
0