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

Function test_tracing

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

Source from the content-addressed store, hash-verified

2667
2668
2669def 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

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