@@ -32,7 +32,7 @@ class Span(BaseModel):
32
32
Span
33
33
""" # noqa: E501
34
34
span_id : StrictStr = Field (description = "Unique identifier for the span." )
35
- root_span_id : Optional [StrictStr ] = Field (default = None , description = "Identifier of the root span, if this is a child span ." )
35
+ trace_id : Optional [StrictStr ] = Field (default = None , description = "Identifier of the trace ." )
36
36
parent_span_id : Optional [StrictStr ] = Field (default = None , description = "Identifier of the parent span, if this is a nested span." )
37
37
linked_span_ids : Optional [List [StrictStr ]] = Field (default = None , description = "List of linked span identifiers." )
38
38
start_us : StrictInt = Field (description = "Start time of the span in microseconds." )
@@ -42,7 +42,7 @@ class Span(BaseModel):
42
42
params : Optional [List [Param ]] = Field (default = None , description = "List of parameters associated with the span." )
43
43
counters : Optional [List [Counter ]] = Field (default = None , description = "Counters associated with the span." )
44
44
profiles : Optional [List [Profile ]] = Field (default = None , description = "List of profiles related to the span." )
45
- __properties : ClassVar [List [str ]] = ["span_id" , "root_span_id " , "parent_span_id" , "linked_span_ids" , "start_us" , "end_us" , "tags" , "exceptions" , "params" , "counters" , "profiles" ]
45
+ __properties : ClassVar [List [str ]] = ["span_id" , "trace_id " , "parent_span_id" , "linked_span_ids" , "start_us" , "end_us" , "tags" , "exceptions" , "params" , "counters" , "profiles" ]
46
46
47
47
model_config = ConfigDict (
48
48
populate_by_name = True ,
@@ -131,7 +131,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
131
131
132
132
_obj = cls .model_validate ({
133
133
"span_id" : obj .get ("span_id" ),
134
- "root_span_id " : obj .get ("root_span_id " ),
134
+ "trace_id " : obj .get ("trace_id " ),
135
135
"parent_span_id" : obj .get ("parent_span_id" ),
136
136
"linked_span_ids" : obj .get ("linked_span_ids" ),
137
137
"start_us" : obj .get ("start_us" ),
0 commit comments