28 references to AddTag
Aspire.RabbitMQ.Client (6)
AspireRabbitMQExtensions.cs (6)
237
activity.
AddTag
("server.address", address.Host);
239
activity.
AddTag
("messaging.system", "rabbitmq");
242
activity.
AddTag
("messaging.operation", operation);
253
connectAttemptActivity.
AddTag
("exception.message", ex.Message);
257
connectAttemptActivity.
AddTag
("exception.stacktrace", ex.ToString());
258
connectAttemptActivity.
AddTag
("exception.type", ex.GetType().FullName);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
124
context.Features.Get<IHttpActivityFeature>()?.Activity.
AddTag
("http.long_running", "true");
Microsoft.Extensions.AI (13)
ChatCompletion\OpenTelemetryChatClient.cs (10)
226
.
AddTag
(OpenTelemetryConsts.GenAI.Operation.Name, OpenTelemetryConsts.GenAI.Chat)
227
.
AddTag
(OpenTelemetryConsts.GenAI.Request.Model, modelId)
228
.
AddTag
(OpenTelemetryConsts.GenAI.SystemName, _system);
233
.
AddTag
(OpenTelemetryConsts.Server.Address, _serverAddress)
261
_ = activity.
AddTag
(OpenTelemetryConsts.GenAI.Request.StopSequences, $"[{string.Join(", ", stopSequences.Select(s => $"\"{s}\""))}]");
290
_ = activity.
AddTag
(OpenTelemetryConsts.GenAI.Request.PerProvider(_system, "response_format"), responseFormat);
356
.
AddTag
(OpenTelemetryConsts.Error.Type, error.GetType().FullName)
369
_ = activity.
AddTag
(OpenTelemetryConsts.GenAI.Response.FinishReasons, $"[\"{finishReason.Value.ToLowerInvariant()}\"]");
375
_ = activity.
AddTag
(OpenTelemetryConsts.GenAI.Response.Id, completion.CompletionId);
380
_ = activity.
AddTag
(OpenTelemetryConsts.GenAI.Response.Model, completion.ModelId);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (3)
146
.
AddTag
(OpenTelemetryConsts.Server.Address, _endpointAddress)
222
.
AddTag
(OpenTelemetryConsts.Error.Type, error.GetType().FullName)
233
_ = activity.
AddTag
(OpenTelemetryConsts.GenAI.Response.Model, responseModelId);
Microsoft.Extensions.Telemetry.Tests (8)
Logging\ExtendedLoggerFactoryTests.cs (8)
207
activity.
AddTag
("tagTestKey", "tagTestValue");
289
activity.
AddTag
("testKey1", null);
290
activity.
AddTag
("testKey2", string.Empty);
291
activity.
AddTag
("testKey3", "testValue");
318
activity.
AddTag
("testTagKey1", "testTagValue");
349
activity.
AddTag
("MyTagKey1", "1");
358
activity.
AddTag
("MyTagKey2", "2");
365
activity.
AddTag
("MyTagKey3", "3");