aiguofer commented on issue #887:
URL: https://github.com/apache/arrow-adbc/issues/887#issuecomment-1631124290

   Great, thanks for the info and context! I think we have a way forward using 
the SQLAlchemy built in pool, which should be usable with any dbapi compliant 
connection.
   
   As for adding headers to a statement, thanks for the info! was able to add 
DataDog tracing to a query with:
   
   ```
       def _set_tracing_headers(self, cursor: Cursor) -> None:
           current_context = tracer.current_trace_context()
           if current_context:
               headers: Dict[str, str] = {}
               HTTPPropagator.inject(current_context, headers)
               cursor.adbc_statement.set_options(
                   {f"{StatementOptions.RPC_CALL_HEADER_PREFIX.value}{k}": v 
for k, v in headers.items()}
               )
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to