Low allocation OTLP marshalers for OtlpJsonLogging{Signal}Exporters#7616
Low allocation OTLP marshalers for OtlpJsonLogging{Signal}Exporters#7616vasantteja wants to merge 14 commits into
Conversation
…/github.com/vasantteja/opentelemetry-java into low-allocation-marshalers-for-json-exporter
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7616 +/- ##
=========================================
Coverage 90.01% 90.01%
- Complexity 7090 7096 +6
=========================================
Files 803 803
Lines 21443 21461 +18
Branches 2092 2092
=========================================
+ Hits 19301 19319 +18
Misses 1477 1477
Partials 665 665 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Hilmar Falkenberg <hilmar.falkenberg@sap.com>
@hilmarf Can you please sign this so that I can include your suggestion? |
jkwatson
left a comment
There was a problem hiding this comment.
Seems reasonable to me. Thanks!
|
@hilmarf Are you able to sign the CLA, so we can accept your contribution to this PR? |
|
I'll also do a review. |
|
Thanks a lot for the PR 😄
In total, I don't understand what is possible with this PR that was not possible before. |
"setWrapperJsonObject" doens't mean anything to the end user. The new API is a request for low allocation, so it makes sense to name the boolean after what the user wants, rather than an implementation detail. I'm not sure about the internal renames and if it makes sense to have them as well. |
Thanks for the feedback! You're absolutely right - I'm planning to close this PR and I believe we can close the related issue. Why:
The right solution:Direct users to the existing, better API: OtlpStdoutMetricExporter.builder().setMemoryMode(MemoryMode.REUSABLE_DATA).build()This keeps the architecture clean and avoids unnecessary API complexity. Thanks for the thoughtful review! Let me know your thoughts. CC: @zeitlinger, @jkwatson |
Resolves #6474