Azure Storageedit

Quick startedit

Instrumentation can be enabled for Azure Storage by referencing Elastic.Apm.Azure.Storage package and subscribing to diagnostic events using one of the subscribers:

  1. 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.
  2. If you’re using Azure.Storage.Blobs, subscribe AzureBlobStorageDiagnosticsSubscriber with the agent

    Agent.Subscribe(new AzureBlobStorageDiagnosticsSubscriber());
  3. If you’re using Azure.Storage.Queues, subscribe AzureQueueStorageDiagnosticsSubscriber with the agent

    Agent.Subscribe(new AzureQueueStorageDiagnosticsSubscriber());
  4. If you’re using Azure.Storage.Files.Shares, subscribe AzureFileShareStorageDiagnosticsSubscriber with the agent

    Agent.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 container is created, enumerated, or deleted
  • A page blob is created, uploaded, downloaded, or deleted
  • A block blob is created, copied, uploaded, downloaded or deleted

For Azure File Share storage, a new span is created when there is a current transaction and when

  • A share is created or deleted
  • A directory is created or deleted
  • A file is created, uploaded, or deleted.