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

only split on first leading '=' in parsing key/value list config #596

Merged
merged 1 commit into from
Jun 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Global Tracer no longer set to no-op on SDK
shutdown](https://github.com/open-telemetry/opentelemetry-erlang/pull/568)

### Fixes

- [Fixed parsing of key/value list configuration where value has = in
it](https://github.com/open-telemetry/opentelemetry-erlang/pull/596)

## Exporter 1.5.0 - 2023-05-19

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion apps/opentelemetry/src/otel_configuration.erl
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ transform(key_value_list, Value) when is_list(Value) ->
true ->
Pairs = string:split(Value, ",", all),
lists:filtermap(fun(Pair) ->
case string:split(Pair, "=", all) of
case string:split(Pair, "=", leading) of
[K, V] ->
V1 = re:replace(string:trim(V), "^\"|\"$", "", [global, {return, list}]),
{true, {string:trim(K), V1}};
Expand Down