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

Add Marshalers for profiling signal type #6680

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

jhalliday
Copy link
Contributor

Second instalment of the OTLP marshaling code for the profiling signal. Following on from #6565 which had the 'payload' data types (pprofextended.proto), this one has the 'envelope' types (profiles.proto).

Little of particular interest here, it's largely boilerplate.

There is an outstanding task to look at how the ByteBuffer type field is handled - it's the first usage in any signal type and the marshaling utility code doesn't have support for it, so for now it's just converted to byte[]. Adding the utility code will require some design discussion that feels better suited to factoring out into a separate PR, but I'd like to get this one in meanwhile as it's usefully functional even without that optimization.

@jhalliday jhalliday requested a review from a team September 2, 2024 14:04
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.05%. Comparing base (485c123) to head (66bcc92).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6680   +/-   ##
=========================================
  Coverage     90.05%   90.05%           
  Complexity     6457     6457           
=========================================
  Files           718      718           
  Lines         19511    19511           
  Branches       1922     1922           
=========================================
  Hits          17571    17571           
  Misses         1350     1350           
  Partials        590      590           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

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

Couple of nits, but looks good. Will merge after hearing back from you. Thanks!

Envelope Marshalers, draft.
Changes addressing review comments
@jhalliday
Copy link
Contributor Author

Thanks for the review. All changes done, along with the knock-on InstrumentationScopeProfilesMarshaler array->List modification.

@jack-berg jack-berg merged commit af59cc4 into open-telemetry:main Sep 20, 2024
17 of 18 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.

2 participants