MCPcopy Create free account
hub / github.com/apache/arrow / test_tracing

Function test_tracing

python/pyarrow/tests/test_flight.py:2631–2646  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2629
2630
2631def 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

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
TracingFlightServerClass · 0.85
FlightCallOptionsMethod · 0.80
do_actionMethod · 0.45

Tested by

no test coverage detected