232 references to SetTag
aspire (38)
Commands\RunCommand.cs (14)
259runActivity?.SetTag(TelemetryConstants.Tags.AppHostDetached, _configuration.GetBool(KnownConfigNames.CliRunDetached) is true);
280runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "project_not_found");
285runActivity?.SetTag(TelemetryConstants.Tags.AppHostIsolated, isolated);
291runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "project_not_found");
302runActivity?.SetTag(TelemetryConstants.Tags.AppHostLanguage, project.LanguageId);
386runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "startup_timeout");
395runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "build_failed");
432runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "startup_timeout");
590runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "canceled");
616runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "canceled");
625runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "project_not_found");
630runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "incompatible_version");
640runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, "backchannel_connection_failed");
657runActivity?.SetTag(TelemetryConstants.Tags.ErrorType, ex.GetType().FullName);
Aspire.Cli.Tests (1)
Aspire.Confluent.Kafka (32)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (14)
61activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
68activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
108activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
115activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
151activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
158activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
192activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatProduceException(produceException));
199activity?.SetTag(SemanticConventions.AttributeErrorType, errorType = FormatArgumentException(argumentException));
341activity.SetTag(SemanticConventions.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
342activity.SetTag(SemanticConventions.AttributeMessagingClientId, this.Name);
343activity.SetTag(SemanticConventions.AttributeMessagingDestinationName, topic);
344activity.SetTag(SemanticConventions.AttributeMessagingOperation, ConfluentKafkaCommon.PublishOperationName);
348activity.SetTag(SemanticConventions.AttributeMessagingKafkaMessageKey, message.Key);
353activity.SetTag(SemanticConventions.AttributeMessagingKafkaDestinationPartition, partition);
Aspire.Dashboard (7)
Aspire.Hosting (7)
Aspire.Hosting.RemoteHost (9)
Diagnostics\RemoteHostProfilingTelemetry.cs (9)
290activity.SetTag(Tags.ProfilingSessionId, sessionId);
291activity.SetTag(Tags.LegacyStartupOperationId, sessionId);
396activity.SetTag(Tags.AssemblyRequestedNames, SanitizeAssemblyNames(assemblyNames));
406activity.SetTag(Tags.AssemblyLoadedNames, SanitizeAssemblyNames(assemblies.Select(assembly => assembly.GetName().Name)));
433activity.SetTag(Tags.CapabilityId, capabilityId);
434activity.SetTag(Tags.CapabilityPackage, GetCapabilityPackage(capabilityId));
435activity.SetTag(Tags.CapabilityArgumentCount, args?.Count ?? 0);
436activity.SetTag(Tags.CapabilityArgumentNames, SanitizeArgumentNames(args));
479private void SetTag(string key, object? value) => activity?.SetTag(key, value);
Aspire.StackExchange.Redis (13)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (13)
148activity.SetTag(StackExchangeRedisConnectionInstrumentation.RedisDatabaseIndexKeyName, command.Db);
169activity.SetTag(SemanticConventions.AttributeDbStatement, statement);
186activity.SetTag(SemanticConventions.AttributeDbOperationName, command.Command);
187activity.SetTag(SemanticConventions.AttributeDbNamespace, command.Db.ToString(CultureInfo.InvariantCulture));
188activity.SetTag(SemanticConventions.AttributeDbQueryText, queryText);
196activity.SetTag(SemanticConventions.AttributeServerAddress, address);
197activity.SetTag(SemanticConventions.AttributeServerPort, ipEndPoint.Port);
198activity.SetTag(SemanticConventions.AttributeNetworkPeerAddress, address);
199activity.SetTag(SemanticConventions.AttributeNetworkPeerPort, ipEndPoint.Port);
203activity.SetTag(SemanticConventions.AttributeServerAddress, dnsEndPoint.Host);
204activity.SetTag(SemanticConventions.AttributeServerPort, dnsEndPoint.Port);
210activity.SetTag(SemanticConventions.AttributeServerAddress, address);
211activity.SetTag(SemanticConventions.AttributeNetworkPeerAddress, address);
dotnet (11)
dotnet-aot (3)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Hosting (5)
Microsoft.AspNetCore.SignalR.Client.Core (11)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Build.Framework (2)
Microsoft.Extensions.AI (3)
Microsoft.Extensions.AI.OpenAI (5)
Microsoft.Extensions.DataIngestion (8)
Microsoft.Extensions.ServiceDiscovery.Dns (4)
Microsoft.Extensions.Telemetry.Tests (1)
Seq.ApiService (1)
Stress.ApiService (33)
Program.cs (33)
479activity.SetTag("gen_ai.system", "gpt");
480activity.SetTag("gen_ai.operation.name", "chat");
481activity.SetTag("gen_ai.provider.name", "openai");
482activity.SetTag("gen_ai.response.model", "gpt-4o");
483activity.SetTag("gen_ai.usage.input_tokens", 350);
484activity.SetTag("gen_ai.usage.output_tokens", 120);
485activity.SetTag("gen_ai.response.id", "chatcmpl-test-12345");
486activity.SetTag("gen_ai.system_instructions", """
494activity.SetTag("gen_ai.input.messages", """
612activity.SetTag("gen_ai.output.messages", """
647activity.SetTag("gen_ai.tool.definitions", """
775activity.SetTag("gen_ai.system", "gpt");
776activity.SetTag("gen_ai.input.messages", "invalid");
794activity.SetTag("gen_ai.system", "langchain");
795activity.SetTag("gen_ai.provider.name", "openai");
796activity.SetTag("gen_ai.response.model", "gpt-4");
797activity.SetTag("gen_ai.usage.input_tokens", 150);
798activity.SetTag("gen_ai.usage.output_tokens", 75);
802activity.SetTag("gen_ai.prompt.0.role", "system");
803activity.SetTag("gen_ai.prompt.0.content", "You are a helpful AI assistant that provides accurate and concise information.");
805activity.SetTag("gen_ai.prompt.1.role", "user");
806activity.SetTag("gen_ai.prompt.1.content", "What is the capital of France?");
808activity.SetTag("gen_ai.prompt.2.role", "assistant");
809activity.SetTag("gen_ai.prompt.2.content", "The capital of France is Paris. It is located in the north-central part of the country and is known for its art, culture, and history.");
811activity.SetTag("gen_ai.prompt.3.message.role", "user");
812activity.SetTag("gen_ai.prompt.3.message.content", "What about Germany?");
814activity.SetTag("gen_ai.completion.1.message.role", "assistant");
815activity.SetTag("gen_ai.completion.1.message.content", "The capital of Germany is Berlin. It is located in the northeastern part of the country and serves as the political and cultural center.");
833activity.SetTag("gen_ai.system", "gpt");
834activity.SetTag("gen_ai.response.model", "gpt-4");
835activity.SetTag("gen_ai.usage.input_tokens", 125);
836activity.SetTag("gen_ai.usage.output_tokens", 89);
837activity.SetTag("gen_ai.response.id", "chatcmpl-eval-123");
System.Net.Http (13)
System.Net.NameResolution (3)
System.Net.Security (4)
System.Net.Sockets (6)