RecordDiagnostics Class

Record Response headers from Cosmos read operations.

The full response headers are stored in the headers property.

Inheritance
builtins.object
RecordDiagnostics

Constructor

RecordDiagnostics()

Examples


>>> rh = RecordDiagnostics()

>>> col = b.create_container(
...     id="some_container",
...     partition_key=PartitionKey(path='/id', kind='Hash'),
...     response_hook=rh)

>>> rh.headers['x-ms-activity-id']
'6243eeed-f06a-413d-b913-dcf8122d0642'

Methods

clear

clear

clear()

Attributes

body

headers

request_charge