Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parent context to SpanProcessor.OnStart #1333

Merged

Conversation

johananl
Copy link
Contributor

This PR adds a parent context argument to SpanProcessor.OnStart following the spec.

Fixes #1304.

@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #1333 (6f0486b) into master (63a1114) will not change coverage.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1333   +/-   ##
======================================
  Coverage    77.3%   77.3%           
======================================
  Files         123     123           
  Lines        6067    6067           
======================================
  Hits         4694    4694           
  Misses       1120    1120           
  Partials      253     253           
Impacted Files Coverage Δ
sdk/trace/simple_span_processor.go 71.4% <ø> (ø)
sdk/trace/batch_span_processor.go 74.5% <100.0%> (ø)
sdk/trace/tracer.go 100.0% <100.0%> (ø)

@johananl johananl force-pushed the johananl/onstart-parent-context branch 2 times, most recently from 6832eac to e0e5ef3 Compare November 13, 2020 19:02
@MrAlias MrAlias added area:trace Part of OpenTelemetry tracing pkg:SDK Related to an SDK package priority:p1 labels Nov 13, 2020
@MrAlias MrAlias added this to the RC1 milestone Nov 13, 2020
@MrAlias
Copy link
Contributor

MrAlias commented Nov 15, 2020

@johananl It looks like maintainer edits are off for this PR. Can you sync with master so we can merge this?

The spec requires doing so. Right now SpanProcessor implementations
aren't doing anything with this argument.
@johananl johananl force-pushed the johananl/onstart-parent-context branch from e0e5ef3 to 6f0486b Compare November 15, 2020 19:03
@johananl
Copy link
Contributor Author

@MrAlias done!

@Aneurysm9 Aneurysm9 merged commit 070b657 into open-telemetry:master Nov 16, 2020
@johananl johananl deleted the johananl/onstart-parent-context branch November 16, 2020 16:46
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
AzfaarQureshi pushed a commit to open-o11y/opentelemetry-go that referenced this pull request Dec 3, 2020
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:trace Part of OpenTelemetry tracing pkg:SDK Related to an SDK package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update SpanProcessor.OnStart to conform with specification
4 participants