Skip to content

Commit e073e66

Browse files
public b4 private
1 parent f70968d commit e073e66

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/CosmosVnextTests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,6 @@ public static IEnumerable<object[]> GetEnabledConfig()
3737

3838
public override Result ValidateIntegrationSpan(MockSpan span, string metadataSchemaVersion) => span.IsCosmosDb(metadataSchemaVersion);
3939

40-
private static VerifySettings ApplyCosmosDbScrubbers(VerifySettings settings)
41-
{
42-
// Normalize cosmosdb host between localhost, x64, and ARM64
43-
settings.AddSimpleScrubber("out.host: https://localhost:00000/", "out.host: https://cosmosdb-emulator:8081/");
44-
settings.AddSimpleScrubber("out.host: https://cosmosdb-emulator_arm64:8081/", "out.host: https://cosmosdb-emulator:8081/");
45-
settings.AddSimpleScrubber("out.host: localhost", "out.host: cosmosdb-emulator");
46-
settings.AddSimpleScrubber("out.host: cosmosdb-emulator_arm64", "out.host: cosmosdb-emulator");
47-
settings.AddSimpleScrubber("peer.service: localhost", "peer.service: cosmosdb-emulator");
48-
settings.AddSimpleScrubber("peer.service: cosmosdb-emulator_arm64", "peer.service: cosmosdb-emulator");
49-
return settings;
50-
}
51-
5240
[SkippableTheory]
5341
[MemberData(nameof(GetEnabledConfig))]
5442
[Trait("Category", "EndToEnd")]
@@ -124,5 +112,17 @@ public async Task InitializeAsync()
124112
}
125113

126114
public Task DisposeAsync() => Task.CompletedTask;
115+
116+
private static VerifySettings ApplyCosmosDbScrubbers(VerifySettings settings)
117+
{
118+
// Normalize cosmosdb host between localhost, x64, and ARM64
119+
settings.AddSimpleScrubber("out.host: https://localhost:00000/", "out.host: https://cosmosdb-emulator:8081/");
120+
settings.AddSimpleScrubber("out.host: https://cosmosdb-emulator_arm64:8081/", "out.host: https://cosmosdb-emulator:8081/");
121+
settings.AddSimpleScrubber("out.host: localhost", "out.host: cosmosdb-emulator");
122+
settings.AddSimpleScrubber("out.host: cosmosdb-emulator_arm64", "out.host: cosmosdb-emulator");
123+
settings.AddSimpleScrubber("peer.service: localhost", "peer.service: cosmosdb-emulator");
124+
settings.AddSimpleScrubber("peer.service: cosmosdb-emulator_arm64", "peer.service: cosmosdb-emulator");
125+
return settings;
126+
}
127127
}
128128
}

0 commit comments

Comments
 (0)