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

Method do_action

python/pyarrow/tests/test_flight.py:2660–2666  ·  view source on GitHub ↗
(self, context, action)

Source from the content-addressed store, hash-verified

2658 """A server that echoes back trace context values."""
2659
2660 def do_action(self, context, action):
2661 trace_context = context.get_middleware("tracing").trace_context
2662 # Don't turn this method into a generator since then
2663 # trace_context will be evaluated after we've exited the scope
2664 # of the OTel span (and so the value we want won't be present)
2665 return ((f"{key}: {value}").encode("utf-8")
2666 for (key, value) in trace_context.items())
2667
2668
2669def test_tracing():

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected