()
| 2629 | |
| 2630 | |
| 2631 | def test_tracing(): |
| 2632 | with TracingFlightServer(middleware={ |
| 2633 | "tracing": flight.TracingServerMiddlewareFactory(), |
| 2634 | }) as server, \ |
| 2635 | FlightClient(('localhost', server.port)) as client: |
| 2636 | # We can't tell if Arrow was built with OpenTelemetry support, |
| 2637 | # so we can't count on any particular values being there; we |
| 2638 | # can only ensure things don't blow up either way. |
| 2639 | options = flight.FlightCallOptions(headers=[ |
| 2640 | # Pretend we have an OTel implementation |
| 2641 | (b"traceparent", b"00-000ff00f00f0ff000f0f00ff0f00fff0-" |
| 2642 | b"000f0000f0f00000-00"), |
| 2643 | (b"tracestate", b""), |
| 2644 | ]) |
| 2645 | for value in client.do_action((b"", b""), options=options): |
| 2646 | pass |
| 2647 | |
| 2648 | |
| 2649 | # More info about the skip: GH-49447 |
nothing calls this directly
no test coverage detected