-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't fail spring application startup if sdk is disabled
- Loading branch information
1 parent
c885982
commit 9919997
Showing
3 changed files
with
30 additions
and
0 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
24 changes: 24 additions & 0 deletions
24
...-starter/src/test/java/io/opentelemetry/smoketest/OtelSpringStarterDisabledSmokeTest.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,24 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.smoketest; | ||
|
||
import io.opentelemetry.spring.smoketest.OtelSpringStarterSmokeTestApplication; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
@SpringBootTest( | ||
classes = { | ||
OtelSpringStarterSmokeTestApplication.class, | ||
OtelSpringStarterSmokeTest.TestConfiguration.class | ||
}, | ||
properties = {"otel.sdk.disabled=true"}) | ||
class OtelSpringStarterDisabledSmokeTest { | ||
|
||
@Test | ||
void shouldStartApplication() { | ||
// make sure we can still start the application with the disabled property | ||
} | ||
} |