@@ -44,7 +44,7 @@ public function connect()
4444 ->addTag (new ErrorTag ());
4545 throw $ e ;
4646 } finally {
47- $ this -> tracer -> finish ( $ span ->addTag (new DbType ($ this ->getDatabasePlatform ()->getName ())));
47+ $ span ->addTag (new DbType ($ this ->getDatabasePlatform ()->getName ()))-> finish ( );
4848 }
4949 }
5050
@@ -65,7 +65,7 @@ public function prepare($prepareString)
6565 ->addTag (new ErrorTag ());
6666 throw $ e ;
6767 } finally {
68- $ this -> tracer -> finish ($ span );
68+ $ span -> finish ();
6969 }
7070 }
7171
@@ -86,7 +86,7 @@ public function executeQuery($query, array $params = [], $types = [], QueryCache
8686 ->addTag (new ErrorTag ());
8787 throw $ e ;
8888 } finally {
89- $ this -> tracer -> finish ($ span );
89+ $ span -> finish ();
9090 }
9191 }
9292
@@ -107,7 +107,7 @@ public function executeUpdate($query, array $params = [], array $types = [])
107107 ->addTag (new ErrorTag ());
108108 throw $ e ;
109109 } finally {
110- $ this -> tracer -> finish ($ span );
110+ $ span -> finish ();
111111 }
112112 }
113113
@@ -129,7 +129,7 @@ public function query()
129129 ->addTag (new ErrorTag ());
130130 throw $ e ;
131131 } finally {
132- $ this -> tracer -> finish ($ span );
132+ $ span -> finish ();
133133 }
134134 }
135135
@@ -152,7 +152,7 @@ public function exec($statement)
152152 ->addTag (new ErrorTag ());
153153 throw $ e ;
154154 } finally {
155- $ this -> tracer -> finish ($ span );
155+ $ span -> finish ();
156156 }
157157 }
158158
@@ -171,7 +171,7 @@ public function beginTransaction()
171171 ->addTag (new ErrorTag ());
172172 throw $ e ;
173173 } finally {
174- $ this -> tracer -> finish ( $ span ->addTag (new DbalNestingLevelTag ($ this ->getTransactionNestingLevel ())));
174+ $ span ->addTag (new DbalNestingLevelTag ($ this ->getTransactionNestingLevel ()))-> finish ( );
175175 }
176176 }
177177
@@ -190,7 +190,7 @@ public function commit()
190190 ->addTag (new ErrorTag ());
191191 throw $ e ;
192192 } finally {
193- $ this -> tracer -> finish ( $ span ->addTag (new DbalNestingLevelTag ($ this ->getTransactionNestingLevel ())));
193+ $ span ->addTag (new DbalNestingLevelTag ($ this ->getTransactionNestingLevel ()))-> finish ( );
194194 }
195195 }
196196
@@ -209,7 +209,7 @@ public function rollBack()
209209 ->addTag (new ErrorTag ());
210210 throw $ e ;
211211 } finally {
212- $ this -> tracer -> finish ( $ span ->addTag (new DbalNestingLevelTag ($ this ->getTransactionNestingLevel ())));
212+ $ span ->addTag (new DbalNestingLevelTag ($ this ->getTransactionNestingLevel ()))-> finish ( );
213213 }
214214 }
215215}
0 commit comments