Commit Graph

6944 Commits

Author SHA1 Message Date
Mateusz Rzeszutek 05a391459b
Stabilize HTTP headers capturing configuration property names (#4459)
* Stabilize HTTP headers capturing configuration property names

* code review comments
2021-10-21 21:56:20 -07:00
Trask Stalnaker e9022da102
Remove unshaded javax.annotation classes from bootstrap class loader (#4454)
* Fix shading

* Revert "Fix shading"

This reverts commit 2aad3cfe21.

* Make javax.annotations compileOnly

* Replace checker GuardedBy with otel api internal GuardedBy

* Fix build

* Fix errorprone failures

* Remove extra newline

* Move internal GuardedBy to instrumentation-api

* empty commit

* empty commit
2021-10-21 14:47:50 -07:00
Trask Stalnaker 1b37df7afd
Move common testing modules to match convention a bit better(?) (#4451)
* Rename jsf modules to match convention

* Couchbase too

* Mongo too

* Play WS too

* Log4j too

* Elasticsearch too

* JAX-RS too

* JAX-WS sort of

* Spotless

* empty commit
2021-10-21 12:41:28 -07:00
Osher Vaknin 7998c842db
Netty server instrumentation now captures http.scheme (#4446)
* Netty server instrumentation now captures http.scheme

* Fixed Spring Netty related tests

* Fixed Spring Netty related tests
2021-10-21 10:39:00 -07:00
Mateusz Rzeszutek c490b2903b
Extract net attributes both on start and on end in netty HTTP client (#4420)
* Extract net attributes both on start and on end in netty HTTP client

* storing remote address in HttpRequestAndChannel

* Update instrumentation/netty/netty-4-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/common/client/NettyNetClientAttributesExtractor.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-21 10:38:33 -07:00
Trask Stalnaker b1d638fc35
Move jaxrs bootstrap module (#4448) 2021-10-20 15:02:06 -07:00
jason plumb a50c13382f
Don't report 400 level as error for SERVER spans (#4403)
* don't report 400 level as error for server spans

* fix HttpServerTest base class

* fix JspInstrumentationForward test

* split HttpStatusConverter into client and server implementations, and create two HttpSpanStatusExtractor.create methods, one for server and one for client.

* rebase

* fix test

* spotless

* fix test

* remove unused

* use strongly typed attributes converters and rename to overloaded create()

* fix tests

* remove redundant assert

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-20 13:39:35 -07:00
Trask Stalnaker 5d7c0dd95b
Fix nightly no cache build (#4449) 2021-10-20 12:08:18 -07:00
Trask Stalnaker 35dd350625
Capture metric dimensions from end attributes also (#4430)
* Capture metric dimensions from end attributes also

* Fix test

* Update tests
2021-10-20 09:29:03 -07:00
Trask Stalnaker 923797d82c
Publish javaagent bootstrap modules (#4438) 2021-10-20 09:28:45 -07:00
Nikita Salnikov-Tarnovski 62cc2a77db
Use new smoke test images (#4439) 2021-10-20 13:25:36 +03:00
Nikita Salnikov-Tarnovski 6dd6592678
Unify images configuration for smoke test matrix build (#4437) 2021-10-20 09:56:04 +03:00
Nikita Salnikov-Tarnovski 2c7ff5e367
Base TomEE smoke test images on jdk ones (#4425) 2021-10-20 08:48:51 +03:00
Trask Stalnaker 7ae89fa3b9
Post 1.6.0 release updates (#4108) 2021-10-19 22:31:08 -07:00
Trask Stalnaker 9c19ecdda3
Fix nightly build (#4434) 2021-10-19 22:29:33 -07:00
Trask Stalnaker f4194e9809
Fix examples build (#4431) 2021-10-19 16:49:44 -07:00
jason plumb e1b4054e52
Update to latest version (from 1.0.0) (#4361)
Not sure how frequently we want to update the docs like this, but it seemed that quite some time had passed.
2021-10-19 15:24:11 -07:00
Lauri Tulmin 17a85bbc22
Use byte-buddy-dep instead of byte-buddy (#4400)
* Use byte-buddy-dep instead of byte-buddy

* print stacktrace on examples failure

* try to fix gradle plugins

* try to fix extension build

* try to fix extension build

* try to fix extension build

* try to fix extension build

* try removing mavenLocal

* add mavenLocal plugin repository

* publish gradle-plugins to mavenLocal for examples ci build

* Fix bytebuddy exclusion
2021-10-19 13:46:48 -07:00
Mateusz Rzeszutek be55b2aac6
Update muzzle and InstrumentationModule docs after latest changes (#4412)
* Update muzzle and InstrumentationModule docs after latest changes

* additional comment
2021-10-19 13:44:15 -07:00
Mateusz Rzeszutek 2e97a4d3d5
Netty: preserve caught exception in the context instead of calling end() (#4413) 2021-10-19 13:40:11 -07:00
Mateusz Rzeszutek 13f28dca2a
Enable read timeout tests in OkHTTP instrumentation (#4422) 2021-10-19 13:38:36 -07:00
Nikita Salnikov-Tarnovski 538f2a7cd7
Build servlet 5 example app for java8 (#4423) 2021-10-19 13:38:20 -07:00
Nikita Salnikov-Tarnovski 6958896cb4
Base Jetty smoke test images on jdk ones (#4424)
* Base Jetty smoke test images on jdk ones

* Guessing on PowerShell syntax
2021-10-19 13:38:08 -07:00
Nikita Salnikov-Tarnovski dee28c367c
Base Payara smoke test images on jdk ones (#4426) 2021-10-19 13:37:38 -07:00
Trask Stalnaker dce8c91ee5
Fix release build yaml (#4429) 2021-10-19 12:44:37 -07:00
Trask Stalnaker 236061b8e9
Bump gradle-plugins version in examples (#4427) 2021-10-19 11:44:12 -07:00
Trask Stalnaker 54651f250e
Update change log for 1.7.0 (#4416)
* Update change log for 1.7.0

* Update CHANGELOG.md

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-10-19 10:57:13 -07:00
Trask Stalnaker 8739cdf73e
Capture response headers for HttpUrlConnection (#4417) 2021-10-19 10:18:19 -07:00
Martin 62c90512cd
switch annotation `org.checkerframework.checker.nullness.qual.Nullable` to `javax.annotation.Nullable` (#4418) 2021-10-19 10:59:18 +03:00
Nikita Salnikov-Tarnovski 25910d99d3
Base tomcat smoke test images on jdk ones (#4414) 2021-10-19 10:54:34 +03:00
Nikita Salnikov-Tarnovski 2f5a40dda7
Prepare gradle plugins for release (#4419) 2021-10-19 10:37:16 +03:00
Mateusz Rzeszutek b6728de75f
Migrate Grizzly to Instrumenter API (#4409)
* Migrate Grizzly to Instrumenter API

* javax.annotation.Nullable

* Preserve the caught exception in the Context until end() is called

* rename to GrizzlyErrorHolder
2021-10-18 22:55:17 -07:00
Martin 6d9e3618d3
rename `newBuilder()` to `builder()` (#4407)
* rename `newBuilder()` to `builder()`

* code format
2021-10-18 10:00:49 -07:00
Mateusz Rzeszutek 22ea557c41
Migrate Ratpack javaagent instrumentation to Instrumenter API (#4399) 2021-10-18 10:00:40 -07:00
Mateusz Rzeszutek 888496413d
Migrate netty-3.8 client instrumentation (except CONNECT) to Instrume… (#4396)
* Migrate netty-3.8 client instrumentation (except CONNECT) to Instrumenter API

* spotless
2021-10-18 18:32:04 +02:00
Nikita Salnikov-Tarnovski c119fa1bf6
Remove more usages of checker's Nullable (#4410) 2021-10-18 17:32:25 +03:00
Nikita Salnikov-Tarnovski ae7d48cb07
Convert Mongo to Instrumenter (#4387)
* Convert Mongo to Instrumenter

* Apply suggestions from code review

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

* Update instrumentation/mongo/mongo-3.1/library/src/main/java/io/opentelemetry/instrumentation/mongo/v3_1/TracingCommandListener.java

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

* Simplify

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-10-18 10:22:00 +03:00
Martin ac91dc090a
Type annotation placement (#4406)
* switch annotation `org.checkerframework.checker.nullness.qual.Nullable` to `javax.annotation.Nullable`

* code format
2021-10-17 17:38:43 -07:00
Trask Stalnaker 7f44ebf2c3
Fix testLatestDeps (#4402)
* Fix testLatestDeps

* Fix play-2.6 testLatestDeps too
2021-10-16 13:36:34 -07:00
Mateusz Rzeszutek ac479d4b34
Migrate Netty 4.x client instrumentations (except CONNECT) to Instrum… (#4381)
* Migrate Netty 4.x client instrumentations (except CONNECT) to Instrumenter API

* Revert testReadTimeout changes
2021-10-15 17:06:02 -07:00
Trask Stalnaker 0652894a8b
Obfuscate virtual field accessors (#4385)
* Obfuscate virtual field accessors

* Update internal-reflection instrumentation

* Update test

* Remove outdated comment
2021-10-15 14:36:56 -07:00
jack-berg 5e14a5046b
Convert akka-http-10.0 to instrumenter api (#4359)
* Convert akka-http-10.0 to instrumenter api

* Add server and client metrics, add client PeerServiceAttributesExtractor

* Dont check for null request, use currentContext() instead of Context.current()

* Revert currentContext() to Context.current()

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

* Fix import

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-15 14:35:43 -07:00
Lauri Tulmin 745637cadd
AWS 1.11 strict context check (#4366) 2021-10-15 12:31:37 -07:00
Nikita Salnikov-Tarnovski 699a5adb00
Convert aws lambda integration to Instrumenter (#4362)
* Convert AwsLambdaMessageTracer to Instrumenter

* Convert AwsLambdaTracer to Instrumenter

* Rename class

* Polish

* Polish

* Move classes to internal package
2021-10-15 12:31:08 -07:00
Mateusz Rzeszutek 2904578875
Test HTTP headers capturing on Netty-based server frameworks (#4395)
* Test HTTP headers capturing on Netty-based server frameworks

* fix vertx circuit breaker tests

* fix play async tests
2021-10-15 12:30:24 -07:00
Lauri Tulmin 42dc837eaf
Run selenium tests with chrome (#4393) 2021-10-15 12:30:03 -07:00
Lauri Tulmin 0ba49ac850
Hide virtual field accessor interface methods from reflection (#4390) 2021-10-15 11:07:26 -07:00
Mateusz Rzeszutek 5e7b5380cd
Remove mentions of http.url attribute in server instrumentations (#4394) 2021-10-15 11:00:50 -07:00
Mateusz Rzeszutek b2bc41453b
Rename some *InstrumenterBuilder classes to *InstrumenterFactory (#4391) 2021-10-15 14:47:32 +03:00
Trask Stalnaker b0430f2b79
Minor doc update (#4383) 2021-10-14 19:27:32 -07:00