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 oteltest TextMap propagator and carrier #1259

Merged
merged 4 commits into from
Oct 15, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Oct 15, 2020

This adds a TextMapPropagator and an associated TextMapCarrier to the oteltest package for testing TextMap Propagator propagation.

Related to #1258 to be used in its testing.

@MrAlias MrAlias added pkg:testing Related to testing or a testing package area:propagators Part of OpenTelemetry context propagation release:required-for-ga 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 changed the title  Add oteltest TextMap propagator and carrier Add oteltest TextMap propagator and carrier Oct 15, 2020
@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #1259 into master will decrease coverage by 0.0%.
The diff coverage is 74.6%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1259     +/-   ##
========================================
- Coverage    76.7%   76.7%   -0.1%     
========================================
  Files         130     131      +1     
  Lines        5828    5903     +75     
========================================
+ Hits         4475    4531     +56     
- Misses       1105    1120     +15     
- Partials      248     252      +4     
Impacted Files Coverage Δ
oteltest/text_map_propagator.go 74.6% <74.6%> (ø)

Gotta farm that codecov
@MrAlias MrAlias closed this Oct 15, 2020
@MrAlias MrAlias reopened this Oct 15, 2020
@MrAlias MrAlias merged commit 8fd4b26 into open-telemetry:master Oct 15, 2020
@MrAlias MrAlias deleted the oteltest-prop branch October 15, 2020 16:15
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this pull request Oct 15, 2020
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 added a commit that referenced this pull request Oct 17, 2020
* Add global propagator testing and other fixes

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. Ensure the
behavior of setting the global for an already set value panics.

Fix oteltest `SetN` method check on the TextMapCarrier.

* Fix lint
@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 oteltest text map propagator and carrier

* Add changes to CHANGELOG

* Add PR number to CHANGELOG

* Add test for empty newState

Gotta farm that codecov
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
area:propagators Part of OpenTelemetry context propagation pkg:testing Related to testing or a testing package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants