Azure Storage
editAzure Storage
editQuick start
editInstrumentation can be enabled for Azure Storage by referencing Elastic.Apm.Azure.Storage
package and subscribing to diagnostic events using one of the subscribers:
-
If the agent is included by referencing the
Elastic.Apm.NetCoreAll
package, the subscribers will be automatically subscribed with the agent, and no further action is required. -
If you’re using
Azure.Storage.Blobs
, subscribeAzureBlobStorageDiagnosticsSubscriber
with the agentAgent.Subscribe(new AzureBlobStorageDiagnosticsSubscriber());
-
If you’re using
Azure.Storage.Queues
, subscribeAzureQueueStorageDiagnosticsSubscriber
with the agentAgent.Subscribe(new AzureQueueStorageDiagnosticsSubscriber());
-
If you’re using
Azure.Storage.Files.Shares
, subscribeAzureFileShareStorageDiagnosticsSubscriber
with the agentAgent.Subscribe(new AzureFileShareStorageDiagnosticsSubscriber());
For Azure Queue storage,
- A new transaction is created when one or more messages are received from a queue
- A new span is created when there is a current transaction, and when a message is sent to a queue
For Azure Blob storage, a new span is created when there is a current transaction and when a request is made to blob storage.
For Azure File Share storage, a new span is crated when there is a current transaction and when a request is made to file storage.