Skip to content

Commit 2a8a47a

Browse files
committed
fix: Update span ops
1 parent d78e1c0 commit 2a8a47a

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ parameters:
1010
- src/aliases.php
1111
excludePaths:
1212
- src/aliases.php
13+
- src/Tracing/Cache/TraceableCacheAdapterForV2.php
14+
- src/Tracing/Cache/TraceableTagAwareCacheAdapterForV2.php
1315
- src/Tracing/Doctrine/DBAL/TracingStatementForV2.php
1416
- src/Tracing/Doctrine/DBAL/TracingDriverForV2.php
1517
- tests/End2End/App

src/Tracing/Doctrine/DBAL/AbstractTracingStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class AbstractTracingStatement
1414
/**
1515
* @internal
1616
*/
17-
public const SPAN_OP_STMT_EXECUTE = 'sql.stmt.execute';
17+
public const SPAN_OP_STMT_EXECUTE = 'db.sql.execute';
1818

1919
/**
2020
* @var HubInterface The current hub

src/Tracing/Doctrine/DBAL/TracingDriverConnection.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,32 @@ final class TracingDriverConnection implements TracingDriverConnectionInterface
2323
/**
2424
* @internal
2525
*/
26-
public const SPAN_OP_CONN_PREPARE = 'sql.conn.prepare';
26+
public const SPAN_OP_CONN_PREPARE = 'db.sql.prepare';
2727

2828
/**
2929
* @internal
3030
*/
31-
public const SPAN_OP_CONN_QUERY = 'sql.conn.query';
31+
public const SPAN_OP_CONN_QUERY = 'db.sql.query';
3232

3333
/**
3434
* @internal
3535
*/
36-
public const SPAN_OP_CONN_EXEC = 'sql.conn.exec';
36+
public const SPAN_OP_CONN_EXEC = 'db.sql.exec';
3737

3838
/**
3939
* @internal
4040
*/
41-
public const SPAN_OP_CONN_BEGIN_TRANSACTION = 'sql.conn.begin_transaction';
41+
public const SPAN_OP_CONN_BEGIN_TRANSACTION = 'db.sql.transaction.begin';
4242

4343
/**
4444
* @internal
4545
*/
46-
public const SPAN_OP_TRANSACTION_COMMIT = 'sql.transaction.commit';
46+
public const SPAN_OP_TRANSACTION_COMMIT = 'db.sql.transaction.commit';
4747

4848
/**
4949
* @internal
5050
*/
51-
public const SPAN_OP_TRANSACTION_ROLLBACK = 'sql.transaction.rollback';
51+
public const SPAN_OP_TRANSACTION_ROLLBACK = 'db.sql.transaction.rollback';
5252

5353
/**
5454
* @var HubInterface The current hub

tests/End2End/App/Kernel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
4444
$loader->load(__DIR__ . '/deprecations_for_5.yml');
4545
}
4646

47+
if (self::VERSION_ID >= 60000) {
48+
$loader->load(__DIR__ . '/deprecations_for_6.yml');
49+
}
50+
4751
if (interface_exists(MessageBusInterface::class) && self::VERSION_ID >= 40300) {
4852
$loader->load(__DIR__ . '/messenger.yml');
4953
}

tests/End2End/App/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sentry:
2+
dsn: http://[email protected]/sentry/1
23
tracing:
34
enabled: true
45
options:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
framework:
2+
http_method_override: false

0 commit comments

Comments
 (0)