Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Jan 11, 2024
1 parent 1bb3ec0 commit 113a363
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ abstract class NonDaemonThreadsTest {
void spawnAnotherJavaProcess() throws Exception {
List<Envelope> rdList = testing.mockedIngestion.waitForItems("RequestData", 1);
List<Envelope> rddList = testing.mockedIngestion.waitForItems("RemoteDependencyData", 1);
List<Envelope> mdList = testing.mockedIngestion.waitForItems("MessageData", 1);
List<Envelope> mdList =
testing.mockedIngestion.waitForItems(
"MessageData",
envelope -> {
MessageData md = (MessageData) ((Data<?>) envelope.getData()).getBaseData();
return md.getMessage().equals("done");
},
1);

Envelope rdEnvelope = rdList.get(0);
Envelope rddEnvelope = rddList.get(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
abstract class OtlpTest {

@RegisterExtension
static final SmokeTestExtension testing =
SmokeTestExtension.builder().useOtlpEndpoint().setSelfDiagnosticsLevel("TRACE").build();
static final SmokeTestExtension testing = SmokeTestExtension.builder().useOtlpEndpoint().build();

@Test
@TargetUri("/ping")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ private void startTestApplicationContainer() throws Exception {
+ FAKE_BREEZE_INGESTION_ENDPOINT);
}
if (useOtlpEndpoint) {
javaToolOptions.add("-Dotel.metrics.exporter=otlp");
// TODO (trask) don't use azure_monitor exporter for smoke test health check
javaToolOptions.add("-Dotel.metrics.exporter=otlp,azure_monitor");
javaToolOptions.add("-Dotel.exporter.otlp.metrics.endpoint=" + FAKE_OTLP_INGESTION_ENDPOINT);
javaToolOptions.add("-Dotel.exporter.otlp.protocol=http/protobuf");
}
Expand Down

0 comments on commit 113a363

Please sign in to comment.