208 references to SetTag
ActivityGenerator (2)
aspire (10)
Aspire.Cli.Tests (3)
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 (8)
Aspire.Hosting (7)
Aspire.Hosting.Native.Core (5)
Aspire.Hosting.Native.Server (3)
Aspire.Hosting.RemoteHost (9)
Diagnostics\RemoteHostProfilingTelemetry.cs (9)
307activity.SetTag(Tags.ProfilingSessionId, sessionId);
308activity.SetTag(Tags.LegacyStartupOperationId, sessionId);
413activity.SetTag(Tags.AssemblyRequestedNames, SanitizeAssemblyNames(assemblyNames));
423activity.SetTag(Tags.AssemblyLoadedNames, SanitizeAssemblyNames(assemblies.Select(assembly => assembly.GetName().Name)));
450activity.SetTag(Tags.CapabilityId, capabilityId);
451activity.SetTag(Tags.CapabilityPackage, GetCapabilityPackage(capabilityId));
452activity.SetTag(Tags.CapabilityArgumentCount, args?.Count ?? 0);
453activity.SetTag(Tags.CapabilityArgumentNames, SanitizeArgumentNames(args));
505private 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-aot (4)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Hosting (6)
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)
535activity.SetTag("gen_ai.system", "gpt");
536activity.SetTag("gen_ai.operation.name", "chat");
537activity.SetTag("gen_ai.provider.name", "openai");
538activity.SetTag("gen_ai.response.model", "gpt-4o");
539activity.SetTag("gen_ai.usage.input_tokens", 350);
540activity.SetTag("gen_ai.usage.output_tokens", 120);
541activity.SetTag("gen_ai.response.id", "chatcmpl-test-12345");
542activity.SetTag("gen_ai.system_instructions", """
550activity.SetTag("gen_ai.input.messages", """
668activity.SetTag("gen_ai.output.messages", """
703activity.SetTag("gen_ai.tool.definitions", """
831activity.SetTag("gen_ai.system", "gpt");
832activity.SetTag("gen_ai.input.messages", "invalid");
850activity.SetTag("gen_ai.system", "langchain");
851activity.SetTag("gen_ai.provider.name", "openai");
852activity.SetTag("gen_ai.response.model", "gpt-4");
853activity.SetTag("gen_ai.usage.input_tokens", 150);
854activity.SetTag("gen_ai.usage.output_tokens", 75);
858activity.SetTag("gen_ai.prompt.0.role", "system");
859activity.SetTag("gen_ai.prompt.0.content", "You are a helpful AI assistant that provides accurate and concise information.");
861activity.SetTag("gen_ai.prompt.1.role", "user");
862activity.SetTag("gen_ai.prompt.1.content", "What is the capital of France?");
864activity.SetTag("gen_ai.prompt.2.role", "assistant");
865activity.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.");
867activity.SetTag("gen_ai.prompt.3.message.role", "user");
868activity.SetTag("gen_ai.prompt.3.message.content", "What about Germany?");
870activity.SetTag("gen_ai.completion.1.message.role", "assistant");
871activity.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.");
889activity.SetTag("gen_ai.system", "gpt");
890activity.SetTag("gen_ai.response.model", "gpt-4");
891activity.SetTag("gen_ai.usage.input_tokens", 125);
892activity.SetTag("gen_ai.usage.output_tokens", 89);
893activity.SetTag("gen_ai.response.id", "chatcmpl-eval-123");
System.Net.Http (13)
System.Net.NameResolution (3)
System.Net.Security (4)
System.Net.Sockets (6)