16 instantiations of OtlpContext
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
69
_otlpContext = new
OtlpContext
Aspire.Dashboard.Components.Tests (3)
Controls\PlotlyChartTests.cs (1)
56
var context = new
OtlpContext
{ Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
25
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
297
return new
OtlpContext
Aspire.Dashboard.Tests (12)
Model\SpanWaterfallViewModelTests.cs (5)
19
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
49
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
84
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
124
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
146
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (5)
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() };
127
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
20
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
297
return new
OtlpContext
33 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)
119
private static void AddExemplars(MetricValueBase value, RepeatedField<Exemplar> exemplars,
OtlpContext
context)
Otlp\Model\OtlpApplication.cs (2)
24
public
OtlpContext
Context { get; }
37
public OtlpApplication(string name, string instanceId, bool uninstrumentedPeer,
OtlpContext
context)
Otlp\Model\OtlpHelpers.cs (5)
183
public static KeyValuePair<string, string>[] ToKeyValuePairs(this RepeatedField<KeyValue> attributes,
OtlpContext
context)
203
public static KeyValuePair<string, string>[] ToKeyValuePairs(this RepeatedField<KeyValue> attributes,
OtlpContext
context, Func<KeyValue, bool> filter)
260
public static void CopyKeyValuePairs(RepeatedField<KeyValue> attributes, KeyValuePair<string, string>[] parentAttributes,
OtlpContext
context, out int copyCount, [NotNull] ref KeyValuePair<string, string>[]? copiedAttributes)
288
private static void CopyKeyValues(RepeatedField<KeyValue> attributes, KeyValuePair<string, string>[] copiedAttributes, int index,
OtlpContext
context, out int copyCount)
448
public static bool TryAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope,
OtlpContext
context, [NotNullWhen(true)] out OtlpScope? s)
Otlp\Model\OtlpInstrument.cs (1)
37
public required
OtlpContext
Context { get; init; }
Otlp\Model\OtlpLogEntry.cs (1)
28
public OtlpLogEntry(LogRecord record, OtlpApplicationView logApp, OtlpScope scope,
OtlpContext
context)
Otlp\Storage\TelemetryRepository.cs (2)
54
internal readonly
OtlpContext
_otlpContext;
1162
private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span, OtlpTrace trace, OtlpScope scope,
OtlpContext
context)
Aspire.Dashboard.Components.Tests (4)
Controls\PlotlyChartTests.cs (1)
56
var
context = new OtlpContext { Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
25
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
47
public static OtlpScope CreateOtlpScope(
OtlpContext
context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
295
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)
Aspire.Dashboard.Tests (15)
Model\SpanWaterfallViewModelTests.cs (5)
19
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
49
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
84
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
124
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
146
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (5)
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() };
127
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
435
var
context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 }, logger: factory.CreateLogger<OtlpHelpersTests>());
480
var
context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }, logger: factory.CreateLogger<OtlpHelpersTests>());
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
20
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
47
public static OtlpScope CreateOtlpScope(
OtlpContext
context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
295
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)