trulens.core.schema.event¶
trulens.core.schema.event
¶
Serializable event-related classes.
Classes¶
Event
¶
Bases: SerialModel
, Hashable
The class that represents a single event data entry.
Attributes¶
record
instance-attribute
¶
For a span, this is an object that includes: - name: the function/procedure that emitted the data - kind: SPAN_KIND_TRULENS - parent_span_id: the unique identifier for the parent span - status: STATUS_CODE_ERROR when the span corresponds to an unhandled exception. Otherwise, STATUS_CODE_UNSET.
record_attributes
instance-attribute
¶
Attributes of the record that can either come from the user, or based on the TruLens semantic conventions.
record_type
instance-attribute
¶
record_type: EventRecordType
Specifies the kind of record specified by this row. This will always be "SPAN" for TruLens.
start_timestamp
instance-attribute
¶
start_timestamp: datetime
The timestamp when the span started. This is a UNIX timestamp in milliseconds. Note: The Snowflake event table uses the TIMESTAMP_NTZ data type for this column.
timestamp
instance-attribute
¶
timestamp: datetime
The timestamp when the span concluded. This is a UNIX timestamp in milliseconds. Note: The Snowflake event table uses the TIMESTAMP_NTZ data type for this column.