Azure Storage
Serverless Observability Stack APM Agent .NET
Instrumentation 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.NetCoreAllpackage, the subscribers will be automatically subscribed with the agent, and no further action is required.If you’re using
Azure.Storage.Blobs, subscribeAzureBlobStorageDiagnosticsSubscriberwith the agentAgent.Subscribe(new AzureBlobStorageDiagnosticsSubscriber());If you’re using
Azure.Storage.Queues, subscribeAzureQueueStorageDiagnosticsSubscriberwith the agentAgent.Subscribe(new AzureQueueStorageDiagnosticsSubscriber());If you’re using
Azure.Storage.Files.Shares, subscribeAzureFileShareStorageDiagnosticsSubscriberwith 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.