MySqlConnector


Tracing

MySqlConnector implements ActivitySource for tracing its operations. The ActivitySource name is MySqlConnector.

The available activity names and tags are documented in issue 1036.

OpenTelemetry

To export traces using OpenTelemetry, install the OpenTelemetry NuGet package and add code similar to the following:

using var openTelemetry = Sdk.CreateTracerProviderBuilder()
	.AddSource("MySqlConnector")
	// add a destination, for example:
	// .AddZipkinExporter(o => { o.Endpoint = new Uri(...); })
	// .AddJaegerExporter(o => { o.AgentHost = "..."; o.AgentPort = 6831; })