28 references to AddTag
Aspire.RabbitMQ.Client (6)
AspireRabbitMQExtensions.cs (6)
237activity.AddTag("server.address", address.Host); 239activity.AddTag("messaging.system", "rabbitmq"); 242activity.AddTag("messaging.operation", operation); 253connectAttemptActivity.AddTag("exception.message", ex.Message); 257connectAttemptActivity.AddTag("exception.stacktrace", ex.ToString()); 258connectAttemptActivity.AddTag("exception.type", ex.GetType().FullName);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
124context.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)
207activity.AddTag("tagTestKey", "tagTestValue"); 289activity.AddTag("testKey1", null); 290activity.AddTag("testKey2", string.Empty); 291activity.AddTag("testKey3", "testValue"); 318activity.AddTag("testTagKey1", "testTagValue"); 349activity.AddTag("MyTagKey1", "1"); 358activity.AddTag("MyTagKey2", "2"); 365activity.AddTag("MyTagKey3", "3");