Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
  • Loading branch information
JamesNK committed Jul 10, 2025
commit ea5f15cdb71b3d1a4d3eda131f6f463733583f53
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void Create_RootSpanZeroDuration_ZeroPercentage()
var trace = new OtlpTrace(new byte[] { 1, 2, 3 });
var scope = TelemetryTestHelpers.CreateOtlpScope(context);
trace.AddSpan(TelemetryTestHelpers.CreateOtlpSpan(app1, trace, scope, spanId: TelemetryTestHelpers.GetHexId("1"), parentSpanId: null, startDate: date, endDate: date));
var log = TelemetryTestHelpers.CreateOtlpLogEntry(TelemetryTestHelpers.CreateLogRecord(traceId: trace.TraceId, spanId: TelemetryTestHelpers.GetHexId("1")), app1View, scope, context);
var log = new OtlpLogEntry(TelemetryTestHelpers.CreateLogRecord(traceId: trace.TraceId, spanId: TelemetryTestHelpers.GetHexId("1")), app1View, scope, context);

// Act
var vm = SpanWaterfallViewModel.Create(trace, [log], new SpanWaterfallViewModel.TraceDetailState([], []));
Expand Down
5 changes: 0 additions & 5 deletions tests/Shared/Telemetry/TelemetryTestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ public static OtlpScope CreateOtlpScope(OtlpContext context, string? name = null
return new OtlpScope(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
}

public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpApplicationView app, OtlpScope scope, OtlpContext context)
{
return new OtlpLogEntry(record, app, scope, context);
}

public static InstrumentationScope CreateScope(string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
{
var scope = new InstrumentationScope() { Name = name ?? "TestScope" };
Expand Down
Loading