File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ struct ctrace_scope_span {
34
34
struct ctrace_instrumentation_scope * instrumentation_scope ;
35
35
struct cfl_list spans ;
36
36
cfl_sds_t schema_url ;
37
- struct cfl_list _head ; /* link to ctrace_resource_span->scope_spans list */
37
+
38
+ /* parent resource span */
39
+ struct ctrace_resource_span * resource_span ;
40
+
41
+ /* link to ctrace_resource_span->scope_spans list */
42
+ struct cfl_list _head ;
38
43
};
39
44
40
45
/* scope span */
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ struct ctrace_scope_span *ctr_scope_span_create(struct ctrace_resource_span *res
30
30
}
31
31
cfl_list_init (& scope_span -> spans );
32
32
cfl_list_add (& scope_span -> _head , & resource_span -> scope_spans );
33
+ scope_span -> resource_span = resource_span ;
33
34
34
35
return scope_span ;
35
36
}
You can’t perform that action at this time.
0 commit comments