-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spammed by 'read-result-set-header' traces in application insights #1524
Comments
How are you feeding the "Trace" is supposed to be used for logs; see the data model documentation: https://learn.microsoft.com/en-us/azure/azure-monitor/app/data-model-complete MySqlConnector is calling |
That makes sense to me, but as far as I can tell I don't do anything special builder.Services.AddOpenTelemetry()
.UseAzureMonitor(options =>
{
options.ConnectionString = config.ConnectionString;
options.SamplingRatio = config.SamplingRate;
})
// TL: Enable telemetry for Pomelo. Pomelo uses MySqlConnector: https://mysqlconnector.net/diagnostics/tracing/
// Do not be fooled by MySql.Data
.WithTracing(b => b.AddSource("MySqlConnector")
); That said, this could very much be a configuration issue outside of MySqlConnector scope Using |
I only dug in a little, but this could ultimately be coming from |
@bgrainger Indeed As I mentioned I'm happy to make a PR that allow it to be optional. |
https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/trace/extending-the-sdk/README.md#filtering-processor says to "toggle the |
Sadly the filtering seems to apply to the entire scope of the activity rather than only the events. Shame the events are read only. I tried to use a TelemetryFilter for application insights directly but looks like the opentelemetry implementation use another client In a similar case they implemented at the core, not sure the project is comparable though |
Npgsql recently added the ability to suppress their activity events: npgsql/npgsql#5853. |
Made a basic PR, It would be very nice if we could configure this in some way |
Is your feature request related to a problem? Please describe.
Disclaimer; Still learning how to use OpenTelemetry
We recently added OpenTelemetry to our application as well as MySqlConnector as source
Sadly, we are spammed by traces with the message "read-result-set-header".
These seem to be created here
As a result our application insights are filled:
Note that all the "traces" are the message in question.
I have not found anyway to filter these, though I might simply be overlooking something
Describe the solution you'd like
These traces add little value as far as I can tell, I would like to be able to turn them off.
Perhaps we can add a option to do so?
I'm happy to take a crack at it.
Note: If it is possible to filter these, that would also help me. Currently our filter looks like this and I am unable to change the Events associated with the activity ( read only ):
The text was updated successfully, but these errors were encountered: