17 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)
298
return new
OtlpContext
Aspire.Dashboard.Tests (13)
Model\SpanWaterfallViewModelTests.cs (6)
21
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
51
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
81
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
116
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
157
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
179
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)
298
return new
OtlpContext
34 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\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 TryGetOrAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope,
OtlpContext
context, TelemetryType telemetryType, [NotNullWhen(true)] out OtlpScope? s)
Otlp\Model\OtlpInstrument.cs (1)
37
public required
OtlpContext
Context { get; init; }
Otlp\Model\OtlpLogEntry.cs (1)
30
public OtlpLogEntry(LogRecord record, OtlpResourceView resourceView, OtlpScope scope,
OtlpContext
context)
Otlp\Model\OtlpResource.cs (2)
24
public
OtlpContext
Context { get; }
37
public OtlpResource(string name, string instanceId, bool uninstrumentedPeer,
OtlpContext
context)
Otlp\Storage\TelemetryRepository.cs (2)
54
internal readonly
OtlpContext
_otlpContext;
1199
private static OtlpSpan CreateSpan(OtlpResourceView resourceView, 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)
296
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)
Aspire.Dashboard.Tests (16)
Model\SpanWaterfallViewModelTests.cs (6)
21
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
51
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
81
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
116
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
157
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
179
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)
296
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)