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
| 167 | |
| 168 | |
| 169 | class 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) |
no outgoing calls