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 global propagator testing and other fixes #1260

Merged
merged 4 commits into from
Oct 17, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Oct 15, 2020

Use the testing framework from #1259 to test the added global implementation of the TextMapPropagator.

Add tests for the internal state of the global package (#1258). Ensure the behavior of setting the global for an already set value panics.

Fix oteltest SetN method check on the TextMapCarrier.

Use the testing framework from open-telemetry#1259 to test the added global
implementation of the TextMapPropagator.

Add tests for the internal state of the global package. Ensure the
behavior of setting the global for an already set value panics.

Fix oteltest `SetN` method check on the TextMapCarrier.
@MrAlias MrAlias added pkg:API Related to an API package pkg:testing Related to testing or a testing package release:required-for-ga Skip Changelog PRs that do not require a CHANGELOG.md entry labels Oct 15, 2020
@MrAlias MrAlias added this to the RC1 milestone Oct 15, 2020
@MrAlias MrAlias self-assigned this Oct 15, 2020
@MrAlias MrAlias added this to In progress in OpenTelemetry Go RC via automation Oct 15, 2020
@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #1260 into master will increase coverage by 0.4%.
The diff coverage is 50.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1260     +/-   ##
========================================
+ Coverage    76.4%   76.9%   +0.4%     
========================================
  Files         132     132             
  Lines        5928    5927      -1     
========================================
+ Hits         4533    4561     +28     
+ Misses       1146    1116     -30     
- Partials      249     250      +1     
Impacted Files Coverage Δ
oteltest/text_map_propagator.go 74.6% <0.0%> (ø)
api/global/internal/state.go 100.0% <100.0%> (+29.7%) ⬆️
trace_noop.go 53.3% <0.0%> (-3.9%) ⬇️
oteltest/span.go 97.2% <0.0%> (-2.8%) ⬇️
bridge/opentracing/internal/mock.go 71.6% <0.0%> (-2.7%) ⬇️
sdk/trace/span.go 92.9% <0.0%> (-2.1%) ⬇️
trace.go 80.5% <0.0%> (ø)
config.go 100.0% <0.0%> (ø)
bridge/opentracing/bridge.go 40.0% <0.0%> (+0.9%) ⬆️
oteltest/mock_span.go 12.5% <0.0%> (+4.8%) ⬆️
... and 2 more

OpenTelemetry Go RC automation moved this from In progress to Reviewer approved Oct 15, 2020
@MrAlias MrAlias merged commit 90de306 into open-telemetry:master Oct 17, 2020
OpenTelemetry Go RC automation moved this from Reviewer approved to Done Oct 17, 2020
@MrAlias MrAlias deleted the global-internal-testing branch October 17, 2020 00:51
AzfaarQureshi pushed a commit to open-o11y/opentelemetry-go that referenced this pull request Dec 3, 2020
* Add global propagator testing and other fixes

Use the testing framework from open-telemetry#1259 to test the added global
implementation of the TextMapPropagator.

Add tests for the internal state of the global package. Ensure the
behavior of setting the global for an already set value panics.

Fix oteltest `SetN` method check on the TextMapCarrier.

* Fix lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:API Related to an API package pkg:testing Related to testing or a testing package Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants