()
| 2667 | |
| 2668 | |
| 2669 | def test_tracing(): |
| 2670 | with TracingFlightServer(middleware={ |
| 2671 | "tracing": flight.TracingServerMiddlewareFactory(), |
| 2672 | }) as server, \ |
| 2673 | FlightClient(('localhost', server.port)) as client: |
| 2674 | # We can't tell if Arrow was built with OpenTelemetry support, |
| 2675 | # so we can't count on any particular values being there; we |
| 2676 | # can only ensure things don't blow up either way. |
| 2677 | options = flight.FlightCallOptions(headers=[ |
| 2678 | # Pretend we have an OTel implementation |
| 2679 | (b"traceparent", b"00-000ff00f00f0ff000f0f00ff0f00fff0-" |
| 2680 | b"000f0000f0f00000-00"), |
| 2681 | (b"tracestate", b""), |
| 2682 | ]) |
| 2683 | for value in client.do_action((b"", b""), options=options): |
| 2684 | pass |
| 2685 | |
| 2686 | |
| 2687 | # More info about the skip: GH-49447 |
nothing calls this directly
no test coverage detected