16 references to SemanticConventions
Aspire.Microsoft.Data.SqlClient (16)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlActivitySourceHelper.cs (1)
27
new KeyValuePair<string, object>(
SemanticConventions
.AttributeDbSystem, MicrosoftSqlServerDatabaseSystemName),
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (3)
104
activity.SetTag(
SemanticConventions
.AttributeDbName, (string)database);
115
activity.SetTag(
SemanticConventions
.AttributeDbStatement, (string)commandText);
123
activity.SetTag(
SemanticConventions
.AttributeDbStatement, (string)commandText);
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (12)
58
/// cref="
SemanticConventions
.AttributeDbStatement"/> tag. Default
70
/// the <see cref="
SemanticConventions
.AttributeDbStatement"/> tag.
110
/// The default behavior is to set the SqlConnection DataSource as the <see cref="
SemanticConventions
.AttributePeerService"/> tag.
112
/// <see cref="
SemanticConventions
.AttributeServerAddress"/> or <see cref="
SemanticConventions
.AttributeServerSocketAddress"/> tag,
113
/// the instance name will be sent as the <see cref="
SemanticConventions
.AttributeDbMsSqlInstanceName"/> tag,
114
/// and the port will be sent as the <see cref="
SemanticConventions
.AttributeServerPort"/> tag if it is not 1433 (the default port).
261
sqlActivity.SetTag(
SemanticConventions
.AttributePeerService, dataSource);
273
sqlActivity.SetTag(
SemanticConventions
.AttributeDbMsSqlInstanceName, connectionDetails.InstanceName);
278
sqlActivity.SetTag(
SemanticConventions
.AttributeServerAddress, connectionDetails.ServerHostName);
282
sqlActivity.SetTag(
SemanticConventions
.AttributeServerSocketAddress, connectionDetails.ServerIpAddress);
288
sqlActivity.SetTag(
SemanticConventions
.AttributeServerPort, connectionDetails.Port);