1 instantiation of StackExchangeRedisConnectionInstrumentation
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (1)
48var instrumentation = new StackExchangeRedisConnectionInstrumentation(connection, name, options);
19 references to StackExchangeRedisConnectionInstrumentation
Aspire.StackExchange.Redis (19)
AspireRedisExtensions.cs (1)
162t.AddSource(StackExchangeRedisConnectionInstrumentation.ActivitySource.Name);
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (8)
94name = StackExchangeRedisConnectionInstrumentation.ActivityName; 99StackExchangeRedisConnectionInstrumentation.ActivitySourceBoth : 101StackExchangeRedisConnectionInstrumentation.ActivitySourceNew : 102StackExchangeRedisConnectionInstrumentation.ActivitySource; 105options.EmitOldAttributes && options.EmitNewAttributes ? StackExchangeRedisConnectionInstrumentation.BothCreationTags : 106options.EmitNewAttributes ? StackExchangeRedisConnectionInstrumentation.NewCreationTags : 107options.EmitOldAttributes ? StackExchangeRedisConnectionInstrumentation.OldCreationTags : 148activity.SetTag(StackExchangeRedisConnectionInstrumentation.RedisDatabaseIndexKeyName, command.Db);
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (4)
23internal static readonly ActivitySource ActivitySource = ActivitySourceFactory.Create(typeof(StackExchangeRedisConnectionInstrumentation), SemanticConventionsVersion, name: ActivitySourceName); 26internal static readonly ActivitySource ActivitySourceNew = ActivitySourceFactory.Create(typeof(StackExchangeRedisConnectionInstrumentation), SemanticConventionsVersionNew, name: ActivitySourceName); 28internal static readonly ActivitySource ActivitySourceBoth = ActivitySourceFactory.Create(typeof(StackExchangeRedisConnectionInstrumentation), null, name: ActivitySourceName); 58/// Initializes a new instance of the <see cref="StackExchangeRedisConnectionInstrumentation"/> class.
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (3)
23internal List<StackExchangeRedisConnectionInstrumentation> InstrumentedConnections { get; } = []; 48var instrumentation = new StackExchangeRedisConnectionInstrumentation(connection, name, options); 70foreach (var instrumentation in this.InstrumentedConnections)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentationOptions.cs (2)
37/// Gets or sets a value indicating whether the <see cref="StackExchangeRedisConnectionInstrumentation"/> should use reflection to get more detailed 66/// Gets or sets a value indicating whether the <see cref="StackExchangeRedisConnectionInstrumentation"/> should enrich Activity with <see cref="ActivityEvent"/> entries about the Redis command processing/lifetime. Defaults to <see langword="true"/>.
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\TracerProviderBuilderExtensions.cs (1)
154.AddSource(StackExchangeRedisConnectionInstrumentation.ActivitySource.Name)