Skip to content

Commit 9c92064

Browse files
docs: clarify capture_connection_cleanup usage in docstring
1 parent 4c08069 commit 9c92064

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg

instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
3636
# You can optionally pass a custom TracerProvider to AsyncPGInstrumentor.instrument()
3737
AsyncPGInstrumentor().instrument()
38+
39+
# OR opt into not tracing connection pool cleanup
3840
AsyncPGInstrumentor(capture_connection_cleanup=False).instrument()
3941
4042
async def main():

0 commit comments

Comments
 (0)