Currently apm-agent-dotnet only supports pre-defined DiagnosticSources: HttpDiagnosticListener, AspNetCoreDiagnosticListener and EfCoreDiagnosticListener.
If I want more trace ability, i need to revert to "manual" api, and wrap code in Transactions and Spans.
I would like to take a standard approach in .NET and use custom DiagnosticSource and Activity classes.
It would be great if apm-agent-dotnet could provide a hook and translate some of the Activities to Spans automatically for me.
Is this a viable idea? Could this work? Any plans for that in the future?
For example, diagnostics-eventflow does a similar thing, but it writes directly to ElasticSearch, not APM Server
OpenTracing project also does a similar thing, see GenericDiagnostics
Thanks a lot for your feedback!