16 references to SemanticConventions
Aspire.Microsoft.EntityFrameworkCore.SqlServer (16)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlActivitySourceHelper.cs (1)
27new KeyValuePair<string, object>(SemanticConventions.AttributeDbSystem, MicrosoftSqlServerDatabaseSystemName),
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (3)
104activity.SetTag(SemanticConventions.AttributeDbName, (string)database); 115activity.SetTag(SemanticConventions.AttributeDbStatement, (string)commandText); 123activity.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). 261sqlActivity.SetTag(SemanticConventions.AttributePeerService, dataSource); 273sqlActivity.SetTag(SemanticConventions.AttributeDbMsSqlInstanceName, connectionDetails.InstanceName); 278sqlActivity.SetTag(SemanticConventions.AttributeServerAddress, connectionDetails.ServerHostName); 282sqlActivity.SetTag(SemanticConventions.AttributeServerSocketAddress, connectionDetails.ServerIpAddress); 288sqlActivity.SetTag(SemanticConventions.AttributeServerPort, connectionDetails.Port);