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 TextMapPropagator function to autoprop #2593

Merged
merged 8 commits into from Jul 25, 2022

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jul 22, 2022

Resolve #2590

The collector plans to add configuration that will use a propagator describe in a text configuration file. That text needs to be converted into a propagator. This adds the GetTextMapPropagator function to do that conversion.

Refactor the parseEnv function logic that already performed this
function into GetTextMapPropagator, and use that in parseEnv instead.
@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Merging #2593 (6387ee4) into main (0be7156) will not change coverage.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2593   +/-   ##
=====================================
  Coverage   74.3%   74.3%           
=====================================
  Files        144     144           
  Lines       6569    6569           
=====================================
  Hits        4883    4883           
  Misses      1543    1543           
  Partials     143     143           
Impacted Files Coverage Δ
propagators/autoprop/propagator.go 100.0% <100.0%> (ø)
propagators/autoprop/registry.go 100.0% <100.0%> (ø)

@MrAlias MrAlias changed the title Add GetTextMapPropagator function to autoprop Add TextMapPropagator function to autoprop Jul 25, 2022
@MrAlias MrAlias merged commit 2116f96 into open-telemetry:main Jul 25, 2022
@MrAlias MrAlias deleted the autoprop-get branch July 25, 2022 15:29
@MrAlias MrAlias added this to the Release v1.9.0 milestone Jul 25, 2022
@MrAlias MrAlias mentioned this pull request Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: propagators Related to the propagators module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request to expose string based configuration in autoprop module.
4 participants