You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clear and concise description of what the bug is.
While reviewing traces, I noticed that there were a bunch of exceptions being thrown but not logged. Upon review, they all look like they are related to the ElasticsearchDiagnosticsSubscriber.
Regardless, using this try/catch for common flows feels dirty and is no doubt adding unnecessary contention.
On the flipside of this, I don't know if relative URI set in the HttpConnectionDiagnosticsListener in the ElasticsearchDiagnosticsSubscriber is even correct. I don't have enough understanding of the codebase to understand why it would be passing the PathAndQuery and not the full URI.
APM Agent version
The version of the
Elastic.Apm
nuget package used1.26.0
Environment
Operating system and version:
Windows & Linux
.NET Framework/Core name and version (e.g. .NET 4.6.2, NET Core 3.1.100) :
Net Core 3.1, Net 6, Net 8
Application Target Framework(s) (e.g. net462, netcoreapp3.1):
netcoreapp3.1, net6.0, net8.0
Describe the bug
A clear and concise description of what the bug is.
While reviewing traces, I noticed that there were a bunch of exceptions being thrown but not logged. Upon review, they all look like they are related to the ElasticsearchDiagnosticsSubscriber.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No exceptions are thrown
Actual behavior
Lots of exceptions are thrown
Details:
Start here: https://github.com/elastic/apm-agent-dotnet/blob/main/src/instrumentations/Elastic.Apm.Elasticsearch/HttpConnectionDiagnosticsListener.cs#L48
https://github.com/elastic/apm-agent-dotnet/blob/main/src/Elastic.Apm/Api/Http.cs#L41
https://github.com/elastic/apm-agent-dotnet/blob/main/src/Elastic.Apm/Helpers/Sanitization.cs#L74
Possibly change
to
or if it needs to function even more closely where the
out
of TrySanitizeUrl becomesnull
, could doRegardless, using this try/catch for common flows feels dirty and is no doubt adding unnecessary contention.
On the flipside of this, I don't know if relative URI set in the
HttpConnectionDiagnosticsListener
in theElasticsearchDiagnosticsSubscriber
is even correct. I don't have enough understanding of the codebase to understand why it would be passing the PathAndQuery and not the full URI.Anyways, I'd appreciate any help in getting this cleaned up.
Thanks
The text was updated successfully, but these errors were encountered: