Skip to content

Commit d71dad1

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/framework_grpc/test_distributed_tracing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ 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+
decoded["d"]["pr"] = f"{decoded['d']['pr']:.6f}"
143+
w3c_data["pr"] = f"{w3c_data['pr']:.6f}"
144+
141145
assert decoded["d"] == w3c_data
142146

143147
_test()

0 commit comments

Comments
 (0)