34 references to TelemetryTestHelpers
Aspire.Dashboard.Tests (34)
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
.CreateSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
25
trace.AddSpan(
TelemetryTestHelpers
.CreateSpan(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
.CreateSpan(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
.CreateSpan(app2, trace, scope, spanId: "1-2", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
45
trace.AddSpan(
TelemetryTestHelpers
.CreateSpan(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
.CreateSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
72
trace.AddSpan(
TelemetryTestHelpers
.CreateSpan(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
.CreateSpan(app1, trace, scope, spanId: "1", parentSpanId: null, startDate: new DateTime(2001, 1, 1, 1, 1, 2, DateTimeKind.Utc)));
100
trace.AddSpan(
TelemetryTestHelpers
.CreateSpan(app2, trace, scope, spanId: "1-1", parentSpanId: "1", startDate: new DateTime(2001, 1, 1, 1, 1, 3, DateTimeKind.Utc)));
101
trace.AddSpan(
TelemetryTestHelpers
.CreateSpan(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
.CreateSpan(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)
159
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
189
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
233
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
272
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
308
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
351
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }),
387
var results = attributes.ToKeyValuePairs(
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 }));
422
var context =
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 }, logger: factory.CreateLogger<OtlpHelpersTests>());
467
var context =
TelemetryTestHelpers
.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }, logger: factory.CreateLogger<OtlpHelpersTests>());
TelemetryRepositoryTests\TraceTests.cs (1)
16
using static Aspire.Tests.Shared.Telemetry.
TelemetryTestHelpers
;