18 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)
299
return new
OtlpContext
Aspire.Dashboard.Tests (14)
Model\SpanWaterfallViewModelTests.cs (7)
22
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
52
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
82
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
117
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
172
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
222
var context = new
OtlpContext
{ Logger = NullLogger.Instance, Options = new() };
244
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)
299
return new
OtlpContext
35 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)
460
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;
1212
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)
297
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)
Aspire.Dashboard.Tests (17)
Model\SpanWaterfallViewModelTests.cs (7)
22
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
52
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
82
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
117
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
172
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
222
var
context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
244
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)
297
public static
OtlpContext
CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)