-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from brunobat/fix-docs
Fix Docs
- Loading branch information
Showing
9 changed files
with
173 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ava/io/quarkiverse/opentelemetry/exporter/azure/deployment/AzureExporterDisabledTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.quarkiverse.opentelemetry.exporter.azure.deployment; | ||
|
||
import jakarta.enterprise.inject.Instance; | ||
import jakarta.inject.Inject; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.opentelemetry.api.OpenTelemetry; | ||
import io.quarkiverse.opentelemetry.exporter.azure.runtime.AzureEndpointSampler; | ||
import io.quarkus.test.QuarkusUnitTest; | ||
|
||
public class AzureExporterDisabledTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.overrideConfigKey("quarkus.otel.azure.enabled", "false") | ||
.overrideConfigKey("applicationinsights.connection.string", | ||
"InstrumentationKey=bla;IngestionEndpoint=http://127.0.0.1:53602/export"); | ||
|
||
@Inject | ||
OpenTelemetry openTelemetry; | ||
|
||
// just some class that will be available if the Azure exporter is enabled. | ||
@Inject | ||
Instance<AzureEndpointSampler> azureEndpointSamplers; | ||
|
||
@Test | ||
void testOpenTelemetryButNoBatchSpanProcessor() { | ||
Assertions.assertNotNull(openTelemetry); | ||
Assertions.assertFalse(azureEndpointSamplers.isResolvable()); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...java/io/quarkiverse/opentelemetry/exporter/azure/deployment/AzureExporterEnabledTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.quarkiverse.opentelemetry.exporter.azure.deployment; | ||
|
||
import jakarta.enterprise.inject.Instance; | ||
import jakarta.inject.Inject; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.opentelemetry.api.OpenTelemetry; | ||
import io.quarkiverse.opentelemetry.exporter.azure.runtime.AzureEndpointSampler; | ||
import io.quarkus.test.QuarkusUnitTest; | ||
|
||
public class AzureExporterEnabledTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.overrideConfigKey("quarkus.otel.azure.enabled", "true") | ||
.overrideConfigKey("applicationinsights.connection.string", | ||
"InstrumentationKey=bla;IngestionEndpoint=http://127.0.0.1:53602/export"); | ||
|
||
@Inject | ||
OpenTelemetry openTelemetry; | ||
|
||
// just some class that will be available if the Azure exporter is enabled. | ||
@Inject | ||
Instance<AzureEndpointSampler> azureEndpointSamplers; | ||
|
||
@Test | ||
void testOpenTelemetryButNoBatchSpanProcessor() { | ||
Assertions.assertNotNull(openTelemetry); | ||
Assertions.assertTrue(azureEndpointSamplers.isResolvable()); | ||
Assertions.assertEquals(1, azureEndpointSamplers.stream().count()); | ||
Assertions.assertEquals(AzureEndpointSampler.class.getName(), azureEndpointSamplers.get().getClass().getName()); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
.../quarkiverse/opentelemetry/exporter/azure/deployment/AzureExporterLegacyDisabledTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.quarkiverse.opentelemetry.exporter.azure.deployment; | ||
|
||
import jakarta.enterprise.inject.Instance; | ||
import jakarta.inject.Inject; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.opentelemetry.api.OpenTelemetry; | ||
import io.quarkiverse.opentelemetry.exporter.azure.runtime.AzureEndpointSampler; | ||
import io.quarkus.test.QuarkusUnitTest; | ||
|
||
public class AzureExporterLegacyDisabledTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withEmptyApplication() | ||
.overrideConfigKey("quarkus.opentelemetry.tracer.exporter.azure.enabled", "false") | ||
.overrideConfigKey("applicationinsights.connection.string", | ||
"InstrumentationKey=bla;IngestionEndpoint=http://127.0.0.1:53602/export"); | ||
|
||
@Inject | ||
OpenTelemetry openTelemetry; | ||
|
||
// just some class that will be available if the Azure exporter is enabled. | ||
@Inject | ||
Instance<AzureEndpointSampler> azureEndpointSamplers; | ||
|
||
@Test | ||
void testOpenTelemetryButNoBatchSpanProcessor() { | ||
Assertions.assertNotNull(openTelemetry); | ||
Assertions.assertFalse(azureEndpointSamplers.isResolvable()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...main/java/io/quarkiverse/opentelemetry/exporter/azure/runtime/AzureMonitorCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters