100 references to SetTag
Aspire.Confluent.Kafka (32)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (9)
335
activity.
SetTag
(SemanticConventions.AttributeErrorType, errorType);
363
activity.
SetTag
(SemanticConventions.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
364
activity.
SetTag
(SemanticConventions.AttributeMessagingClientId, this.Name);
365
activity.
SetTag
(SemanticConventions.AttributeMessagingDestinationName, topicPartitionOffset?.Topic);
366
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaDestinationPartition, topicPartitionOffset?.Partition.Value);
367
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaMessageOffset, topicPartitionOffset?.Offset.Value);
368
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaConsumerGroup, this.GroupId);
369
activity.
SetTag
(SemanticConventions.AttributeMessagingOperation, ConfluentKafkaCommon.ReceiveOperationName);
372
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaMessageKey, key);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (14)
61
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
68
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
108
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
115
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
151
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
158
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
192
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
199
activity?.
SetTag
(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
341
activity.
SetTag
(SemanticConventions.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
342
activity.
SetTag
(SemanticConventions.AttributeMessagingClientId, this.Name);
343
activity.
SetTag
(SemanticConventions.AttributeMessagingDestinationName, topic);
344
activity.
SetTag
(SemanticConventions.AttributeMessagingOperation, ConfluentKafkaCommon.PublishOperationName);
348
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaMessageKey, message.Key);
353
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaDestinationPartition, partition);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (9)
135
processActivity?.
SetTag
(SemanticConventions.AttributeErrorType, ex.GetType().FullName);
161
activity.
SetTag
(SemanticConventions.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
162
activity.
SetTag
(SemanticConventions.AttributeMessagingClientId, clientId);
163
activity.
SetTag
(SemanticConventions.AttributeMessagingDestinationName, topicPartitionOffset?.Topic);
164
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaDestinationPartition, topicPartitionOffset?.Partition.Value);
165
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaMessageOffset, topicPartitionOffset?.Offset.Value);
166
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaConsumerGroup, groupId);
167
activity.
SetTag
(SemanticConventions.AttributeMessagingOperation, ConfluentKafkaCommon.ProcessOperationName);
170
activity.
SetTag
(SemanticConventions.AttributeMessagingKafkaMessageKey, key);
Aspire.Microsoft.Data.SqlClient (8)
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 (5)
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);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (8)
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 (5)
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);
Aspire.StackExchange.Redis (11)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (11)
113
activity.
SetTag
(StackExchangeRedisConnectionInstrumentation.RedisFlagsKeyName, command.Flags.ToString());
121
activity.
SetTag
(SemanticConventions.AttributeDbStatement, commandAndKey + " " + script);
125
activity.
SetTag
(SemanticConventions.AttributeDbStatement, commandAndKey);
130
activity.
SetTag
(SemanticConventions.AttributeDbStatement, command.Command);
136
activity.
SetTag
(SemanticConventions.AttributeDbStatement, command.Command);
143
activity.
SetTag
(SemanticConventions.AttributeNetPeerIp, ipEndPoint.Address.ToString());
144
activity.
SetTag
(SemanticConventions.AttributeNetPeerPort, ipEndPoint.Port);
148
activity.
SetTag
(SemanticConventions.AttributeNetPeerName, dnsEndPoint.Host);
149
activity.
SetTag
(SemanticConventions.AttributeNetPeerPort, dnsEndPoint.Port);
153
activity.
SetTag
(SemanticConventions.AttributePeerService, command.EndPoint.ToString());
157
activity.
SetTag
(StackExchangeRedisConnectionInstrumentation.RedisDatabaseIndexKeyName, command.Db);
Microsoft.AspNetCore.SignalR.Client.Core (11)
HubConnection.cs (7)
1062
activity.
SetTag
("error.type", ex.GetType().FullName);
1073
activity.
SetTag
("server.address", uri.Host);
1074
activity.
SetTag
("server.port", uri.Port);
1121
activity.
SetTag
("rpc.service", _serviceName);
1128
activity.
SetTag
("rpc.system", "signalr");
1129
activity.
SetTag
("rpc.method", methodName);
1257
activity.
SetTag
("error.type", ex.GetType().FullName);
Internal\InvocationRequest.cs (4)
128
Activity.
SetTag
("error.type", exception.GetType().FullName);
159
Activity.
SetTag
("error.type", typeof(OperationCanceledException).FullName);
203
Activity.
SetTag
("error.type", exception.GetType().FullName);
224
Activity.
SetTag
("error.type", typeof(OperationCanceledException).FullName);
Microsoft.AspNetCore.SignalR.Core (1)
Internal\DefaultHubDispatcher.cs (1)
896
activity?.
SetTag
("error.type", ex.GetType().FullName);
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
686
_ = activity.
SetTag
("error.type", e.GetType().FullName)
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerFactoryTests.cs (1)
370
activity.
SetTag
("MyTagKey3", "4");
Seq.ApiService (1)
Program.cs (1)
26
activity?.
SetTag
("Number", number);
System.Net.Http (13)
System\Net\Http\DiagnosticsHandler.cs (8)
122
activity.
SetTag
(methodTag.Key, methodTag.Value);
125
activity.
SetTag
("http.request.method_original", request.Method.Method);
130
activity.
SetTag
("server.address", requestUri.Host);
131
activity.
SetTag
("server.port", requestUri.Port);
132
activity.
SetTag
("url.full", DiagnosticsHelper.GetRedactedUriString(requestUri));
203
activity.
SetTag
("http.response.status_code", DiagnosticsHelper.GetBoxedInt32((int)response.StatusCode));
204
activity.
SetTag
("network.protocol.version", DiagnosticsHelper.GetProtocolVersionString(response.Version));
209
activity.
SetTag
("error.type", errorType);
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (5)
31
activity.
SetTag
("server.address", authority.HostValue);
32
activity.
SetTag
("server.port", authority.Port);
33
activity.
SetTag
("url.scheme", isSecure ? "https" : "http");
51
activity.
SetTag
("network.peer.address", remoteEndPoint.Address.ToString());
68
activity.
SetTag
("error.type", errorType);
System.Net.NameResolution (3)
System\Net\NameResolutionTelemetry.cs (3)
179
_activity.
SetTag
("dns.question.name", host);
204
_activity.
SetTag
("dns.answers", answerValues);
210
_activity.
SetTag
("error.type", errorType);
System.Net.Security (4)
System\Net\Security\NetSecurityTelemetry.cs (4)
324
activity.
SetTag
("server.address", stream.TargetHostName);
341
activity.
SetTag
("tls.protocol.name", protocolName);
342
activity.
SetTag
("tls.protocol.version", protocolVersion);
348
activity.
SetTag
("error.type", exception.GetType().FullName);
System.Net.Sockets (6)
System\Net\Sockets\SocketsTelemetry.cs (6)
113
activity.
SetTag
("network.peer.address", ipEndPoint.Address.ToString());
114
activity.
SetTag
("network.peer.port", port);
115
activity.
SetTag
("network.type", ipEndPoint.AddressFamily == AddressFamily.InterNetwork ? "ipv4" : "ipv6");
133
activity.
SetTag
("network.peer.address", peerAddress);
139
static void SetNetworkTransport(Activity activity, string transportType) => activity.
SetTag
("network.transport", transportType);
155
activity.
SetTag
("error.type", GetErrorType(error));