153 references to SetTag
aspire (6)
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.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.Hosting (5)
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 (33)
Program.cs (33)
435activity.SetTag("gen_ai.system", "gpt");
436activity.SetTag("gen_ai.operation.name", "chat");
437activity.SetTag("gen_ai.provider.name", "openai");
438activity.SetTag("gen_ai.response.model", "gpt-4o");
439activity.SetTag("gen_ai.usage.input_tokens", 350);
440activity.SetTag("gen_ai.usage.output_tokens", 120);
441activity.SetTag("gen_ai.response.id", "chatcmpl-test-12345");
442activity.SetTag("gen_ai.system_instructions", """
450activity.SetTag("gen_ai.input.messages", """
568activity.SetTag("gen_ai.output.messages", """
603activity.SetTag("gen_ai.tool.definitions", """
731activity.SetTag("gen_ai.system", "gpt");
732activity.SetTag("gen_ai.input.messages", "invalid");
750activity.SetTag("gen_ai.system", "langchain");
751activity.SetTag("gen_ai.provider.name", "openai");
752activity.SetTag("gen_ai.response.model", "gpt-4");
753activity.SetTag("gen_ai.usage.input_tokens", 150);
754activity.SetTag("gen_ai.usage.output_tokens", 75);
758activity.SetTag("gen_ai.prompt.0.role", "system");
759activity.SetTag("gen_ai.prompt.0.content", "You are a helpful AI assistant that provides accurate and concise information.");
761activity.SetTag("gen_ai.prompt.1.role", "user");
762activity.SetTag("gen_ai.prompt.1.content", "What is the capital of France?");
764activity.SetTag("gen_ai.prompt.2.role", "assistant");
765activity.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.");
767activity.SetTag("gen_ai.prompt.3.message.role", "user");
768activity.SetTag("gen_ai.prompt.3.message.content", "What about Germany?");
770activity.SetTag("gen_ai.completion.1.message.role", "assistant");
771activity.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.");
789activity.SetTag("gen_ai.system", "gpt");
790activity.SetTag("gen_ai.response.model", "gpt-4");
791activity.SetTag("gen_ai.usage.input_tokens", 125);
792activity.SetTag("gen_ai.usage.output_tokens", 89);
793activity.SetTag("gen_ai.response.id", "chatcmpl-eval-123");
System.Net.Http (13)
System.Net.NameResolution (3)
System.Net.Security (4)
System.Net.Sockets (6)