149 references to SetTag
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.Microsoft.Data.SqlClient (8)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (8)
Aspire.StackExchange.Redis (11)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (11)
113activity.SetTag(StackExchangeRedisConnectionInstrumentation.RedisFlagsKeyName, command.Flags.ToString());
121activity.SetTag(SemanticConventions.AttributeDbStatement, commandAndKey + " " + script);
125activity.SetTag(SemanticConventions.AttributeDbStatement, commandAndKey);
130activity.SetTag(SemanticConventions.AttributeDbStatement, command.Command);
136activity.SetTag(SemanticConventions.AttributeDbStatement, command.Command);
143activity.SetTag(SemanticConventions.AttributeNetPeerIp, ipEndPoint.Address.ToString());
144activity.SetTag(SemanticConventions.AttributeNetPeerPort, ipEndPoint.Port);
148activity.SetTag(SemanticConventions.AttributeNetPeerName, dnsEndPoint.Host);
149activity.SetTag(SemanticConventions.AttributeNetPeerPort, dnsEndPoint.Port);
153activity.SetTag(SemanticConventions.AttributePeerService, command.EndPoint.ToString());
157activity.SetTag(StackExchangeRedisConnectionInstrumentation.RedisDatabaseIndexKeyName, command.Db);
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.SignalR.Client.Core (11)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Extensions.AI (3)
Microsoft.Extensions.DataIngestion (8)
Microsoft.Extensions.ServiceDiscovery.Dns (4)
Microsoft.Extensions.Telemetry.Tests (1)
Seq.ApiService (1)
Stress.ApiService (24)
Program.cs (24)
435activity.SetTag("gen_ai.system", "gpt");
436activity.SetTag("gen_ai.input.messages", """
528activity.SetTag("gen_ai.system", "gpt");
529activity.SetTag("gen_ai.input.messages", "invalid");
547activity.SetTag("gen_ai.system", "langchain");
548activity.SetTag("gen_ai.provider.name", "openai");
549activity.SetTag("gen_ai.response.model", "gpt-4");
550activity.SetTag("gen_ai.usage.input_tokens", 150);
551activity.SetTag("gen_ai.usage.output_tokens", 75);
555activity.SetTag("gen_ai.prompt.0.role", "system");
556activity.SetTag("gen_ai.prompt.0.content", "You are a helpful AI assistant that provides accurate and concise information.");
558activity.SetTag("gen_ai.prompt.1.role", "user");
559activity.SetTag("gen_ai.prompt.1.content", "What is the capital of France?");
561activity.SetTag("gen_ai.prompt.2.role", "assistant");
562activity.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.");
564activity.SetTag("gen_ai.prompt.3.message.role", "user");
565activity.SetTag("gen_ai.prompt.3.message.content", "What about Germany?");
567activity.SetTag("gen_ai.completion.1.message.role", "assistant");
568activity.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.");
586activity.SetTag("gen_ai.system", "gpt");
587activity.SetTag("gen_ai.response.model", "gpt-4");
588activity.SetTag("gen_ai.usage.input_tokens", 125);
589activity.SetTag("gen_ai.usage.output_tokens", 89);
590activity.SetTag("gen_ai.response.id", "chatcmpl-eval-123");
System.Net.Http (13)
System.Net.NameResolution (3)
System.Net.Security (4)
System.Net.Sockets (6)