-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grpc): no package in method service (#2384)
* fix(grpc): add snapshot test for method service metadata * handle empty method package * revert change to host parsing * add release note * use async_mode Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b91c3ea
commit 5c197a4
Showing
5 changed files
with
131 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
fixes: | ||
- | | ||
grpc: handle no package in fully qualified method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
tests/snapshots/tests.contrib.grpc.test_grpc.test_method_service.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[[{"name" "grpc" | ||
"service" "grpc-client" | ||
"resource" "/Servicer/Handler" | ||
"type" "grpc" | ||
"error" 0 | ||
"span_id" 0 | ||
"trace_id" 0 | ||
"parent_id" nil | ||
"start" 1619744633550844100 | ||
"duration" 1911900 | ||
"meta" {"runtime-id" "04d67a3bd550461295cfd98eedc69d99" | ||
"grpc.port" "55945" | ||
"grpc.host" "localhost" | ||
"grpc.method.kind" "unary" | ||
"span.kind" "client" | ||
"grpc.method.path" "/Servicer/Handler" | ||
"grpc.status.code" "StatusCode.OK" | ||
"grpc.method.service" "Servicer" | ||
"grpc.method.name" "Handler"} | ||
"metrics" {"_dd.agent_psr" 1.0 | ||
"_dd.measured" 1 | ||
"_sampling_priority_v1" 1 | ||
"system.pid" 714 | ||
"_dd.tracer_kr" 1.0}} | ||
{"name" "grpc" | ||
"service" "grpc-server" | ||
"resource" "/Servicer/Handler" | ||
"type" "grpc" | ||
"error" 0 | ||
"span_id" 1 | ||
"trace_id" 0 | ||
"parent_id" 0 | ||
"start" 1619744633552296900 | ||
"duration" 48200 | ||
"meta" {"grpc.method.path" "/Servicer/Handler" | ||
"grpc.method.service" "Servicer" | ||
"grpc.method.name" "Handler" | ||
"grpc.method.kind" "unary" | ||
"span.kind" "server"} | ||
"metrics" {"_dd.measured" 1 | ||
"_sampling_priority_v1" 1}}] | ||
[{"name" "grpc" | ||
"service" "grpc-client" | ||
"resource" "/pkg.Servicer/Handler" | ||
"type" "grpc" | ||
"error" 0 | ||
"span_id" 0 | ||
"trace_id" 1 | ||
"parent_id" nil | ||
"start" 1619744633553123900 | ||
"duration" 1079700 | ||
"meta" {"runtime-id" "04d67a3bd550461295cfd98eedc69d99" | ||
"grpc.port" "55945" | ||
"grpc.method.package" "pkg" | ||
"grpc.host" "localhost" | ||
"grpc.method.kind" "unary" | ||
"span.kind" "client" | ||
"grpc.method.path" "/pkg.Servicer/Handler" | ||
"grpc.status.code" "StatusCode.OK" | ||
"grpc.method.service" "Servicer" | ||
"grpc.method.name" "Handler"} | ||
"metrics" {"_dd.agent_psr" 1.0 | ||
"_dd.measured" 1 | ||
"_sampling_priority_v1" 1 | ||
"system.pid" 714 | ||
"_dd.tracer_kr" 1.0}} | ||
{"name" "grpc" | ||
"service" "grpc-server" | ||
"resource" "/pkg.Servicer/Handler" | ||
"type" "grpc" | ||
"error" 0 | ||
"span_id" 1 | ||
"trace_id" 1 | ||
"parent_id" 0 | ||
"start" 1619744633553812700 | ||
"duration" 42900 | ||
"meta" {"grpc.method.path" "/pkg.Servicer/Handler" | ||
"grpc.method.package" "pkg" | ||
"grpc.method.service" "Servicer" | ||
"grpc.method.name" "Handler" | ||
"grpc.method.kind" "unary" | ||
"span.kind" "server"} | ||
"metrics" {"_dd.measured" 1 | ||
"_sampling_priority_v1" 1}}]] |