mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-29 13:12:39 +08:00
Expand sqlalchemy pool.name to follow the semantic conventions (#1778)
This commit is contained in:
@ -70,11 +70,12 @@ class TestSqlalchemyMetricsInstrumentation(TestBase):
|
||||
)
|
||||
|
||||
def test_metrics_without_pool_name(self):
|
||||
pool_name = ""
|
||||
pool_name = "pool_test_name"
|
||||
engine = sqlalchemy.create_engine(
|
||||
"sqlite:///:memory:",
|
||||
pool_size=5,
|
||||
poolclass=QueuePool,
|
||||
pool_logging_name=pool_name,
|
||||
)
|
||||
|
||||
metrics = self.get_sorted_metrics()
|
||||
|
Reference in New Issue
Block a user