Skip to content

Commit

Permalink
Fix issue -propagation type is not case insensitive (#483)
Browse files Browse the repository at this point in the history
* Fix issue- #3149
  • Loading branch information
xyq175com committed Jul 6, 2022
1 parent 5722bba commit 73a0990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/OpenTelemetry.Instrumentation.GrpcCore/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Make the context propagation extraction case insensitive.
([#483](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/483))

## 1.0.0-beta.5

* Switched Grpc.Core package dependency to Grpc.Core.Api in the same range.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private class ServerRpcScope<TRequest, TResponse> : RpcScope<TRequest, TResponse
for (var i = 0; i < metadata.Count; i++)
{
var entry = metadata[i];
if (entry.Key.Equals(key))
if (string.Equals(entry.Key, key, StringComparison.OrdinalIgnoreCase))
{
return new string[1] { entry.Value };
}
Expand Down

0 comments on commit 73a0990

Please sign in to comment.