File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Instrumentation/PDO/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace OpenTelemetry \Contrib \Instrumentation \PDO ;
66
7+ use OpenTelemetry \API \Globals ;
78use OpenTelemetry \API \Instrumentation \CachedInstrumentation ;
8- use OpenTelemetry \API \Trace \Propagation \TraceContextPropagator ;
99use OpenTelemetry \API \Trace \Span ;
1010use OpenTelemetry \API \Trace \SpanBuilderInterface ;
1111use OpenTelemetry \API \Trace \SpanKind ;
@@ -414,8 +414,7 @@ private static function getSqlCommenterDatabase(): array
414414 private static function addSqlComments (string $ query ): string
415415 {
416416 $ comments = [];
417- $ prop = TraceContextPropagator::getInstance ();
418- $ prop ->inject ($ comments );
417+ Globals::propagator ()->inject ($ comments );
419418 $ query = trim ($ query );
420419 if (self ::isSqlCommenterPrepend ()) {
421420 return Utils::formatComments (array_filter ($ comments )) . $ query ;
You can’t perform that action at this time.
0 commit comments