Buckets:

download
raw
722 Bytes
from __future__ import annotations
from typing import Any
try:
from opentelemetry.instrumentation.asyncpg import AsyncPGInstrumentor
except ImportError:
raise RuntimeError(
'`logfire.instrument_asyncpg()` requires the `opentelemetry-instrumentation-asyncpg` package.\n'
'You can install this with:\n'
" pip install 'logfire[asyncpg]'"
)
def instrument_asyncpg(**kwargs: Any) -> None:
"""Instrument the `asyncpg` module so that spans are automatically created for each query.
See the `Logfire.instrument_asyncpg` method for details.
"""
capture_parameters = kwargs.pop('capture_parameters', False)
AsyncPGInstrumentor(capture_parameters).instrument(**kwargs)

Xet Storage Details

Size:
722 Bytes
·
Xet hash:
179708c1bc0e888b10484ba2f6e1d93fb9c6db569ef6fa83430f86ff2a6a0aa5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.