reddit/baseplate.py

Upstream request.headers trace_info `sampled` set as str not able to send trace in python3

Closed this issue · 0 comments

When upstream request.headers trace_info sampled set as str,
in python3 apps, when execute 1 == b1 here it will return False and set the server_span.context.trace.sampled to False, so not able to send to sentry.

sampled = bool(extracted_values.get("sampled") == b"1")