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

Method current_trace_id

python/examples/flight/middleware.py:34–37  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

32
33 @classmethod
34 def current_trace_id(cls):
35 if not getattr(cls._locals, "trace_id", None):
36 cls.set_trace_id(uuid.uuid4().hex)
37 return cls._locals.trace_id
38
39 @classmethod
40 def set_trace_id(cls, trace_id):

Callers 3

start_callMethod · 0.80
sending_headersMethod · 0.80
do_actionMethod · 0.80

Calls 1

set_trace_idMethod · 0.80

Tested by

no test coverage detected