You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-06-25 00:16:49 +02:00
Add parent context to SpanProcessor.OnStart (#1333)
* Add parent context to SpanProcessor.OnStart The spec requires doing so. Right now SpanProcessor implementations aren't doing anything with this argument. * Update changelog * Fix typo in test name
This commit is contained in:
committed by
GitHub
parent
63a11144cf
commit
070b657c21
@ -112,7 +112,7 @@ func NewBatchSpanProcessor(exporter export.SpanExporter, options ...BatchSpanPro
|
||||
}
|
||||
|
||||
// OnStart method does nothing.
|
||||
func (bsp *BatchSpanProcessor) OnStart(sd *export.SpanData) {}
|
||||
func (bsp *BatchSpanProcessor) OnStart(parent context.Context, sd *export.SpanData) {}
|
||||
|
||||
// OnEnd method enqueues export.SpanData for later processing.
|
||||
func (bsp *BatchSpanProcessor) OnEnd(sd *export.SpanData) {
|
||||
|
Reference in New Issue
Block a user