10 instantiations of OtlpContext
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
59
_otlpContext = new
OtlpContext
Aspire.Dashboard.Components.Tests (3)
Controls\PlotlyChartTests.cs (1)
57
var context = new
OtlpContext
{ Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
26
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
282
return new
OtlpContext
Aspire.Dashboard.Tests (6)
Model\SpanWaterfallViewModelTests.cs (1)
18
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (4)
18
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
39
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
66
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
93
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
282
return new
OtlpContext
25 references to OtlpContext
Aspire.Dashboard (14)
Otlp\Model\MetricValues\DimensionScope.cs (3)
32
public void AddPointValue(NumberDataPoint d,
OtlpContext
context)
80
public void AddHistogramValue(HistogramDataPoint h,
OtlpContext
context)
112
private static void AddExemplars(MetricValueBase value, RepeatedField<Exemplar> exemplars,
OtlpContext
context)
Otlp\Model\OtlpApplication.cs (2)
24
public
OtlpContext
Context { get; }
33
public OtlpApplication(string name, string instanceId,
OtlpContext
context)
Otlp\Model\OtlpHelpers.cs (4)
171
public static KeyValuePair<string, string>[] ToKeyValuePairs(this RepeatedField<KeyValue> attributes,
OtlpContext
context)
191
public static KeyValuePair<string, string>[] ToKeyValuePairs(this RepeatedField<KeyValue> attributes,
OtlpContext
context, Func<KeyValue, bool> filter)
248
public static void CopyKeyValuePairs(RepeatedField<KeyValue> attributes, KeyValuePair<string, string>[] parentAttributes,
OtlpContext
context, out int copyCount, [NotNull] ref KeyValuePair<string, string>[]? copiedAttributes)
276
private static void CopyKeyValues(RepeatedField<KeyValue> attributes, KeyValuePair<string, string>[] copiedAttributes, int index,
OtlpContext
context, out int copyCount)
Otlp\Model\OtlpLogEntry.cs (1)
26
public OtlpLogEntry(LogRecord record, OtlpApplicationView logApp, OtlpScope scope,
OtlpContext
context)
Otlp\Model\OtlpMeter.cs (1)
17
public OtlpMeter(InstrumentationScope scope,
OtlpContext
context)
Otlp\Model\OtlpScope.cs (1)
27
public OtlpScope(InstrumentationScope scope,
OtlpContext
context)
Otlp\Storage\TelemetryRepository.cs (2)
47
internal readonly
OtlpContext
_otlpContext;
976
private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span, OtlpTrace trace, OtlpScope scope,
OtlpContext
context)
Aspire.Dashboard.Components.Tests (3)
Controls\PlotlyChartTests.cs (1)
57
var
context = new OtlpContext { Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
26
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
280
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)
Aspire.Dashboard.Tests (8)
Model\SpanWaterfallViewModelTests.cs (1)
18
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (4)
18
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
39
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
66
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
93
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
422
var
context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 }, logger: factory.CreateLogger<OtlpHelpersTests>());
467
var
context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }, logger: factory.CreateLogger<OtlpHelpersTests>());
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
280
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)