Skip to content

Commit 3628fcd

Browse files
committed
Fixup: pr header value test
1 parent c117b42 commit 3628fcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/framework_grpc/test_distributed_tracing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ def _test():
138138
decoded["d"].pop("tk", None)
139139
w3c_data.pop("tk")
140140

141+
# Round priority of newrelic header to 6 decimal places so it match tracestate.
142+
pr = decoded.get("pr", None)
143+
if pr:
144+
decoded["pr"] = float(f"{pr:.6f}")
145+
141146
assert decoded["d"] == w3c_data
142147

143148
_test()

0 commit comments

Comments
 (0)