Commit Graph

2049 Commits

Author SHA1 Message Date
Lauri Tulmin 8e2a33b9a1
Fix flaky kotlin test (#5650) 2022-03-21 16:43:01 -07:00
Lauri Tulmin 2a24734ec3
Fix flaky executor test (#5658) 2022-03-22 08:23:02 +09:00
Lauri Tulmin a8560d783f
Increase wait time for in-flight metrics (#5649) 2022-03-21 08:47:43 -07:00
Lauri Tulmin 27d5df11a6
Only set read timeout for requests to /read-timeout (#5651) 2022-03-21 13:54:36 +02:00
Lauri Tulmin 4445cf1187
Fix flaky scala test (#5635) 2022-03-19 12:00:34 -07:00
Lauri Tulmin 59b6ba72d5
Retry elasticsearch start on BindTransportException (#5632) 2022-03-18 15:34:45 -07:00
Mateusz Rzeszutek f0bdce973e
Split out MessagingAttributesGetter (#5626) 2022-03-18 11:52:23 -07:00
Anuraag Agrawal a1e45a5abc
Migrate kotlin coroutine tests to kotlin (#5622)
* Migrate kotlin coroutine tests to kotlin

* wait longer
2022-03-18 10:41:02 -07:00
Anuraag Agrawal fafa0b4350
Migrate remaining scala tests to scala (#5620)
* Migrate remaining scala tests to scala

* Remove another groovy hack
2022-03-18 09:57:17 -07:00
Trask Stalnaker 25856b8531
Muzzle CI experiment (#5594)
* Muzzle CI experiment

* Fix class loader leak

* --max-workers=4

* Concurrent jobs

* Update .github/workflows/muzzle.yml

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

* Simpler

* Add link to comment

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-03-18 09:57:02 -07:00
Mateusz Rzeszutek ab587a927a
Implement "Prometheus mode" for better micrometer->OTel->Prometheus support (#5537)
* Implement "Prometheus mode" for better micrometer->OTel->Prometheus support

* code review comments

* forgot about README
2022-03-18 13:03:42 +01:00
Lauri Tulmin e20f29554b
Use otel.java-conventions instead of otel.javaagent-testing in module that don't test agent (#5625) 2022-03-18 11:40:16 +02:00
Anuraag Agrawal 2c8b9ff1ce
Migrate akka http test to scala (#5586)
* Migrate akka http test to scala

* Don't use compat module

* Fix latest deps
2022-03-18 16:35:00 +09:00
Anuraag Agrawal 9f3ad23a9a
Migrate scala executor tests to Java (#5618) 2022-03-18 13:49:03 +09:00
Anuraag Agrawal 213057d057
Run check during testing and assemble during building (#5619) 2022-03-18 13:48:51 +09:00
Anuraag Agrawal 75b75e7737
Migrate executors test to java (#5596) 2022-03-18 08:46:17 +09:00
Lauri Tulmin 76f7be4dee
Increase finatra startup timeout (#5604) 2022-03-18 08:45:54 +09:00
Lauri Tulmin 45bd419ec0
Run tests with jdk17 (#5598) 2022-03-17 13:25:16 -07:00
Lauri Tulmin 2ebe912fe4
GraphQL java instrumentation (#5583)
* GraphQL Java Initial Commit

* [WIP] First steps for GraphQL instrumentation, totally not ready

[skip ci]

* GraphQL Java instrumentation

* address review comments

* Apply suggestions from code review

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

* review feedback

* scope handling

* Apply suggestions from code review

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

* use spotless:off

* trigger build

* review comments

Co-authored-by: Jordie <xd@jrdie.nl>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-17 08:55:45 -07:00
Lauri Tulmin 649779450b
Wait for rocketmq message to arrive before asserting spans (#5591)
* Wait for rocketmq message to arrive before asserting spans

* Apply suggestions from code review

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

* trigger build

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-17 12:38:58 +02:00
Mateusz Rzeszutek 1ee60aa6e6
Split out RpcAttributesGetter (#5548)
* Split out RpcAttributesGetter

* code review comments

* go back to RpcAttributesGetter
2022-03-17 11:14:19 +01:00
Anuraag Agrawal 928855b248
Migrate finatra test to scala (#5588)
* Migrate finatra test to scala

* Avoid compat
2022-03-16 10:19:43 -07:00
Lauri Tulmin 3f87c2de10
Elasticsearch rest client low cardinality span name (#5584) 2022-03-16 09:01:22 +01:00
Anuraag Agrawal 47508330ba
Fix akka actors testLatestDeps (#5589)
* Fix akka actors testLatestDeps

* latest dep test scala version differs by module

* Don't bother with compat library since doesn't look good anyways
2022-03-16 15:36:01 +09:00
Anuraag Agrawal d2401e14a9
Migrate AkkaActorTest to scala (#5582) 2022-03-16 08:08:10 +09:00
Trask Stalnaker 7cd3fa4c0a
Update links (#5579) 2022-03-15 09:17:14 -07:00
Anuraag Agrawal 3ebce5c90b
Migrate MethodTest to Java (#5581) 2022-03-15 19:20:07 +09:00
Mateusz Rzeszutek b0d5fc6b99
Remove deprecated methods from instrumentation-api and library instrumentations (#5575) 2022-03-15 09:33:48 +09:00
Trask Stalnaker ed6e4bc698
Remove spring boot autoconfigure resetForTest (#5566) 2022-03-14 11:43:28 -07:00
Anuraag Agrawal 90179a3441
Migrate ktor tests to kotlin (#5571) 2022-03-14 20:03:40 +09:00
Anuraag Agrawal 046e4374bf
Migrate Armeria server test to Java (#5570) 2022-03-14 18:30:25 +09:00
Trask Stalnaker 174f6129b5
Update netty attribute name (#5568) 2022-03-14 11:08:02 +02:00
Anuraag Agrawal 1d9c23bfb3
Do not propagate gRPC deadline when propagating OTel context via javaagent. (#5543)
* Add test for early return in gRPC pattern.

* Do not propagate gRPC deadline when propagating OTel context via javaagent.
2022-03-11 11:06:26 -08:00
Trask Stalnaker 2462f47136
Simplify Azure SDK advice (#5541) 2022-03-11 10:19:10 -08:00
Lauri Tulmin 8d513f9099
Make tests provide expected exception instance instead of class (#5540)
* Make tests provide expected exception instance instead of class

* exception is optional
2022-03-11 14:24:03 +02:00
Mateusz Rzeszutek 0ad07a10c2
Remove AsyncInstrumentRegistry after update to SDK 1.12 (#5525)
* Remove AsyncInstrumentRegistry after update to SDK 1.12

* added comments
2022-03-10 13:39:23 +09:00
Lauri Tulmin e9c1efece2
Update to Groovy 4 (#5532)
* Update to Groovy 4

* exclude spock from grails tests, update comment

* Update instrumentation/grails-3.0/javaagent/build.gradle.kts

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-09 15:07:41 -08:00
Mateusz Rzeszutek f6cca58f1f
Deprecate CapturedHttpHeaders and replace it with builder methods (#5533) 2022-03-09 12:21:32 -08:00
Lauri Tulmin c461d22d83
Define helper classes in loadClass (#5528)
* Define helper classes in loadClass similarly to regular classes

* fix test

* spotless

* address review comments
2022-03-09 09:12:25 -08:00
Anuraag Agrawal 9e5fdcebd5
Migrate gRPC tests to Java (#5521)
* Migrate gRPC tests to Java

* check

* clean
2022-03-09 14:37:59 +09:00
Lauri Tulmin b3496381f1
Write http server tests in java (#5501)
* Write http server tests in java

* typo

* Apply suggestions from code review

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

* add comments

* address review comments

* use Predicate

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-08 14:21:59 -08:00
Fabian Stäber b6a5f2876b
Avoid conflicts in Micrometer description mapping (#5452)
* Avoid conflicts in Micrometer description mapping

Signed-off-by: Fabian Stäber <fabian@fstab.de>

* fix formatting

* Update instrumentation/micrometer/micrometer-1.5/library/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/Bridging.java

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-03-08 14:20:57 -08:00
Mateusz Rzeszutek 4a98dae431
Add builders for setting optional attributes on HTTP extractors (#5347)
* Add builders for setting optional attributes on HTTP extractors

* errorprone

* fix compilation failure
2022-03-08 17:21:14 +01:00
Patrice Chalin 9904352ef6
Drop manual-instrumentation and redirect to otel website pages (#5516) 2022-03-08 09:53:49 +01:00
Mateusz Rzeszutek 4ef6d165a9
Disable the messaging receive span telemetry by default (#5500)
* Disable the messaging receive span telemetry by default

* fix spring-kafka tests

* remove no longer needed link from the kafka-clients library instrumentation

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-07 22:30:40 -08:00
Lauri Tulmin 3c11cd44a0
Fix flaky micrometer test (#5514) 2022-03-07 08:56:38 -08:00
Trask Stalnaker 44b04210ff
Convert azure sdk tests to java (#5504)
* Convert azure sdk tests to java

* Better assertj
2022-03-05 08:41:21 -08:00
Trask Stalnaker e52752e251
Fix azure sdk 1.14 testLatestDeps (#5509) 2022-03-05 14:07:24 +02:00
Trask Stalnaker e67c9c4796
Fix jboss-logmanager testLatestDeps (#5503) 2022-03-04 21:01:38 -08:00
Trask Stalnaker ab9169cd25
Add Azure SDK instrumentation (#5467)
* Add Azure SDK instrumentation

* Add to supported libraries table

* Keep suppression for 1.19
2022-03-04 13:08:50 -08:00
Mateusz Rzeszutek 47f2732aae
Split out DbClientAttributesGetter and SqlClientAttributesGetter (#5354)
* Split out DbClientAttributesGetter and SqlClientAttributesGetter

* code review comments
2022-03-04 09:58:04 -08:00
Trask Stalnaker 8b26cef666
Add JBoss java.util.logging support (#5498) 2022-03-04 09:27:52 -08:00
Trask Stalnaker b0e4be0e5f
Capture logback formatted message (#5497) 2022-03-04 13:10:55 +02:00
Trask Stalnaker 151b956e98
Test jaxrs-client-1.1 for duplicate nested spans (#5485) 2022-03-03 12:21:21 +02:00
Trask Stalnaker 4a8d6d552e
Add log4j 1.2 appender MDC capture (#5475)
* Add log4j 1.2 appender MDC capture

* Spotless
2022-03-02 09:56:01 -08:00
Trask Stalnaker 627f5d3e1c
Add experimental thread attributes for logs (#5474) 2022-03-02 09:06:08 -08:00
Trask Stalnaker 3ab1b8516f
Add markdown spell check (#5450)
* Add markdown link check

* Fix links

* update workflows

* move comment

* Add misspell check

* Fix misspellings

* Fix more misspellings

* Run against all files

* Spotless
2022-03-01 19:18:53 -08:00
Trask Stalnaker c06d70d174
Remove JAXRS HttpClient instrumentation (#5430) 2022-02-28 22:47:26 -08:00
Trask Stalnaker 8d18e463ea
Add markdown link check (#5449)
* Add markdown link check

* Fix links

* update workflows

* move comment
2022-02-28 11:30:16 -08:00
Lauri Tulmin e6a8bdf697
Add peer service support back to couchbase26 (#5451)
* Add peer service support back to couchbase26

* extract common module

* move tests

* fix tests

* address review comments

* remove CouchbaseRequestInfoHolder
2022-02-28 10:00:27 -08:00
Trask Stalnaker e058fa7810
Fix aws-core testLatestDeps (#5458)
* Fix aws-core testLatestDeps

* ooops
2022-02-27 21:07:27 -08:00
Trask Stalnaker 0a6b87eb69
Remove server span peer name (#5404)
* Fix server -> client reference

* Remove server span peer name
2022-02-27 11:06:20 -08:00
Trask Stalnaker e89a9f2ea1
Use gradle cache for setup-muzzle-matrix job (#5448) 2022-02-25 09:28:33 -08:00
Trask Stalnaker 02a4fd41c2
Fix regression in spring-scheduling span name (#5436) 2022-02-24 12:27:43 -08:00
Lauri Tulmin 12e1134f57
Increase delay in attempt to fix flaky test in AbstractAws1ClientTest (#5441) 2022-02-24 08:38:16 -08:00
Lauri Tulmin 4d103263f7
Increase ready timeout for couchbase31 (#5442) 2022-02-24 08:37:07 -08:00
Armin Ruech 640e95df1c
Update Log4j appender example to follow the spec (#5443) 2022-02-24 08:32:01 -08:00
eugeniyk bf16564321
Set custom gRPC client/server span name extractor (#5244)
* Set custom gRPC client/server span name extractor

* Fix imports

* Fix compilation

* Fix style rule

* Update to use Functions instead

* Fix formatting
2022-02-24 13:59:00 +02:00
Lauri Tulmin 6d58704e76
Sort spans in Netty41ClientSslTest (#5433) 2022-02-24 13:02:40 +02:00
Lauri Tulmin 9fd34144e3
Wait before clearing metrics (#5434) 2022-02-24 13:02:24 +02:00
Anuraag Agrawal 9f00cf38d5
Migrate google-http-client tests to Java. (#5399) 2022-02-24 16:51:08 +09:00
Trask Stalnaker d7725d248b
Fix server -> client reference (#5396) 2022-02-19 11:49:00 -08:00
Trask Stalnaker 53a8b85f4c
Updates to http.server_name (#5369)
* Updates to http.server_name

* Tests

* fix

* armeria

* fix

* fix

* codenarc
2022-02-18 09:38:21 -08:00
Trask Stalnaker 2f5e1f0703
Fix another reverse lookup (#5393)
* Fix another reverse lookup

* Update tests to verify NET_PEER_NAME is never captured for http server spans

* Revert "Update tests to verify NET_PEER_NAME is never captured for http server spans"

This reverts commit 44c9e91048.
2022-02-18 08:54:08 -08:00
Lauri Tulmin 8c6cd97cc7
Sort netty RESOLVE, CONNECT and SSL handshake spans (#5394) 2022-02-17 20:20:08 -08:00
Mateusz Rzeszutek 27ed47ccda
Split out CodeAttributesGetter (#5342) 2022-02-17 16:47:18 -08:00
Mateusz Rzeszutek 6774ce5791
Change the way Micrometer LongTaskTimer is bridged (#5338) 2022-02-17 16:46:23 -08:00
Lauri Tulmin cc60ffb6e0
Fix netty38 latest deps test (#5392) 2022-02-17 07:29:24 -08:00
Lauri Tulmin 9f98a0953a
Disable connection pooling in netty38 tests (#5384) 2022-02-17 11:02:43 +02:00
Lauri Tulmin 9b9fe6a8b3
Setting bean class name overwrites bean class (#5387) 2022-02-17 11:02:24 +02:00
Lauri Tulmin 40557768f6
Fix flaky jdk http client test (#5371) 2022-02-17 09:36:51 +02:00
Lauri Tulmin 53359f09ea
Use repository interface name in spring data operation name (#5352)
* Use repository interface name in spring data operation name

* Update instrumentation/spring/spring-data-1.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/data/SpringDataInstrumentationModule.java

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

* spotless

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-02-16 12:04:42 +02:00
Lauri Tulmin be0f07e3e4
Alter flaky redisson test (#5376) 2022-02-16 11:25:17 +02:00
Lauri Tulmin 3b81bc49e8
Remove oshi latest dep test restriction (#5383) 2022-02-15 11:11:02 -08:00
Lauri Tulmin 3fadca743e
Exclude broken oshi release (#5372)
* Exclude broken oshi release

* fix latest deps test
2022-02-14 13:25:45 -08:00
Lauri Tulmin fc5b0e9a02
Remove and ignore .attach_pid files (#5348) 2022-02-11 09:37:52 -08:00
Lauri Tulmin e9b9fcc4a7
Increase couchbase timeout (#5349) 2022-02-11 09:33:12 -08:00
Lauri Tulmin ec36dbf7bd
Add more sleep to weak gauge test (#5350) 2022-02-11 09:32:39 -08:00
Anuraag Agrawal 7e5fa5ee93
Add all AWS SDK api libraries referenced in testing to latestDepTest (#5280)
* Add all AWS SDK api libraries referenced in testing in latestDepTest

* Fix merge
2022-02-11 10:48:52 +09:00
Anuraag Agrawal f236b2d4c9
Split lambda instrumentation into core and events (#5326)
* Split out lambda core instrumentation

* More

* Remove request wrapper from core

* Split events

* Dedupe

* More

* More renames

* Finish

* Clean

* README

* Rename more

* Finish

* Fix README

* Fix README

* Fix

* Comments
2022-02-10 17:27:22 -08:00
Lauri Tulmin 51b88c7bce
Muzzle fails for elasticsearch 8 (#5343)
* Muzzle fails for elasticsearch 8

* Muzzle fails for elasticsearch 8
2022-02-10 13:48:41 -08:00
Lauri Tulmin c7f9715f34
Wait for kafka to start (#5341) 2022-02-10 09:55:49 -08:00
ralphgj e551d99db3
fix: add attributes of net.peer.* for grpc client span (#5324) 2022-02-10 09:54:43 -08:00
Lauri Tulmin afdeb1a557
Change rxjava version that is used in hystrix tests (#5335) 2022-02-10 08:58:32 -08:00
Mateusz Rzeszutek 956b5660de
Implement NamingConvention support in Micrometer bridge (#5328)
* Implement NamingConvention support in Micrometer bridge

* default naming convention
2022-02-09 17:48:13 -08:00
Mateusz Rzeszutek 2cf853dba3
Fix base time unit in Micrometer FunctionTimer (#5321) 2022-02-09 10:29:58 +01:00
Mateusz Rzeszutek edfd842185
Fix time units in Micrometer Timer max measurements (#5320) 2022-02-08 14:00:13 +01:00
Mateusz Rzeszutek 0b7f466724
Make it possible to configure base time unit used by the Micrometer bridge (#5304)
* Make it possible to configure base time unit used by the Micrometer bridge

* add readme
2022-02-08 10:39:02 +01:00
Mateusz Rzeszutek 551418c283
Refactor AttributesExtractor so that it extracts route from Context (#5288)
* Refactor AttributesExtractor so that it extracts route from Context

* typo

* fix tests

* Update instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpRouteHolder.java

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

* fix all AttributesExtractors

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-02-08 10:38:41 +01:00
Mateusz Rzeszutek 99f8c8d1cd
Add max measurements to Micrometer Timer & DistributionSummary (#5303) 2022-02-08 08:17:28 +01:00
Anuraag Agrawal b9fac11c90
Migrate AWS Lambda tests to Java (#5315)
* Migrate AWS Lambda tests to Java

* Only assert OTLP fields for links
2022-02-08 15:27:20 +09:00
Trask Stalnaker 186c657b4e
Avoid potential for reverse name lookup (#5305) 2022-02-07 17:39:16 -08:00
Lauri Tulmin 1bdd88d10c
Propagate context into redisson async callback (#5313)
* Propagate context into redisson async callback

* Apply suggestions from code review

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-02-07 17:35:42 -08:00
Trask Stalnaker a0f3ad7279
Add code attributes to spring-scheduling spans (#5306) 2022-02-07 17:31:11 -08:00
Marc Pichler db20a5344f
Fix artifactID in log4j-context-data-2.16 documentation (#5310) 2022-02-04 08:56:58 -08:00
Trask Stalnaker 3d0ebce2ba
Fix triggering of DNS lookup (#5297)
* Fix triggering of DNS lookup

* Update test

* Update test
2022-02-03 08:39:52 -08:00
Nikita Salnikov-Tarnovski a3ce5d5e2a
Use "--add-opens" to allow test to run on java 16+ (#5290)
* Use "--add-opens" to allow test to run on java 16+

* Update instrumentation/executors/javaagent/build.gradle.kts

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>

* Update instrumentation/executors/javaagent/build.gradle.kts

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-02-03 08:22:49 +02:00
Trask Stalnaker 6f38a42a97
Replace nameMatches with named (#5296) 2022-02-02 16:19:07 -08:00
Mateusz Rzeszutek 21f968abb4
Add missing return type matchers to the executor instrumentation (#5294) 2022-02-02 13:19:42 -08:00
Trask Stalnaker 1077258263
Add InternalJavadoc custom error prone check (#5277)
* Add InternalJavadoc custom error prone check

* Add example usage

* Move to conventions

* Revert "Move to conventions"

This reverts commit d8a8209b59.

* Just get it working

* Clearer error message

* versions

* Apply almost everywhere

* feedback

* Always at the end of javadoc

* Fix test

* Missed (at least) one

* No longer internal

* Fix NPE

* Spotless

* Convert awslambda Java test to JUnit 5 so can reduce visibility

* Reduce visibility

* Rename the check

* More

* Move into errorprone-convention

* Fix UserExcludedClassesConfigurerTest
2022-02-01 17:54:57 -08:00
Lauri Tulmin 3cb1efceb3
Remove struts2 latest dep restriction (#5289) 2022-02-01 09:52:23 -08:00
Trask Stalnaker 022914139e
test latest deps cleanup (#5269)
* test latest deps cleanup

* Revert currently irrelevant change

* Update instrumentation/lettuce/lettuce-4.0/javaagent/build.gradle.kts

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

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2022-02-01 09:49:07 -08:00
Mateusz Rzeszutek 3bbc41a6ce
Enable oshi ProcessMetrics in javaagent (and refactor oshi instrumentation) (#5281)
* Enable oshi ProcessMetrics in javaagent (and refactor oshi instrumentation)

* Get rid of double async instrument registration logs

* spotless
2022-02-01 09:57:48 +01:00
Lauri Tulmin 8240a5f66f
End jedis span when operation actually ends (#5256)
* End jedis span when operation actually ends

* address review comments
2022-01-31 20:20:44 -08:00
Lauri Tulmin fbf00761cc
Use VirtualField for associating netty listener with wrapper (#5282)
* Use VirtualField for associating netty listener with wrapper

* Move ignoring lambas for injected classes to LambdaTransformer
2022-01-31 14:45:12 -08:00
Trask Stalnaker c54a823bae
Rename vertx-reactive module (#5274) 2022-01-31 09:42:09 -08:00
Mateusz Rzeszutek 8b767ac435
Refactor HTTP attributes extractors to use composition over inheritance (#5267)
* Refactor HTTP attributes extractors to use composition over inheritance

* Rename remaining variables: *Extractor to *Getter
2022-01-31 09:25:27 -08:00
Mateusz Rzeszutek cf6f9b7631
Log a warning whenever GlobalOpenTelemetry.set() is called (#5264) 2022-01-31 09:24:01 -08:00
Trask Stalnaker 3bee90a69b
Use BatchSpanProcessor (#5275) 2022-01-31 09:14:03 -08:00
Trask Stalnaker aa2ac33b70
Rename scala-executors module (#5273) 2022-01-29 13:27:16 -08:00
Trask Stalnaker 23b33adb0a
Auto-format groovy files in Intellij (#5260)
* Auto-format groovy files in Intellij

* A bit of clean up
2022-01-28 09:29:46 -08:00
Lauri Tulmin 72afa5a8ed
Fix serialization fo quartz JobExecutionContext (#5263)
* Fix serialization fo quartz JobExecutionContext

* address review comments
2022-01-28 09:19:59 -08:00
Lauri Tulmin 014624e196
kotlinx-coroutines-reactor context propagation (#5196)
* kotlinx-coroutines-reactor context propagation

* extract context from reactor

* add generics

* muzzle

* actually use the context extracted from reactor

* test context propagation operator

* typo

* used named instead of namedOneOf

* instrument newCoroutineContext, remove reactor specific code

* revert changes
2022-01-28 09:16:47 -08:00
Trask Stalnaker 7df2b0e2df
Don't run testLatestDeps on alpha/beta/rc versions (#5258)
* Don't run testLatestDeps on alpha/beta/rc versions

* More logback
2022-01-28 08:21:53 -08:00
Mateusz Rzeszutek 16335a0c47
Use HttpRouteHolder in spring-webflux instrumentation (#5239) 2022-01-28 10:07:19 +01:00
Mateusz Rzeszutek 817b3d2671
Use HttpRouteHolder in spark instrumentation (#5241) 2022-01-27 12:38:59 +01:00
Mateusz Rzeszutek 9ff7b92841
Use HttpRouteHolder in camel instrumentation (#5242) 2022-01-27 12:38:42 +01:00
Mateusz Rzeszutek 6c855d9789
Use HttpRouteHolder in vertx-web instrumentation (#5240)
* Use HttpRouteHolder in vertx-web instrumentation

* Fix vertx-reactive tests
2022-01-27 12:38:01 +01:00
Trask Stalnaker 51e52427bb
Fix logback testLatestDeps (#5248) 2022-01-26 12:09:31 -08:00
Trask Stalnaker 477f7163f0
Some testLatestDeps cleanup (#5226) 2022-01-26 09:27:53 -08:00
Trask Stalnaker a5e0696af2
Improve log4j ContextDataProvider injection (#5216) 2022-01-26 09:26:49 -08:00
Trask Stalnaker 953fd106a7
Fix vertx-http-client testLatestDeps Xlint errors (#5228)
* Fix vertx-http-client testLatestDeps

* fix
2022-01-25 20:58:48 -08:00
Anuraag Agrawal d79c26f23d
Support AWS SDK v1 request object subclasses. (#5231) 2022-01-26 13:47:34 +09:00
Trask Stalnaker 87d26ae185
Fix testLatestDeps lint error (#5219) 2022-01-25 13:18:35 -08:00
Lauri Tulmin efc5dc720a
Fix vaadin14 latest dep test (#5214) 2022-01-25 09:49:29 -08:00
Mateusz Rzeszutek edc185b133
Rename ServerSpanNaming to HttpRouteHolder (#5211)
* Rename ServerSpanNaming to HttpRouteHolder

* HttpRouteBiGetter
2022-01-25 09:44:15 -08:00
Lauri Tulmin f2a2786759
Recover from duplicate class definition errors (#5185)
* Recover from duplicate class definition errors

* fix hotspot8

* Suppress dupicate class definiton errors only when helper classes were injected

* exit define class context when there is an exception, update pseudocode in comment
2022-01-25 09:37:37 -08:00
Mateusz Rzeszutek 064d923b84
Actually fix redisson instrumentation after 3.16.8 release (#5201)
* Actually fix redisson instrumentation after 3.16.8 release

* try MethodHandles

* remove unneeded virtual fields
2022-01-24 15:51:56 -08:00
Anuraag Agrawal e04f52b9db
Enable java lint (#5182)
* Enable java lint

* Compile internal-lambda-java9 withot using --release flag (#34)

* Fix some custom testsets

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-01-24 12:45:42 +09:00
Lauri Tulmin c1280a9ee3
Limit latest dep version in aws sdk library-autoconfigure module (#5205) 2022-01-22 10:19:02 -08:00
Mateusz Rzeszutek 9381d5a264
Expected server span name for null route should be HTTP GET (#5197) 2022-01-21 19:35:48 -08:00
jason plumb fe8a132ee9
Factor out NetServerAttributesGetter (#5194)
* factor out NetServerAttributesGetter and favor composition over inheritance.

* Update instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/net/NetServerAttributesGetter.java

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

* errorprone and spotless

* spotless

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-01-21 17:01:30 -08:00
Trask Stalnaker 23fb0bd73b
Limit aws-sdk version for latest dep tests (#5202) 2022-01-21 15:19:09 -08:00
Lauri Tulmin 26aee0411d
Limit spring boot version in grails latest dep tests (#5199) 2022-01-21 09:33:46 -08:00
Mateusz Rzeszutek 3c8a192d1d
Limit redisson version to 3.16.7 (#5198)
* Limit redisson version to 3.16.8

* latestDepTestLibrary
2022-01-21 15:45:17 +02:00
Matthew Ho 66bf050bf8
Akka http server span names are always akka.request #3478 (#5150)
* Akka http server span names are always akka.request #3478
 - removed hardcoded span name "akka.request"
 - implemented route() in AkkaHttpServerAttributesExtractor to provide a better span name
 - retrofitted AkkaHttpServerInstrumentationTest.groovy

* Akka http server span names are always akka.request #3478
 - removed hardcoded span name "akka.request" and changed to "HTTP {METHOD}"
 - retrofitted AkkaHttpServerInstrumentationTest.groovy

* Akka http server span names are always akka.request #3478
 - removed hardcoded span name "akka.request" and changed to "HTTP {METHOD}"
 - retrofitted AkkaHttpServerInstrumentationTest.groovy

* Akka http server span names are always akka.request #3478
 - removed hardcoded span name "akka.request" and changed to "HTTP {METHOD}"
 - retrofitted AkkaHttpServerInstrumentationTest.groovy and related tests
2022-01-20 14:11:33 -08:00
jack-berg 48f8031baa
Fix log4j appender docs (#5192) 2022-01-20 14:08:41 -08:00
Lauri Tulmin dadf1e4d71
Move reactor context propagation operator instrumentation to separate instrumentation module (#5188) 2022-01-20 11:00:48 -08:00
jason plumb c5c0a2bcdf
NetClientAttributesAdapter - favor composition over inheritance (#5030)
* first pass at separating NetAttributesAdapter interface and make NetClientAttributesExtractor concrete

* rename the implementations extractor -> adapter

* hide constructor and make factory method

* rename to client and add javadoc

* spotless

* finish javadoc thought

* rebase

* renamed NetClientAttributesAdapter to NetClientAttributesGetter

* fix lettuce

* code review comments

* code review comments -- renaming for consistency

* adapter -> getter

* fix ratpack

* adapter -> getter
2022-01-20 10:51:13 -08:00
Mateusz Rzeszutek 540e4cfafb
Remove HttpServerTest#extraAttributes() method (#5176)
* Remove HttpServerTest#extraAttributes() method

* fix ktor tests

* fix ratpack and restlet tests

* fix servlet2 tests

* Fix webflux and vertx tests
2022-01-20 10:41:41 -08:00