Commit Graph

7016 Commits

Author SHA1 Message Date
Trask Stalnaker 195c1f733e
Remove nebula references (#4704) 2021-11-24 13:07:54 -08:00
Mateusz Rzeszutek 9a4a68d836
Add Android API-friendliness checks (#4505)
* Add Android API-friendliness checks

* Improve comments

* Remove ignores

* Handle CompletionException

* Spotless

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-24 12:59:11 -08:00
Lauri Tulmin 903926904d
Fix spring webmvc latest dep test (#4687)
* Fix spring webmvc latest dep test

* review comments

* remove latest dep version restriction
2021-11-24 09:20:50 -08:00
Nikita Salnikov-Tarnovski 821a4b870b
Drop instrumentation-api-caching module and move weak cache implementation to instrumentation-api (#4667)
* Drop instrumentation-api-caching module and move weak cache implementation to instrumentation-api

* Some test fixes

* Some cleanup

* Temporary workaround for using weak values in FutureListenerWrappers

* Spotless

* Update ClassNames and SpanNames

* Compilation and comment

* Add bounded cache and clean interface

* Polish

* Add comment

* Vendor ConcurrentLinkedHashMap in

* Let errorprone ignore vendored CLHM for now

* Keep license in java files too

* Convert Netty wrapper cache to VirtualField

* Work around lambda instrumentation failure

Ideally we would ignore instrumenting helper classes...

* Revert "Work around lambda instrumentation failure"

This reverts commit 6d63815b44.

* Revert "Convert Netty wrapper cache to VirtualField"

This reverts commit dac1522a3f.

* Handle cleared weak values

* Fix comment

* Delete instrumentation-api-caching

* Copy in weak-lock-free

* Remove caffeine remnants

* Fix checkstyle

* Rename BoundedCache to MapBackedCached

* Remove duplicate LICENSE

* Remove outdated comment

* Sync with SDK copy of weaklockfree

* Enable checkstyle:off comment

* Re-generate license report

* Move NOTICE file to package-info.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-24 09:05:12 -08:00
Anuraag Agrawal a5326344bd
Update to OTel 1.9.1 (#4700) 2021-11-24 17:47:23 +09:00
Lauri Tulmin fac60ddb3c
Enable read timeout test for HttpURLConnection (#4699) 2021-11-23 10:30:45 -08:00
Trask Stalnaker 336a73b0b3
Remove gradle scan publishing from CI (#4689)
* Remove gradle scan publishing from CI

* Remove doc too
2021-11-22 13:36:14 -08:00
Lauri Tulmin c53c8a0f01
Record exception for async servlet invocations (#4677)
* Record exception for asyn servlet invocations

* add back accidentally commented out line

* rearrange test so that it passes on both jetty and tomcat
2021-11-22 11:17:59 -08:00
Steven Aerts e01422736b
Automatic AWS library instrumentor (#4607)
Like AWS X-Ray, provide an instrumentor which automatically registers
opentelemetry instrumentation in the AWS SDK without any code changes.
Those instrumentors are separate libraries published as
opentelemetry-aws-sdk-1.11-instrumentor and opentelemetry-aws-sdk-2.2-instrumentor
2021-11-22 11:15:44 -08:00
Trask Stalnaker a9928b53fd
Don't block snapshot publishing on testLatestDeps (#4684) 2021-11-21 14:49:57 -08:00
Trask Stalnaker 2ddd01f304
Temporary fix for test latest deps (#4682) 2021-11-21 14:44:59 -08:00
Nikita Salnikov-Tarnovski 254a26745a
Start using Gradle Enterprise instance (#4663)
* Start using Gradle Enterprise instance

* Require opt-in to publish build scan from local machine

* Publish build scan only if authenticated

* Switch to GE cache
2021-11-21 18:53:55 +02:00
Trask Stalnaker 260c603784
Fix exemplars (#4678) 2021-11-20 10:42:06 -08:00
Trask Stalnaker 5b88f1bf05
Fix ratpack test latest deps (#4679) 2021-11-20 10:56:59 +02:00
Trask Stalnaker 6c98ba6b2b
Fix spring-kafka latest dep tests (#4676) 2021-11-19 13:12:18 -08:00
Trask Stalnaker 63e9cfa257
Bump version (#4675)
* Bump version

* more
2021-11-19 12:52:27 -08:00
Javier Salinas f86312e277
Support ratpack functional tests (#4605)
* Support manual initialization of OpenTelemetryServerHandler for ratpack functional tests

* Use getters to do not expose opentelemetry implementations of ExecInterceptor and Handlers

* Update instrumentation/ratpack-1.4/library/build.gradle.kts

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

* Make OpenTelemtryServerHandler public to be binded from Guice and use directly in Ratpack Chain

* Add documentation to getters methods to support Ratpack Registry bindings

* Fix checkstyle in javadoc

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-11-19 11:22:10 -08:00
Anuraag Agrawal bcae1b11d3
Remove gRPC dependency for export (#4674) 2021-11-19 11:21:34 -08:00
Trask Stalnaker e6a9a6fd47
Fix spring-integration context leak (#4673) 2021-11-19 10:22:42 -08:00
Mateusz Rzeszutek ee32c41d35
Remove LongAdder and ClassValue usages from instrumentation-api (#4671) 2021-11-18 21:29:45 -08:00
Lauri Tulmin c7a4045404
Capture exception on finatra controller span (#4669)
* Capture exception on finatra controller span

* add return type check

* store VirtualField in a static field
2021-11-18 21:23:33 -08:00
Anna Nosek 16975acc67
add spring tests (#4670) 2021-11-18 11:11:22 -08:00
Trask Stalnaker f04f5771de
Build and test extensions with Java 8 (#4665) 2021-11-18 10:52:17 -08:00
Mateusz Rzeszutek 9235719839
Implement a dedicated reactor-netty 1.0 instrumentation (#4662)
* Implement a dedicated reactor-netty 1.0 instrumentation

* Apply suggestions from code review

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

* code review comments

* code review comments

* code review comments

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-18 10:27:47 -08:00
Lauri Tulmin 31d87162f3
Print out thread dump on strict context check failure (#4664)
* Print out thread dump on strict context check failure

* suppress warning
2021-11-18 15:42:54 +02:00
Lauri Tulmin db0d0c350a
Change supported websphere version from 8.5.x to 8.5.5.x (#4668) 2021-11-18 15:42:15 +02:00
Lauri Tulmin 628df63dad
Remove a few unused methods (#4661) 2021-11-17 09:40:43 -08:00
Nikita Salnikov-Tarnovski ab6a087f47
Force Vaadin to use ipv4 (#4660)
* Force Vaadin to use ipv4

* Spotless
2021-11-17 09:37:54 -08:00
Nikita Salnikov-Tarnovski 69336dac3a
Remove usage of FixedHostPortGenericContainer (#4651)
* Remove usage of FixedHostPortGenericContainer
2021-11-17 18:23:56 +02:00
Lauri Tulmin 3458afb8a4
Suppress muzzle warning from spring integration instrumentation (#4656) 2021-11-17 17:31:40 +02:00
Mateusz Rzeszutek 59b3199839
Test SSL handshake spans in reactor-netty (#4649) 2021-11-17 16:12:30 +01:00
Lauri Tulmin c57d4e00b6
Correct formatting of HttpClientTest comments (#4654)
* Correct formatting of HttpClientTest comments

* add <pre> tags
2021-11-17 12:03:51 +02:00
jason plumb 9e2839cb5a
fix instrumentation name (#4657) 2021-11-17 11:21:25 +02:00
Anuraag Agrawal 1d4fd9ef8b
Update to Gradle 7.3 (#4640)
* Update to Gradle 7.3

* Copy in protobuf-conventions from SDK

* Scala
2021-11-16 19:37:59 +09:00
Mateusz Rzeszutek 7caa4022d4
Trace SSL handshakes in netty 4.0 (#4635) 2021-11-16 08:35:54 +01:00
Mateusz Rzeszutek cd119f491d
Trace DNS resolution in reactor-netty (#4627)
* Trace DNS resolution in reactor-netty

* Code review comments

* removed a little too much

* implementation -> api

* revert and make muzzle happy
2021-11-16 08:34:27 +01:00
Anuraag Agrawal 39964b39aa
Copy in protobuf conventions from SDK repo. (#4643)
* Copy in protobuf conventions from SDK repo.

* fix

* Spot
2021-11-16 13:42:06 +09:00
Lauri Tulmin 35a1aa7da2
Fix memory leak when using ktor-client-java (#4637) 2021-11-15 16:09:02 -08:00
Anuraag Agrawal 6063a16f54
Update to OTel 1.9 (#4634)
* Update to OTel 1.9

* Check null
2021-11-15 17:56:53 +09:00
Nikita Salnikov-Tarnovski 7c038f5c71
Fix running `generateLicenseReport` task (#4614)
* Fix running `generateLicenseReport` task

* Spotless
2021-11-12 22:39:37 +02:00
Mateusz Rzeszutek 3a229c8436
Fix muzzle problems happening when netty without SSL is used (#4631) 2021-11-12 09:54:52 +01:00
Lauri Tulmin d53c276b96
Ensure that netty 4.0 instrumentation is not applied to 4.1 (#4626)
* Enusre that netty 4.0 instrumentation is not applied to 4.1

* formatting

* cross test netty instrumentation
2021-11-11 08:38:56 -08:00
Lauri Tulmin 90e2a8c325
Hopefully fix flaky ratpack test (#4632) 2021-11-11 08:35:36 -08:00
jason plumb 5cbd09e4da
fix incorrect delegate method (#4630)
* fix incorrect delegate method

* add version test
2021-11-11 07:21:04 +01:00
Mateusz Rzeszutek 4719e4cc79
Trace SSL handshakes in netty 4.1 (#4604)
* Trace SSL handshakes in netty 4.1

* Update testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/http/HttpClientTestServer.java

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

* remove unneeded bit of code

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-10 13:43:59 -08:00
Lauri Tulmin 4e39f1ad5a
Add smoke test for websphere, update smoke test server versions (#4613)
* Add smoke test for websphere, update smoke test server versions

* update workflows

* fix workflow

* Apply suggestions from code review

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

* revert accidental change

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-10 13:43:30 -08:00
Lauri Tulmin 625febaeb4
Sql sanitizer: sanitize double quoted strings only in couchbase queries (#4615)
* Sql sanitizer: sanitize double quotes strings only in couchbase queries

* remove unused method

* use AutoValue
2021-11-10 13:43:03 -08:00
Lauri Tulmin 16728e2445
Add a ClassAndMethod class to Instrumentation API (#4619)
* Add a ClassAndMethod class to Instrumentation API

* remove sentence

* Update docs/contributing/writing-instrumentation.md

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

* address review comment

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-10 13:33:11 -08:00
Lauri Tulmin 4c39b212da
Fix rabbitmq latest dep test (#4623) 2021-11-10 12:40:33 -08:00
Anna Nosek 8b7c097912
Restlet 2.0 instrumentation (#4535)
* add restlet 2.0 instrumentation

* add restlet 2.0 instrumentation

* revies: testLibrary, create RestletInstrumenterFactory
2021-11-09 11:52:04 -08:00