Skip to content

Commit

Permalink
add regression test for #788
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Oct 21, 2024
1 parent fedf913 commit eb494e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ configuration(_Config) ->
%% test all supported protocols
application:unset_env(opentelemetry_exporter, otlp_protocol),
os:putenv("OTEL_EXPORTER_OTLP_PROTOCOL", "grpc"),
%% regression test for issue #788
os:putenv("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL", "grpc"),
?assertMatch(#{protocol := grpc},
otel_exporter_traces_otlp:merge_with_environment(#{})),
os:unsetenv("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"),

%% the specification defines the value as "http/protobuf"
%% https://github.com/open-telemetry/opentelemetry-specification/blob/82707fd9f7b1266f1246b02ff3e00bebdee6b538/specification/protocol/exporter.md#specify-protocol
Expand Down

0 comments on commit eb494e8

Please sign in to comment.