-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathspan.py
More file actions
36 lines (23 loc) · 1.02 KB
/
span.py
File metadata and controls
36 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, List, Union, Optional
from datetime import datetime
from .._models import BaseModel
__all__ = ["Span"]
class Span(BaseModel):
id: str
name: str
"""Name that describes what operation this span represents"""
start_time: datetime
"""The time the span started"""
trace_id: str
"""Unique identifier for the trace this span belongs to"""
data: Union[Dict[str, object], List[Dict[str, object]], None] = None
"""Any additional metadata or context for the span"""
end_time: Optional[datetime] = None
"""The time the span ended"""
input: Union[Dict[str, object], List[Dict[str, object]], None] = None
"""Input parameters or data for the operation"""
output: Union[Dict[str, object], List[Dict[str, object]], None] = None
"""Output data resulting from the operation"""
parent_id: Optional[str] = None
"""ID of the parent span if this is a child span in a trace"""