-
Notifications
You must be signed in to change notification settings - Fork 1k
extension smoke test to avoid regression with indy #15497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
extension smoke test to avoid regression with indy #15497
Conversation
…nstrumentation into extensions-examples-indy
| private static final String appPath = | ||
| System.getProperty("io.opentelemetry.smoketest.extension.testapp.path"); | ||
|
|
||
| private static final String IMAGE = "eclipse-temurin:21"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[for reviewer] for now we only test with a single rather recent JVM, as far as I know we don't have things that might be influenced by the JVM version that relate to indy instrumentation.
| List<String> appOutput = | ||
| Arrays.asList(target.getLogs(OutputFrame.OutputType.STDOUT).split("\n")); | ||
| assertThat(appOutput) | ||
| .describedAs("return value instrumentation") | ||
| .contains("return value has been modified"); | ||
| assertThat(appOutput) | ||
| .describedAs("argument value instrumentation") | ||
| .contains("argument has been modified"); | ||
| assertThat(appOutput) | ||
| .describedAs("virtual field support") | ||
| .contains("virtual field supported"); | ||
| assertThat(appOutput) | ||
| .describedAs("local advice variable support") | ||
| .contains("local advice variable supported"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[for reviewer] I know parsing the output can be brittle, but the application is elementary so this should be fine.
…nstrumentation into extensions-examples-indy
…nstrumentation into extensions-examples-indy
…nstrumentation into extensions-examples-indy
…nstrumentation into extensions-examples-indy
…nstrumentation into extensions-examples-indy
Part of #13031
In order to help with transition to indy instrumentation, we need proper tests for extensions:
This PR adds:
The goal of this PR is to add testing for the "current state" of existing extensions, which should be able to run without any modification.
Tested instrumentation features
How to run
io.opentelemetry.smoketest.ExtensionsSmokeTestin the IDE