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

Update the SimpleSpanProcessor #1612

Merged
merged 11 commits into from
Mar 8, 2021

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Feb 26, 2021

> Shutdown SHOULD be called only once for each SpanProcessor instance. After the call to Shutdown, subsequent calls to OnStart, OnEnd, or ForceFlush are not allowed. SDKs SHOULD ignore these calls gracefully, if possible.

This implements that behavior by shutting down the exporter and removing it from the SimpleSpanProcessor so subsequent calls to OnEnd will be no-ops.

Subsequent calls to OnStart, OnEnd, and ForceFlush should be ignored
gracefully once Shutdown has been called. This implements that behavior
by shutting down the exporter and removing it from the
SimpleSpanProcessor so subsequent calls to OnEnd will be no-ops.
@codecov
Copy link

codecov bot commented Feb 26, 2021

Codecov Report

Merging #1612 (801adcb) into main (a7f7aba) will increase coverage by 0.0%.
The diff coverage is 93.3%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #1612   +/-   ##
=====================================
  Coverage   77.3%   77.4%           
=====================================
  Files        128     128           
  Lines       6694    6705   +11     
=====================================
+ Hits        5179    5190   +11     
  Misses      1268    1268           
  Partials     247     247           
Impacted Files Coverage Δ
sdk/trace/simple_span_processor.go 89.4% <93.3%> (+14.4%) ⬆️

CHANGELOG.md Outdated Show resolved Hide resolved
sdk/trace/simple_span_processor.go Show resolved Hide resolved
sdk/trace/simple_span_processor.go Show resolved Hide resolved
sdk/trace/simple_span_processor.go Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit 5690485 into open-telemetry:main Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants