You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-25 22:41:46 +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
@@ -63,7 +63,7 @@ var _ export.SpanExporter = (*testBatchExporter)(nil)
|
||||
func TestNewBatchSpanProcessorWithNilExporter(t *testing.T) {
|
||||
bsp := sdktrace.NewBatchSpanProcessor(nil)
|
||||
// These should not panic.
|
||||
bsp.OnStart(&export.SpanData{})
|
||||
bsp.OnStart(context.Background(), &export.SpanData{})
|
||||
bsp.OnEnd(&export.SpanData{})
|
||||
bsp.ForceFlush()
|
||||
err := bsp.Shutdown(context.Background())
|
||||
|
||||
Reference in New Issue
Block a user