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

Class TraceContext

st2common/st2common/models/api/trace.py:169–192  ·  view source on GitHub ↗

Context object that either represents an existing Trace in the system or provides sufficient information to start a new Trace. Note that one of id or trace must be provided. :param id_: Id of an existing Trace. This is unique and must exist in the system Optional pr

Source from the content-addressed store, hash-verified

167
168
169class TraceContext(object):
170 """
171 Context object that either represents an existing Trace in the system or
172 provides sufficient information to start a new Trace. Note that one of id
173 or trace must be provided.
174
175 :param id_: Id of an existing Trace. This is unique and must exist in the system
176 Optional property.
177 :type id_: ``str``
178
179 :param trace_tag: User assigned value which may or may not be unique.
180 Optional property.
181 :type trace_tag: ``str``
182 """
183
184 def __init__(self, id_=None, trace_tag=None):
185 self.id_ = id_
186 self.trace_tag = trace_tag
187
188 def __str__(self):
189 return "{id_: %s, trace_tag: %s}" % (self.id_, self.trace_tag)
190
191 def __json__(self):
192 return vars(self)

Callers 10

dispatchMethod · 0.90
runMethod · 0.90
_update_traceMethod · 0.90
_get_trace_contextMethod · 0.90
_create_trace_contextMethod · 0.90
test_str_methodMethod · 0.90
dispatchMethod · 0.90
_get_valid_trace_contextFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_str_methodMethod · 0.72