MCPcopy Create free account
hub / github.com/dianping/cat / complete

Method complete

lib/python/src/cat/sdk.py:93–101  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

91 self._data += "&{}={}".format(key, val)
92
93 def complete(self, t):
94 t = ccat.newTransaction(_(self._mtype), _(self._mname))
95 try:
96 t.setStatus(t, _(self._status))
97 t.setTimestamp(t, self._time)
98 t.setDurationInMillis(t, self._duration_ms)
99 t.addData(t, _(self._data))
100 finally:
101 t.complete(t)
102
103 @property
104 def _duration_ms(self):

Callers

nothing calls this directly

Calls 7

_Function · 0.70
newTransactionMethod · 0.65
setStatusMethod · 0.65
setTimestampMethod · 0.65
setDurationInMillisMethod · 0.65
addDataMethod · 0.65
completeMethod · 0.65

Tested by

no test coverage detected