Movatterモバイル変換


[0]ホーム

URL:


Loading

Azure Service Bus

Serverless ObservabilityStackAPM Agent .NET

Instrumentation can be enabled for Azure Service Bus by referencingElastic.Apm.Azure.ServiceBus package and subscribing to diagnostic events using one of the subscribers:

  1. If the agent is included by referencing theElastic.Apm.NetCoreAll package, the subscribers will be automatically subscribed with the agent, and no further action is required.

  2. If you’re usingMicrosoft.Azure.ServiceBus, subscribeMicrosoftAzureServiceBusDiagnosticsSubscriber with the agent

    Agent.Subscribe(new MicrosoftAzureServiceBusDiagnosticsSubscriber());
  3. If you’re usingAzure.Messaging.ServiceBus, subscribeAzureMessagingServiceBusDiagnosticsSubscriber with the agent

    Agent.Subscribe(new AzureMessagingServiceBusDiagnosticsSubscriber());

A new transaction is created when

  • one or more messages are received from a queue or topic subscription.
  • a message is receive deferred from a queue or topic subscription.

A new span is created when there is a current transaction, and when

  • one or more messages are sent to a queue or topic.
  • one or more messages are scheduled to a queue or a topic.

[8]ページ先頭

©2009-2025 Movatter.jp