Commit Graph

182 Commits

Author SHA1 Message Date
Trask Stalnaker 278cae4667
Don't use collector dev image (#4171)
* Update collector config

* Revert "Update collector config"

This reverts commit 4a76a944af.

* Don't use -dev collector image
2021-09-20 20:47:51 -07:00
Trask Stalnaker 28c68b91a0
Update "other" smoke tests to Java 16 (#4144)
* Update "other" smoke tests to Java 16

* Bump extraTag

* Play doesn't support Java 16 (or 17) yet

* Fix formatting
2021-09-17 11:50:21 -07:00
Anuraag Agrawal 971ca8b19c
Update to OTel 1.6 (#4120)
* Update to OTel 1.6

* Example build

* More example

* More example
2021-09-14 20:12:18 +09:00
Matthew Ho 6967484a97
Update groovy import order to match default IntelliJ (#1708) (#4047)
* Update groovy import order to match default IntelliJ (#1708)

* organized imports for .groovy files to follow default IntelliJ import settings

* updated intellij-setup.md

* Spotless

* drift

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-09-11 11:53:08 -07:00
Trask Stalnaker c13eb7932e
Update collector port (#4071) 2021-09-08 18:18:05 -07:00
Trask Stalnaker 99de444ffc
Remove zipkin from otel collector smoke test config (#3953)
* Remove zipkin from otel collector smoke test config

* Smoke tests too
2021-08-25 12:17:23 -07:00
Trask Stalnaker fa71cf9c8a
Fix sporadically failing smoke test (#3895)
* Fix failing smoke test

* Revert "Fix failing smoke test"

This reverts commit 0356ae308b.

* Apply Xmx
2021-08-23 11:27:16 +09:00
Mateusz Rzeszutek 6a3037df73
Support extraResources in WindowsTestContainerManager (#3868)
* Support extraResources in WindowsTestContainerManager

* Fix span name for liberty servlet test

* Use different server.xml path for linux and windows
2021-08-19 18:38:17 +02:00
Anna Nosek 0fd8d2cc47
Add noop sdk configuration option (#3539)
* introduce noop

* test configuration

* rename to noop api, move System.setProperty() calls

* remove unnecessary semicolon

* codenarc fix
2021-07-15 11:33:00 +03:00
Trask Stalnaker 0d27368866
Run smoke tests with Java 16 (#3457)
* Run smoke tests with Java 16

* Add Wildfly + JDK 16 test

* Bump extra tag
2021-07-05 11:39:47 +03:00
Anuraag Agrawal 44f2354d41
Allow disabling thread details and disable for most tests. (#3464) 2021-07-01 08:31:27 -07:00
Anuraag Agrawal 7ad9e7a50b
Move shaded testing dependencies to internal package. (#3305) 2021-06-15 13:10:19 +03:00
Trask Stalnaker 62f1f49bcd
Intellij cleanup (Java and Groovy) (#3285)
* Intellij cleanup

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/code/CodeAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/DbAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/SqlAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/messaging/MessagingAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation/spring/spring-web-3.1/library/src/test/java/io/opentelemetry/instrumentation/spring/httpclients/RestTemplateInterceptorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Use glassfish version that supports lambdas

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-06-14 10:23:01 -07:00
Anuraag Agrawal c92fbcf624
Update to OTel SDK 1.3.0 (#3253) 2021-06-12 09:56:23 -07:00
Anuraag Agrawal 84cc044ddf
Migrate remaining test client calls to Armeria and remove testing-com… (#3250) 2021-06-11 11:51:23 -07:00
Anuraag Agrawal 2436499a09
Update to Errorprone 2.7 (#3181)
* Update to errorprone 2.7

* ToString

* Finish
2021-06-04 10:40:55 +09:00
Anuraag Agrawal c3dedbb64e
Enable all errorprone checks (#3155)
* Enable all errorprone checks

* Fixes

* Finish

* Finish

* Add flag to disable error prone
2021-06-01 17:41:08 +09:00
Anuraag Agrawal ed88cca533
Migrate from spotbugs to errorprone (#3122)
* Migrate from spotbugs to errorprone

* Fix hashtable

* try-with-resources

* Fix from merge

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-28 14:23:40 -07:00
Lauri Tulmin 6706dbfe53
Change smoketests to use testcontainers httpclient5 transport (#3112)
* Change smoketest to use testcontainers httpclient5 transport

* Update smoke-tests/src/test/resources/testcontainers.properties

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-27 12:40:52 -07:00
Trask Stalnaker 10db083e77
Update to OTel API/SDK 1.2.0 (#2945)
* Update to OTel API/SDK 1.2.0

* TCP.IP -> tcp_ip

* Fix smoke tests
2021-05-10 10:14:07 -07:00
Lauri Tulmin 357140c081
Server span naming for servlet filters (#2887)
* Server span naming for servlet filters

* wildfly default servlet has empty mappings

* jetty11 requires java11

* try a differnt way to disable jetty11 tests on java8

* Update instrumentation/servlet/servlet-5.0/javaagent/src/test/groovy/TomcatServlet5FilterMappingTest.groovy

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* review fix

* rework to use InstrumentationContext

* remove debugging code

* move MappingResolver to avoid ClassCastException on wildfly

* Update instrumentation/servlet/servlet-3.0/javaagent/src/test/groovy/TomcatServlet3FilterMappingTest.groovy

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* review fixes

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-05-06 13:25:17 +03:00
Lauri Tulmin beae3276df
Fix flaky smoke tests (#2849)
* Enable debug logging for smoke tests

* trigger rerunning of smoke tests

* trigger rerunning of smoke tests

* pass agent in JVM_ARGS instead of JAVA_TOOL_OPTIONS on glassfish

* spotless

* remvove debugging code

* update windows image versions

* Ensure java.lang.reflect.Proxy is loaded before bytebuddy transformer is set up

* update windows image version

* Update javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentInstaller.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-04-29 12:47:42 +02:00
Trask Stalnaker e54eb2ca03
Add doc how to run smoke tests (#2840) 2021-04-22 11:37:18 -07:00
Ago Allikmaa 314794eaae
Tomcat 10 and Jetty 11 smoke tests (#2723) 2021-04-06 08:23:48 +03:00
Lauri Tulmin 255c7eeb28
Update windows fake backend version (#2695) 2021-04-01 16:12:43 -07:00
Lauri Tulmin e0af64ccdf
Start smoke test backend and collector once (#2653)
* Start smoke test backend and collector once

* code style fix

* review fixes

* add Override annotation

* move methods from interface to abstract class
2021-03-31 09:23:07 +03:00
Nikita Salnikov-Tarnovski 43f4ab4734
Run smoke tests on Windows as well (#2617)
* Run smoke tests on Windows as well

* Allow long paths on windows

* Allow long paths on windows

* Polish

* Add check that spans were generated by expected OS

* Fix method name

* Use proper extra tag

* Use long paths on CI build on Windows

* Don't run linux test images on Windows

* Don't run linux test images on Windows

* Typo

* More debug

* Don't use testcontainers on Windows

* Polish

* Update backend

* Support for extra resources on linux

* Trying Linux backend on Windows

* Pull backend images if not found

* We do use windows images for backend as well

* Use correct windows images

* Less logs

* Polish

* Better logs

* Polish

* Polish
2021-03-26 15:11:59 +02:00
Felix Barnsteiner 56c52bc315
Add runtime.jvm.gc.collection.count metric (#2616)
* Add runtime.jvm.gc.collection.count metric

* Fix format violation

* Rename gc.collection to gc.collection.time

* Another rename 😅
2021-03-23 14:11:23 +02:00
Mateusz Rzeszutek 69dcfb77bf
Resolve a TODO in SmokeTest (#2604) 2021-03-19 14:30:11 +02:00
Mateusz Rzeszutek 33042ec842
Verify in smoke tests that runtime metrics are exported (#2603) 2021-03-19 12:31:59 +01:00
Lauri Tulmin 29790d8472
Low cardinality name for servlet span (#2417) 2021-03-04 12:39:37 -08:00
Anuraag Agrawal 0f32ed42a4
Instrument log4j to include bugfix of contextdataprovider mechanism. (#2407)
* Instrument log4j to include bugfix of contextdataprovider mechanism.

* Add regression test

* Update smoke test

* Update instrumentation/log4j/log4j-2.13.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/log4j/v2_13_2/BugFixingInstrumentation.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-02-26 09:20:55 +09:00
Ago Allikmaa 0b0a0aace2
Add OpenJ9 image smoke test configurations (#2386) 2021-02-23 23:34:02 +02:00
Lauri Tulmin c8ca7e8d07
Make http.flavor spec compliant (#2370) 2021-02-22 13:12:05 -08:00
Anuraag Agrawal 000df967ce
Update to SDK 0.17.0 (#2338)
* Update to SDK 0.17.0

* Finish

* ottrace
2021-02-19 15:51:55 +09:00
Lauri Tulmin 80f389c778
Instrument all jetty handlers (#2320) 2021-02-18 11:51:48 +02:00
Mateusz Rzeszutek f127a972dc
Add 'trace_flags' to logging MDC (#2312)
* Add 'trace_flags' to logging MDC

* Remove 'sampled' flag
* Rename MDC keys to the current logging spec convention: trace_id instead of traceId

* Fix smoke tests
2021-02-18 16:47:26 +09:00
Lauri Tulmin 5dc2cd420a
Start smoke test backend and collector only once (#2249) 2021-02-11 22:13:24 -08:00
Lauri Tulmin 845f758f8e
Close response to avoid warning about leaked response (#2240) 2021-02-10 15:01:54 +02:00
Anuraag Agrawal fc410706d0
Update to Sdk 0.16.0 (#2221)
* Update to 0.16.0-SNAPSHOT

* Finish

* Finish

* Update to 0.16.0

* Finish
2021-02-09 18:00:54 +09:00
Lauri Tulmin c65fb3ede4
Add tomee to supported servers (#2180)
* Add tomee to supported servers

* move tomee after tomcat

* correct tomee image tag
2021-02-04 14:44:21 +09:00
Anuraag Agrawal 1ebb58a596
Update to SDK 0.15.0 (#2137)
* Update to SDK 0.15.0

* Fix lightstep test
2021-01-29 21:30:22 +09:00
Anuraag Agrawal 78ef219f74
Remove queued_retry from repo (#2095) 2021-01-22 14:06:07 +09:00
Anuraag Agrawal c6cc263c6e
Use SDK Autoconfigure module (#2077)
* Use sdk autoconfigure

* Finish

* Finish

* Group exporters

* Update smoke-tests/src/test/groovy/io/opentelemetry/smoketest/SpringBootWithSamplingSmokeTest.groovy

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-20 14:31:49 +09:00
Anuraag Agrawal 97b8712e3b
Remove jaeger-thrift from agent distribution (#2073)
* Remove jaeger-thrift from agent distribution

* Update test
2021-01-19 16:08:01 +09:00
Anuraag Agrawal afdde0355b
Update to OTel 0.14.1 (#2059)
* Update SDK dependency to 0.14.1

* WIP

* Finish

* Cleanup
2021-01-18 13:02:04 +09:00
Lauri Tulmin 11ad12289b
Jetty server span handling (#2029) 2021-01-14 09:31:57 -08:00
Mateusz Rzeszutek 822e18675d
Make the agent log its version anymore when starting (#2026)
* Make the agent not log its version anymore when starting

* Version logger smoke test

* Version logger smoke test
2021-01-14 14:06:36 +09:00
Lauri Tulmin c7e0a12145
Close request to avoid warnings in stderr (#2030) 2021-01-12 11:02:49 -08:00
Lauri Tulmin 28c210ed39
Start each server version once for smoke tests (#1967)
* start each server version once for smoke tests

* Update smoke-tests/src/test/java/io/opentelemetry/smoketest/AppServerTestRunner.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update smoke-tests/src/test/java/io/opentelemetry/smoketest/AppServerTestRunner.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update smoke-tests/src/test/java/io/opentelemetry/smoketest/AppServerTestRunner.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* review fixes

* review fix

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-06 12:10:38 +09:00
Lauri Tulmin 79433966fb
Liberty server span handling (#1929)
* Liberty server span handling

* review fixes

* review fixes

* add doc about using compile stubs

* Update instrumentation/liberty/liberty/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/LibertyInstrumentationModule.java

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update instrumentation/liberty/liberty/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/ThreadLocalContext.java

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* add links to advice classes

* add commnet, remove unneeded dependency

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-12-22 15:00:58 +02:00
Nikita Salnikov-Tarnovski 0888711574
Add support for Undertow server runtime (#1917)
* Add support for Undertow server runtime

* Polish

* Damn be classloaders

* Fix correct span name

* Polish
2020-12-22 14:13:50 +02:00
Anuraag Agrawal f0a6c6d772
Update SDK dependency to 0.13.0-SNAPSHOT. (#1924)
* Update SDK dependency to 0.13.0-SNAPSHOT.

* Update smoke tests

* Fix formatting

* Spot
2020-12-17 18:20:59 +09:00
Vladimir Šor 135ba344cb
Tomcat server handlers (#1902)
* Tomcat server handler with passing integration and smoke tests.

* Update server span name from the servlet integration instead of trying to mimic it from the server handler.

* Cleanup and more javadocs.

* Use Java8BytecodeBridge in advice code.

* Use Java8BytecodeBridge in advice code.

* Use earliest version for compilation and muzzling.

* Use consistent instrumentation name.

* Record throwables only if the context is managed by something else.

* Getting scope handling right. Moved server span renaming logic via AppServerBridge to the ServletHttpServerTracer.

* codenarc

* more PR comments addressed

* Pass Method to startServerSpan
2020-12-16 16:59:54 +02:00
jason plumb 4c8b8a77fb
Add exporter factory for JaegerThriftSpanExporter (#1868)
* add exporter factory for JaegerThriftSpanExporter

* add smoke test
2020-12-14 13:02:51 -08:00
Nikita Salnikov-Tarnovski 6281583770
Fix smoke tests to use new images (#1845) 2020-12-07 16:21:22 +02:00
Anuraag Agrawal 3b8827b8ab
Update to SDK 0.12.0 (#1830)
* Update to SDK 0.12.0

* Update error message to the current world.

* Bump referenced smoke test versions

* fixes

* dependency hell

* Suppress unused call

* Bump missed smoke tests

* Bump image, bump smoke tests gRPC version
2020-12-07 17:16:47 +09:00
Nikita Salnikov-Tarnovski ef02da9090
Bootstrap prefix fix (#1833)
* Proper classloading test for WildFly and GlassFish

* Fix using BootstrapPackagePrefixesHolder

* Polish

* Format
2020-12-05 10:41:00 +02:00
Nikita Salnikov-Tarnovski 71f1a79100
Introduce test matrix (#1821)
* Introduce test matrix and proper WildFly test

* Restore test to old version until matrix is merged

* Add workflow to publish test matrix

* Satisfy checkstyle

* Polish

* Use docker build args instead of replacing tokens
2020-12-03 12:34:45 +02:00
Nikita Salnikov-Tarnovski 41fc96d1a6
Test span context propagation (#1808) 2020-12-02 13:56:44 +09:00
Mateusz Rzeszutek 3c1a09109f
Use sdk-extensions/resources in the agent (#1809)
* Use sdk-extensions/resources in the agent

* Add smoke test, fix dropwizard test
2020-12-01 16:03:51 -08:00
Anuraag Agrawal 3475cbd77d
Migrate test docker images to GHCR. (#1790) 2020-11-30 09:15:42 +02:00
Trask Stalnaker 41bd489a77
Format groovy files (#1793) 2020-11-28 21:22:14 -08:00
Nikita Salnikov-Tarnovski 2222905aa2
Preparation for e2e propagators test (#1781) 2020-11-27 21:57:21 +02:00
Nikita Salnikov-Tarnovski 3c195f3273
Limit latest test version for Apache HttpClient 2.0 (#1676) 2020-11-18 14:57:58 +02:00
Nikita Salnikov-Tarnovski 7b64184701
Smoke tests using Jaeger and Zipkin exporters (#1543) 2020-11-02 20:50:14 -08:00
Anuraag Agrawal c6eee70660
Update to latest snapshot. (#1524) 2020-10-29 18:54:09 -07:00
Anuraag Agrawal f6ad05b8e3
Update to latest SDK snapshot (#1384)
* Update to latest SDK snapshot

* Use published snapshot

* Fixes

* Cleans

* spotless

* Most

* Clean

* Merge

* Temporarily remove context interop

* WIP

* Prepare for intercepting propagated span

* Bump SDK

* IDE updates

* Lots

* compileJava

* Done?

* bar

* Spot

* drugs

* Groovy--

* green for me

* Spot

* Remove grpc import

* Scrub
2020-10-25 15:14:32 +09:00
Anuraag Agrawal a6e0e27ad4
Remove usage of Contexts from grpc instrumentation. (#1426)
* Fix grpc instrumentation cannot be applied due to muzzle error and add smoke test.

* Add workflow for building smoke test image

* Revert debug logging

* Java versions
2020-10-21 09:58:45 +09:00
Trask Stalnaker bc507ced12
Fix play span name (#1416) 2020-10-19 17:23:30 +03:00
Trask Stalnaker 1b51d4a6b1
Rename packages (#1367) 2020-10-11 13:54:35 -07:00
Nikita Salnikov-Tarnovski 79ab34b6ef
Single GHA job to mark PR OK/NOK (#1333)
* Single GHA job to mark PR OK/NOK

* Debug

* Debug

* Extract smoke test as a separate job

* Debug

* Debug

* Debug

* Debug

* Debug

* Debug

* Debug

* Fix for greedy testcontainers
2020-10-07 15:03:34 +03:00
Ioannis Mavroukakis 9523f9ffe6
fix and/or ignore spotbugs errors (#1325) 2020-10-06 19:39:17 -07:00
Anuraag Agrawal dadaac9a8c
Use 2-line license header to match SDK repo (#1321)
* Use 2-line license header to match SDK repo

* Apply change
2020-10-05 14:29:56 +09:00
Trask Stalnaker 8954f222c0
Update to the latest opentelemetry-java 0.9.0-SNAPSHOT (#1266) 2020-09-26 20:44:28 -07:00
Pavol Loffay 91b177165c
Bump Java from 14 to 15 in CI (#1252)
* Bump Java from 14 to 15 in CI

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Review comments

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* adjust comment

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Bump jacoco to 0.8.6

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* maxJavaVersionForTests

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-24 15:27:33 +03:00
Mateusz Rzeszutek f76fb756be
Add smoke test for Logback MDC instrumentation (#1227) 2020-09-22 10:37:36 +03:00
Anuraag Agrawal 83a5714a97
Use a fake OTLP backend for storing smoke tests traces instead of fil… (#1136)
* Use a fake OTLP backend for storing smoke tests traces instead of file exporter.

* Newlines

* Newlines

* Bins
2020-08-31 15:17:51 +09:00
Nikita Salnikov-Tarnovski e20cba57c2
Telemetry auto version (#1112)
* Provide telemetry.auto.version

* Report instrumentation library version

* Rename class

* Format
2020-08-27 23:16:17 +03:00
Nikita Salnikov-Tarnovski 89577a168a
Switch to Bintray Docker repo (#959)
* Debugging jib failures

* Debugging jib failures

* Switching to Bintray Docker

* Switching to Bintray Docker

* Switching to Bintray Docker
2020-08-13 10:16:08 +03:00
Nikita Salnikov-Tarnovski 51e06100ca
Run smoke tests on different java versions (#948)
* Run smoke tests on different java versions

* Cleaner Docker images names
2020-08-12 20:32:23 +03:00
Nikita Salnikov-Tarnovski a222676a3e
Improved smoke tests (#934)
* Preping smoke tests

* Improved smoke tests

* Make it work in Linux

* Add workflow to run tests on PR

* Build Smoke tests

* Fix PR workflow trigger

* Fix smoke test apps trigger

* Disable smoke tests in CircleCI and let them run in Github Actions only

* Fix smoke test apps docker image names

* Polish
2020-08-12 12:34:14 +03:00