11 references to CreateContext
Aspire.Dashboard.Tests (11)
Model\ApplicationsSelectHelpersTests.cs (1)
217
return new OtlpApplication(applicationKey.Name, applicationKey.InstanceId!, TelemetryTestHelpers.
CreateContext
());
Model\DefaultInstrumentUnitResolverTests.cs (1)
32
Parent = new OtlpMeter(new InstrumentationScope { Name = "meter_name" }, TelemetryTestHelpers.
CreateContext
()),
TelemetryRepositoryTests\OtlpHelpersTests.cs (9)
172
TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
202
TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
246
TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
285
TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
321
TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
364
TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
400
var results = attributes.ToKeyValuePairs(TelemetryTestHelpers.
CreateContext
(options: new TelemetryLimitOptions { MaxAttributeCount = 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>());