1
0
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:
Johannes Liebermann
2020-11-16 17:45:49 +01:00
committed by GitHub
parent 63a11144cf
commit 070b657c21
9 changed files with 75 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ type SpanProcessor interface {
// OnStart method is invoked when span is started. It is a synchronous call
// and hence should not block.
OnStart(sd *export.SpanData)
OnStart(parent context.Context, sd *export.SpanData)
// OnEnd method is invoked when span is finished. It is a synchronous call
// and hence should not block.