Skip to content

sdk/log: Optimize BatchProcessor #6382

@pellared

Description

@pellared

Benchmarks: https://github.com/pellared/spanevents-vs-logs

Batch processing in Logs SDK seems like a bottleneck.

Reproduction:

git clone https://github.com/pellared/spanevents-vs-logs.git
cd spanevents-vs-logs
make up

wait some time to make sure OTel Collector is ready

go test -run=^$ -bench=BenchmarkLogs/OTLP -cpuprofile profile.out.txt
make down

profile.out.txt

Metadata

Metadata

Assignees

Labels

area:logsPart of OpenTelemetry logsenhancementNew feature or requestpkg:SDKRelated to an SDK package

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions