MCPcopy Create free account
hub / github.com/StackStorm/st2 / wrapper

Method wrapper

st2common/st2common/metrics/base.py:212–216  ·  view source on GitHub ↗
(*args, **kw)

Source from the content-addressed store, hash-verified

210 def __call__(self, func):
211 @wraps(func)
212 def wrapper(*args, **kw):
213 with self as counter_with_timer:
214 if self._include_parameter:
215 kw["metrics_counter_with_timer"] = counter_with_timer
216 return func(*args, **kw)
217
218 return wrapper
219

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected