Skip to content

Commit 2984a0e

Browse files
Fix Format
1 parent add02e9 commit 2984a0e

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

next-gen/test/OpenTelemetry.AutoInstrumentation.Sdk.Tests/ProtobufOtlpLogRecordExporterAsyncTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace OpenTelemetry.AutoInstrumentation.Sdk.Tests;
1414

15-
public sealed partial class ProtobufOtlpLogRecordExporterAsyncTests : IDisposable
15+
internal sealed partial class ProtobufOtlpLogRecordExporterAsyncTests : IDisposable
1616
{
1717
private static LogRecordSeverity ToOtelSeverity(LogLevel level) => level switch
1818
{

next-gen/test/OpenTelemetry.AutoInstrumentation.Sdk.Tests/ProtobufOtlpMetricExporterAsyncTests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace OpenTelemetry.AutoInstrumentation.Sdk.Tests;
1010

1111
// Note: Metric aggregation is not tested here because it is handled by the .NET runtime before emitting the metrics out-of-process.
12-
public sealed class ProtobufOtlpMetricExporterAsyncTests
12+
internal sealed class ProtobufOtlpMetricExporterAsyncTests
1313
{
1414
[Fact]
1515
public async Task ToOtlpResourceMetricsTest()
@@ -37,7 +37,7 @@ public async Task ToOtlpResourceMetricsTest()
3737
counter.Add(100);
3838

3939
// Wait for measurement to be processed
40-
var collectedData = await collector.WaitForMeasurementAsync(TimeSpan.FromSeconds(5));
40+
var collectedData = await collector.WaitForMeasurementAsync(TimeSpan.FromSeconds(5)).ConfigureAwait(false);
4141

4242
// All assertions are now local to the test
4343
Assert.NotNull(collectedData);
@@ -84,7 +84,7 @@ public async Task ToOtlpResourceMetricsWithMultipleCountersTest()
8484
counter2.Add(5);
8585

8686
// Wait for all measurements
87-
var collectedData = await collector.WaitForMeasurementsAsync(2, TimeSpan.FromSeconds(5));
87+
var collectedData = await collector.WaitForMeasurementsAsync(2, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
8888

8989
Assert.Equal(2, collectedData.Count);
9090

@@ -119,7 +119,7 @@ public async Task ToOtlpResourceMetricsWithDifferentTypesTest()
119119
doubleGauge.Record(3.14159);
120120

121121
// Wait for all measurements
122-
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5));
122+
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
123123

124124
Assert.Equal(3, collectedData.Count);
125125

@@ -152,7 +152,7 @@ public async Task ToOtlpResourceMetricsWithUpDownCounterTest()
152152

153153
upDownCounter.Add(10);
154154

155-
var collectedData = await collector.WaitForMeasurementsAsync(1, TimeSpan.FromSeconds(5));
155+
var collectedData = await collector.WaitForMeasurementsAsync(1, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
156156

157157
Assert.Single(collectedData);
158158

@@ -190,7 +190,7 @@ public async Task ToOtlpResourceMetricsWithHistogramTest()
190190
histogram.Record(1.5, new("method", "GET"), new("status", "500"));
191191

192192
// Wait for all measurements
193-
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5));
193+
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
194194

195195
Assert.Equal(3, collectedData.Count);
196196

@@ -230,7 +230,7 @@ public async Task ToOtlpResourceMetricsWithLongUpDownCounterTest()
230230

231231
upDownCounter.Add(1048576L); // Allocate 1MB
232232

233-
var collectedData = await collector.WaitForMeasurementsAsync(1, TimeSpan.FromSeconds(5));
233+
var collectedData = await collector.WaitForMeasurementsAsync(1, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
234234

235235
Assert.Single(collectedData);
236236

@@ -266,7 +266,7 @@ public async Task ToOtlpResourceMetricsWithIntHistogramTest()
266266
histogram.Record(4096, new KeyValuePair<string, object?>("endpoint", "/api/data"));
267267

268268
// Wait for all measurements
269-
var collectedData = await collector.WaitForMeasurementsAsync(4, TimeSpan.FromSeconds(5));
269+
var collectedData = await collector.WaitForMeasurementsAsync(4, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
270270

271271
Assert.Equal(4, collectedData.Count);
272272

@@ -313,7 +313,7 @@ public async Task ToOtlpResourceMetricsWithFloatGaugeTest()
313313
gauge.Record(38.1f, new KeyValuePair<string, object?>("core", "2"));
314314

315315
// Wait for all measurements
316-
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5));
316+
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
317317

318318
Assert.Equal(3, collectedData.Count);
319319

@@ -366,7 +366,7 @@ public async Task ToOtlpResourceMetricsWithMixedInstrumentTypesTest()
366366
gauge.Record(45.2f);
367367

368368
// Wait for all measurements
369-
var collectedData = await collector.WaitForMeasurementsAsync(4, TimeSpan.FromSeconds(5));
369+
var collectedData = await collector.WaitForMeasurementsAsync(4, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
370370

371371
Assert.Equal(4, collectedData.Count);
372372

@@ -416,7 +416,7 @@ public async Task ToOtlpResourceMetricsWithTagsAndAttributesTest()
416416
counter.Add(1, new("method", "GET"), new("status_code", "404"), new("endpoint", "/api/unknown"));
417417

418418
// Wait for all measurements
419-
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5));
419+
var collectedData = await collector.WaitForMeasurementsAsync(3, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
420420

421421
Assert.Equal(3, collectedData.Count);
422422

@@ -476,7 +476,7 @@ public async Task ToOtlpResourceMetricsWithComplexTagsTest()
476476
new("query_id", "def456"));
477477

478478
// Wait for measurements
479-
var collectedData = await collector.WaitForMeasurementsAsync(2, TimeSpan.FromSeconds(5));
479+
var collectedData = await collector.WaitForMeasurementsAsync(2, TimeSpan.FromSeconds(5)).ConfigureAwait(false);
480480

481481
Assert.Equal(2, collectedData.Count);
482482

next-gen/test/OpenTelemetry.AutoInstrumentation.Sdk.Tests/ProtobufOtlpSpanExporterAsyncTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace OpenTelemetry.AutoInstrumentation.Sdk.Tests;
1212

13-
public sealed class ProtobufOtlpSpanExporterAsyncTests : IDisposable
13+
internal sealed class ProtobufOtlpSpanExporterAsyncTests : IDisposable
1414
{
1515
static ProtobufOtlpSpanExporterAsyncTests()
1616
{

next-gen/test/OpenTelemetry.AutoInstrumentation.Sdk.Tests/Serializer/OtlpArrayTagWriterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace OpenTelemetry.AutoInstrumentation.Sdk.Tests.Serializer;
88

9-
public sealed class OtlpArrayTagWriterTests : IDisposable
9+
internal sealed class OtlpArrayTagWriterTests : IDisposable
1010
{
1111
static OtlpArrayTagWriterTests()
1212
{

next-gen/test/OpenTelemetry.AutoInstrumentation.Sdk.Tests/Serializer/ProtobufSerializerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests.Implementation.Serializer;
1010

11-
public class ProtobufSerializerTests
11+
internal class ProtobufSerializerTests
1212
{
1313
[Fact]
1414
public void GetTagValue_ReturnsCorrectValue()

0 commit comments

Comments
 (0)