36 references to TelemetryTestHelpers
Aspire.Dashboard.Tests (36)
Integration\OtlpHttpServiceTests.cs (3)
83
Scope =
TelemetryTestHelpers
.CreateScope("TestLogger")
87
scopeLogs.LogRecords.Add(
TelemetryTestHelpers
.CreateLogRecord(message: $"This is the test log message {i}. The quick brown fox jumped over the lazy dog. Peter Pipper picked a patch of pickled peppers."));
93
Resource =
TelemetryTestHelpers
.CreateResource(),
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()),
Model\SpanWaterfallViewModelTests.cs (3)
23
var scope = new OtlpScope(
TelemetryTestHelpers
.CreateScope(), context);
24
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
25
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app2, trace, scope, spanId: "1-1", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 3, DateTimeKind.Utc)));
Model\TraceHelpersTests.cs (13)
21
var scope = new OtlpScope(
TelemetryTestHelpers
.CreateScope(), context);
22
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 1, DateTimeKind.Utc)));
43
var scope = new OtlpScope(
TelemetryTestHelpers
.CreateScope(), context);
44
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app2, trace, scope, spanId: "1-2", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
45
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app1, trace, scope, spanId: "1-1", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 1, DateTimeKind.Utc)));
70
var scope = new OtlpScope(
TelemetryTestHelpers
.CreateScope(), context);
71
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
72
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app2, trace, scope, spanId: "1-1", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 1, DateTimeKind.Utc)));
98
var scope = new OtlpScope(
TelemetryTestHelpers
.CreateScope(), context);
99
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
100
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app2, trace, scope, spanId: "1-1", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 3, DateTimeKind.Utc)));
101
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app3, trace, scope, spanId: "1-1-1", parentSpanId: "1-1", startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
102
trace.AddSpan(
TelemetryTestHelpers
.CreateOtlpSpan(app3, trace, scope, spanId: "1-2", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
TelemetryRepositoryTests\ApplicationTests.cs (1)
9
using static Aspire.Tests.Shared.Telemetry.
TelemetryTestHelpers
;
TelemetryRepositoryTests\LogTests.cs (1)
16
using static Aspire.Tests.Shared.Telemetry.
TelemetryTestHelpers
;
TelemetryRepositoryTests\MetricsTests.cs (1)
14
using static Aspire.Tests.Shared.Telemetry.
TelemetryTestHelpers
;
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>());
TelemetryRepositoryTests\OtlpSpanTests.cs (2)
23
var scope = new OtlpScope(
TelemetryTestHelpers
.CreateScope(), context);
25
var span =
TelemetryTestHelpers
.CreateOtlpSpan(app1, trace, scope, spanId: "abc", parentSpanId: null, startDate: s_testTime,
TelemetryRepositoryTests\TraceTests.cs (1)
16
using static Aspire.Tests.Shared.Telemetry.
TelemetryTestHelpers
;