Skip to content

feat: add pooled serializer for Kafka exporter#2554

Closed
XiaoWeiKIN wants to merge 1 commit into
open-telemetry:mainfrom
XiaoWeiKIN:kafka-exporter
Closed

feat: add pooled serializer for Kafka exporter#2554
XiaoWeiKIN wants to merge 1 commit into
open-telemetry:mainfrom
XiaoWeiKIN:kafka-exporter

Conversation

@XiaoWeiKIN

Copy link
Copy Markdown

Description:

In opentelemetry-java, when using exporter span, object pools are supported to optimize memory usage. It is hoped that the same can be done when using kafka-exporter.

  • Introduce PooledSpanDataSerializer with object pooling to reduce memory allocations
  • Add MemoryMode support to KafkaSpanExporterBuilder
  • Refactor SpanDataSerializer to use LowAllocationTraceRequestMarshaler
  • Add comprehensive tests including thread safety validation

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 14 days.

@github-actions github-actions Bot added the stale label Jul 5, 2026
@github-actions github-actions Bot closed this Jul 19, 2026
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.

2 participants