File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 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 {
3434 struct ctrace_instrumentation_scope * instrumentation_scope ;
3535 struct cfl_list spans ;
3636 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 ;
3843};
3944
4045/* 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
3030 }
3131 cfl_list_init (& scope_span -> spans );
3232 cfl_list_add (& scope_span -> _head , & resource_span -> scope_spans );
33+ scope_span -> resource_span = resource_span ;
3334
3435 return scope_span ;
3536}
You can’t perform that action at this time.
0 commit comments