Azure / azure-kusto-python

Kusto client libraries for Python
MIT License
183 stars 107 forks source link

Missing client activity id #537

Closed rishimalhotra2 closed 4 months ago

rishimalhotra2 commented 6 months ago

Is there a way to get the client activity id for each query execution?

To be more specific,

response = client.execute(db, query), how do i get the ClientActivityId for that query execution?

AsafMah commented 5 months ago

If you want to identify your request, the recommended way is to set the client request id by yourself like so:

props = ClientRequestProperties()
props.client_request_id = "<prefix>;<some_guid>"
result = client.execute("Data", "AllDataTypes", props) 
AsafMah commented 4 months ago

Closing, feel free to open with a comment.