1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/sdk/trace
Tyler Yahn 98bb1056c0
Replace recordingSpan attributes implementation with slice of attributes (#2576)
* Replace recordingSpan attributes implementation

Instead of an LRU strategy for cap-ing span attributes, comply with the
specification and drop last added. To do this, the attributesmap is
replaced with a slice of attributes.

* Remove attributesmap files

* Refine addition algorithm

Unify duplicated code.

Fix deduplication algorithm.

Fix droppedAttributes to always be returned, even if the span has no
attributes.

* Unify span SetAttributes tests

* Doc fix to attr drop order in changelog

* Test span and snapshot attrs

* fix lint

* Add tests for recordingSpan method defaults

* Comment why pre-allocation is not done

* Correct grammar in recordingSpan allocation comment

* Update sdk/trace/tracer.go

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2022-02-07 12:58:05 -08:00
..
tracetest Make the tracetest.SpanRecorder concurrent safe (#2178) 2021-08-12 09:12:31 -07:00
batch_span_processor_test.go Unexport EnvBatchSpanProcessor* constants (#2583) 2022-02-07 07:57:44 -08:00
batch_span_processor.go Unexport EnvBatchSpanProcessor* constants (#2583) 2022-02-07 07:57:44 -08:00
benchmark_test.go Replace recordingSpan attributes implementation with slice of attributes (#2576) 2022-02-07 12:58:05 -08:00
config.go sdk/trace: removing ApplyConfig and Config (#1693) 2021-03-18 10:48:13 -07:00
doc.go Prerelease v1.0.0 (#2250) 2021-09-20 13:02:46 -07:00
event.go chore: adds vanity import check. (#2255) 2021-09-27 22:37:26 -04:00
evictedqueue_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
evictedqueue.go Optimize evictedQueue implementation and use (#2556) 2022-01-27 13:55:21 -08:00
id_generator.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
link.go Removed dropped link's attributes field from API package (#2118) 2021-07-26 11:06:41 -04:00
provider_test.go Add schema URL support to Tracer (#1889) 2021-05-27 15:22:38 -04:00
provider.go Do not store TracerProvider or Tracer fields in SDK recordingSpan (#2575) 2022-02-01 15:20:35 -08:00
sampling_test.go Deprecated the oteltest.TraceStateFromKeyValues function (#2122) 2021-07-26 11:12:53 -04:00
sampling.go Change Options to accept type not pointer (#2558) 2022-02-01 15:51:23 -06:00
simple_span_processor_test.go Fix imports in all files except generated files in jaeger exporter (#2383) 2021-11-13 08:35:04 -08:00
simple_span_processor.go Debug Logging for sdk/trace (#2500) 2022-01-10 19:58:01 -05:00
snapshot.go chore: adds vanity import check. (#2255) 2021-09-27 22:37:26 -04:00
span_exporter.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
span_processor_annotator_example_test.go Add SpanProcessor example for Span annotation on start (#1733) 2021-04-21 14:40:52 -04:00
span_processor_filter_example_test.go Redefine ExportSpans of SpanExporter with ReadOnlySpan (#1873) 2021-05-04 16:45:13 -07:00
span_processor_test.go Handle nil testSpanProcessor (#2400) 2021-11-16 08:57:10 -08:00
span_processor.go Interface stability documentation (#2012) 2021-06-18 07:56:11 -07:00
span.go Replace recordingSpan attributes implementation with slice of attributes (#2576) 2022-02-07 12:58:05 -08:00
trace_test.go Replace recordingSpan attributes implementation with slice of attributes (#2576) 2022-02-07 12:58:05 -08:00
tracer.go Replace recordingSpan attributes implementation with slice of attributes (#2576) 2022-02-07 12:58:05 -08:00
util_test.go Rename WithDefaultSampler TracerProvider option to WithSampler and update docs (#1702) 2021-03-18 09:34:47 -07:00