opentelemetry-go
opentelemetry-go copied to clipboard
log/sdk: Add benchmarks
From SIG meeting: this looks almost complete. @dmathieu plans to another audit and review all coverage.
From the public SDK methods, we are now benchmarking:
Record.WalkAttributes()Record.SetAttributesRecord.AddAttributesLoggerProvider.Loggerlogger.newRecordSimpleProcessor.OnEmitBatchProcessor.OnEmit- Create a record, with body, severity, attributes, and run
SimpleProcessor.OnEmit - Create a record, with body, severity, attributes, and run
BatchProcessor.OnEmit - Create a record, with body, severity, attributes, modify the observed timestamp and run
SimpleProcessor.OnEmit - Create a record, with body, severity, attributes, modify the observed timestamp and run
BatchProcessor.OnEmit
At this stage, all hot public APIs appear to be benchmarked in the log SDK. I believe this issue can be closed.
We can always add more benchmarks later. Great job.