mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-28 21:09:17 +02:00
64416533d5
Good day, Thanks for review this PR! This PR follows from https://github.com/open-telemetry/opentelemetry-go/pull/5864 and avoid multiple locks in `End`, `RecordError`, `AddEvent` and `AddLink`. Benchstats result are: ``` goos: linux goarch: amd64 pkg: go.opentelemetry.io/otel/sdk/trace cpu: 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz │ event-3cbd9671.txt │ event-pr-e9744b48.txt │ │ sec/op │ │ SpanEnd-12 63.07n ± 1% 53.63n ± 1% -14.97% (p=0.000 n=10) │ event-3cbd9671.txt │ event-pr-e9744b48.txt │ │ B/op │ B/op vs base │ SpanEnd-12 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ ¹ all samples are equal │ event-3cbd9671.txt │ event-pr-e9744b48.txt │ │ allocs/op │ allocs/op vs base │ SpanEnd-12 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ ¹ all samples are equal ``` --------- Co-authored-by: David Ashpole <dashpole@google.com> Co-authored-by: Damien Mathieu <42@dmathieu.com> |
||
---|---|---|
.. | ||
tracetest | ||
batch_span_processor_test.go | ||
batch_span_processor.go | ||
benchmark_test.go | ||
doc.go | ||
event.go | ||
evictedqueue_test.go | ||
evictedqueue.go | ||
id_generator_test.go | ||
id_generator.go | ||
link.go | ||
provider_test.go | ||
provider.go | ||
README.md | ||
sampler_env.go | ||
sampling_test.go | ||
sampling.go | ||
simple_span_processor_test.go | ||
simple_span_processor.go | ||
snapshot.go | ||
span_exporter.go | ||
span_limits_test.go | ||
span_limits.go | ||
span_processor_annotator_example_test.go | ||
span_processor_filter_example_test.go | ||
span_processor_test.go | ||
span_processor.go | ||
span_test.go | ||
span.go | ||
trace_test.go | ||
tracer.go | ||
util_test.go | ||
version_test.go | ||
version.go |