mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
970755bd08
* Enable support for externally-defined ID generators * Moved the SDK's `internal.IDGenerator` interface to the `sdk/trace` package. * Added `trace.WithIDGenerator()` `TracerProviderOption`. Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Update CHANGELOG.md with PR info * Address PR feedback: * Fix IDGenerator godoc comment * rename type defaultIDGenerator to randomIDGenerator * rename defIDGenerator() to defaultIDGenerator() Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Rework trace.IDGenerator interface * NewTraceID() -> NewIDs(ctx) ** Returns both TraceID and SpanID * NewSpanID() -> NewSpanID(ctx, traceID) ** Returns only SpanID, has access to TraceID * Both methods now receive a context, from which they may extract information * startSpanInternal() updated to receive a context to pass to the ID generator * Drop outdated comment from docblock Co-authored-by: Krzesimir Nowak <qdlacz@gmail.com> Co-authored-by: Krzesimir Nowak <qdlacz@gmail.com> |
||
---|---|---|
.. | ||
attributesmap_test.go | ||
attributesmap.go | ||
batch_span_processor_test.go | ||
batch_span_processor.go | ||
benchmark_test.go | ||
config.go | ||
doc.go | ||
evictedqueue_test.go | ||
evictedqueue.go | ||
id_generator.go | ||
provider_test.go | ||
provider.go | ||
sampling_test.go | ||
sampling.go | ||
simple_span_processor_test.go | ||
simple_span_processor.go | ||
span_processor_example_test.go | ||
span_processor_test.go | ||
span_processor.go | ||
span.go | ||
trace_go11.go | ||
trace_nongo11.go | ||
trace_test.go | ||
tracer.go | ||
util_test.go |