View already Agent's subscribed APM diagnostic listeners

APM Agent language and version:
Dotnet (variety)
Browser version:

Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Nuget package
Fresh install or upgraded from other version?
Fresh install

There is no problem or bug in the behavior but I think there is a lack of functionality of the agent itself. We are using many legacy projects with multiple services where we have to explicitly subscribe to SqlClientDiagnosticSubscriber on each project or webservice. This exposes us to duplicate subscriptions that will cause repeating logging records in APM. Is there a way to track the current subscribed listeners? If not, is there an elegant way to implement such tracking?

Steps to reproduce:

  1. Using public API subscribe to SqlClientDiagnosticSubscriber in multiple different webservices/projects.
  2. See duplicate logging records in APM service log
  3. Determine ways to see if Agent is already subscribed to SqlClientDiagnosticSubscriber

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Just for bookkeeping: this continued via GitHub [BUG] Not able to track current Subscribed Listeners in APM Agent · Issue #1734 · elastic/apm-agent-dotnet · GitHub