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