File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -124,24 +124,22 @@ public function onRequest(GetResponseEvent $event)
124
124
$ this ->injectable ->assign ($ context );
125
125
}
126
126
127
- $ this ->spans ->push (
128
- $ this ->tracer
129
- ->start (
130
- $ this ->getOperationName ($ request ),
131
- [
132
- new HttpMethodTag ($ request ->getMethod ()),
133
- new HttpUriTag ($ request ->getRequestUri ()),
134
- ]
135
- )
136
- ->start ((int )($ request ->server ->get ('REQUEST_TIME_FLOAT ' , time ()) * 1000000 ))
127
+ $ requestSpan = $ this ->tracer ->start (
128
+ $ this ->getOperationName ($ request ),
129
+ [
130
+ new HttpMethodTag ($ request ->getMethod ()),
131
+ new HttpUriTag ($ request ->getRequestUri ()),
132
+ ]
137
133
);
138
134
139
135
if (HttpKernelInterface::MASTER_REQUEST === $ event ->getRequestType ()) {
136
+ $ requestSpan ->start ((int )($ request ->server ->get ('REQUEST_TIME_FLOAT ' , time ()) * 1000000 ));
140
137
$ span = $ this ->tracer
141
138
->start ('app.start ' )
142
139
->start ((int )($ request ->server ->get ('REQUEST_TIME_FLOAT ' , time ()) * 1000000 ));
143
140
$ this ->tracer ->finish ($ span );
144
141
}
142
+ $ this ->spans ->push ($ requestSpan );
145
143
146
144
return $ this ;
147
145
}
You can’t perform that action at this time.
0 commit comments