2 instantiations of new
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (2)
81
if (options.Filter != null && !options.Filter(
new
(parentActivity, command)))
231
options.Enrich?.Invoke(activity,
new
(parentActivity, command));
5 references to new
Aspire.StackExchange.Redis (5)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentationOptions.cs (5)
44
/// Gets or sets a callback method allowing to filter out particular <see cref="
RedisInstrumentationContext
"/> instances.
47
/// The filter callback receives the <see cref="
RedisInstrumentationContext
"/> for the
54
public Func<
RedisInstrumentationContext
, bool>? Filter { get; set; }
61
/// <para><see cref="
RedisInstrumentationContext
"/>: the profiled redis command from which additional information can be extracted to enrich the activity.</para>
63
public Action<Activity,
RedisInstrumentationContext
>? Enrich { get; set; }