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