Skip to content

Commit

Permalink
Merge pull request #408 from ananthakumaran/custom-propagator
Browse files Browse the repository at this point in the history
Allow custom text propagator to be configured via application env
  • Loading branch information
Tristan Sloughter authored Jun 11, 2022
2 parents 94d385d + a4b4d90 commit ccbe7f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [SDK]

### Fixed

- [Allow custom text propagator to be configured via application env](https://github.com/open-telemetry/opentelemetry-erlang/pull/408)

## SDK 1.0.5 - 2022-05-20

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions apps/opentelemetry/src/otel_configuration.erl
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ transform(propagator, Value) when Value =:= "b3" ;
%% TODO: support jager propagator format
%% transform(propagator, "jaeger") ->
%% jaeger;
transform(propagator, Propagator) when is_atom(Propagator) ->
Propagator;
transform(propagator, Propagator) ->
?LOG_WARNING("Ignoring unknown propagator ~ts in OS environment variable $OTEL_PROPAGATORS",
[Propagator]),
Expand Down

0 comments on commit ccbe7f1

Please sign in to comment.