def _set_connection_attributes(span, conn):
    if not span.is_recording():
        return
    for key, value in _extract_conn_attributes(
        conn.connection_pool.connection_kwargs
    ).items():
        span.set_attribute(key, value)
Ejemplo n.º 2
0
def _set_connection_attributes(span, conn):
    for key, value in _extract_conn_attributes(
            conn.connection_pool.connection_kwargs).items():
        span.set_attribute(key, value)