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 a Shutdown method to sdk TraceProvider #1227

Merged
merged 6 commits into from
Oct 26, 2020

Conversation

huikang
Copy link
Member

@huikang huikang commented Oct 6, 2020

  • sdktraceprovider shutdown span processors
  • In examples, replace processosr shutdown with
    traceprovider's shutdown

Resolves #1206

Signed-off-by: Hui Kang kangh@us.ibm.com

@codecov
Copy link

codecov bot commented Oct 6, 2020

Codecov Report

Merging #1227 into master will decrease coverage by 0.0%.
The diff coverage is 71.4%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1227     +/-   ##
========================================
- Coverage    76.9%   76.8%   -0.1%     
========================================
  Files         122     122             
  Lines        5927    5931      +4     
========================================
- Hits         4559    4558      -1     
- Misses       1121    1126      +5     
  Partials      247     247             
Impacted Files Coverage Δ
sdk/trace/provider.go 94.4% <71.4%> (-2.0%) ⬇️
sdk/trace/batch_span_processor.go 74.1% <0.0%> (-4.4%) ⬇️
trace.go 80.5% <0.0%> (+0.5%) ⬆️

sdk/trace/provider.go Outdated Show resolved Hide resolved
@XSAM XSAM linked an issue Oct 8, 2020 that may be closed by this pull request
@MrAlias MrAlias added area:trace Part of OpenTelemetry tracing enhancement New feature or request pkg:API Related to an API package pkg:SDK Related to an SDK package priority:p2 labels Oct 8, 2020
@MrAlias MrAlias added this to the RC1 milestone Oct 8, 2020
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can scope this to just the SDK for now and get this merged. Otherwise, we should probably wait for resolution on open-telemetry/opentelemetry-specification#1073

api/trace/api.go Outdated Show resolved Hide resolved
sdk/trace/provider.go Outdated Show resolved Hide resolved
@MrAlias MrAlias added the blocked:specification Waiting on clarification of the OpenTelemetry specification before progress can be made label Oct 8, 2020
@XSAM XSAM removed the blocked:specification Waiting on clarification of the OpenTelemetry specification before progress can be made label Oct 16, 2020
@huikang huikang force-pushed the 1206-shutdown-processor branch 2 times, most recently from 886cf2e to c5470d0 Compare October 16, 2020 20:19
- sdktraceprovider shutdown span processors
- In examples, replace processosr shutdown with
  traceprovider's shutdown

Signed-off-by: Hui Kang <kangh@us.ibm.com>
@huikang huikang force-pushed the 1206-shutdown-processor branch 3 times, most recently from ba3d6d7 to bf736b5 Compare October 21, 2020 02:50
@huikang huikang changed the title Add a Shutdown method to api TraceProvider Add a Shutdown method to sdk TraceProvider Oct 21, 2020
CHANGELOG.md Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit d75ccbb into open-telemetry:master Oct 26, 2020
AzfaarQureshi pushed a commit to open-o11y/opentelemetry-go that referenced this pull request Dec 3, 2020
* Add a Shutdown method to api TraceProvider

- sdktraceprovider shutdown span processors
- In examples, replace processosr shutdown with
  traceprovider's shutdown

Signed-off-by: Hui Kang <kangh@us.ibm.com>

* remove shutdown in the api provider interface

* Add context in parameter and return error

* handle error in shutdown

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
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 enhancement New feature or request pkg:API Related to an API package pkg:SDK Related to an SDK package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It should be easy to Shutdown() SpanProcessors
4 participants