Commit Graph

1805 Commits

Author SHA1 Message Date
Lauri Tulmin 55e44d790c
ktor net attribute extraction (#5027)
* ktor net attribute extraction

* spotless
2022-01-06 12:03:59 -08:00
Lauri Tulmin 12c15b226f
Capture servlet request parameters at the end of the request (#5019)
* Capture servlet request parameters at the end of the request

* add comment
2022-01-06 12:02:42 -08:00
Trask Stalnaker 07ce0b5909
Support log4j map messages (#4966)
* Support log4j map messages

* Cache attribute keys

* Review

* Add tests

* Fix test

* Codenarc

* Better tests

* Remove sysout
2022-01-06 12:02:12 -08:00
Lauri Tulmin acaa5e687a
Remove grails lates dep restriction (#5025) 2022-01-06 08:56:41 -08:00
Lauri Tulmin c45b4ea5be
Fix redefinition failure on openj9 (#5009)
* Fix redefinition failure on openj9

* isntead of remembering the list of interfaces the class has remember whether it has any of the virutal field marker interfaces

* address review comment

* ensure virtual field detection works when internal-reflection instrumentation is disabled
2022-01-06 08:54:32 -08:00
Trask Stalnaker 9d68a9f004
Remove unused file (#5020) 2022-01-06 09:31:59 +02:00
Lauri Tulmin 175d1bfdcb
Create producer span from spring integration instrumentation (#4932)
* Add an option to create producer span from spring integration instrumentation

* Update instrumentation/spring/spring-integration-4.1/library/src/main/java/io/opentelemetry/instrumentation/spring/integration/TracingChannelInterceptor.java

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

* add null check

* add doc

* Update instrumentation/spring/README.md

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
2022-01-05 13:00:22 -08:00
Trask Stalnaker 55eb157645
Fix ktor testLatestDeps (#5014) 2022-01-04 21:51:24 -08:00
Trask Stalnaker 1d453debe3
Update log4j instrumentation docs (#4915)
* Update log4j instrumentation docs for 1.10.0 release

* More log4j doc changes for 0.10.0

* Updates for #4937

* Fix log4j documentation

* Update instrumentation/log4j/log4j-2.16/library/README.md

Co-authored-by: jack-berg <jberg@newrelic.com>
2022-01-04 20:55:36 -08:00
Anuraag Agrawal e08ed9d448
Add library instrumentation for ktor. (#4983) 2022-01-04 20:14:31 -08:00
Trask Stalnaker 7c58220d65
Fix logback testLatestDeps (#5010) 2022-01-04 16:20:21 -08:00
Lauri Tulmin 97f110405d
Instrumentation for rxjava3.1.1 (#4954)
* Instrumentation for rxjava3.1.1

* Move common test classes

* spotless

* move rxjava 3.1.1 classes to separate package
2022-01-04 14:15:35 -08:00
Lauri Tulmin 26d2634beb
Convert camel instrumentation to instrumenter api (#4973) 2022-01-04 13:29:41 -08:00
jack-berg 935cb88ff4
Add logback appender (#4984) 2022-01-03 20:42:28 -08:00
Trask Stalnaker 1a9b37525c
Add support for capturing logback mdc attributes (#4968)
* Add support for capturing logback mdc attributes

* Spotless
2022-01-03 10:32:49 -08:00
Fabrizio Ferri-Benedetti 4d7a5d5062
Add settings docs for instrumentations (#4981)
* First commit

* Add other instrumentation docs

* Peer edits

* Update instrumentation/kafka/kafka-clients/README.md

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

* Update instrumentation/methods/README.md

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

* Update instrumentation/netty/README.md

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

* Update instrumentation/reactor/reactor-netty/README.md

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

* Update instrumentation/servlet/README.md

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

* Fixes

* Update instrumentation/couchbase/README.md

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

* Update instrumentation/rocketmq-client-4.8/README.md

Well spotted!

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

* Update instrumentation/spring/README.md

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

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-01-03 10:24:48 -08:00
Mateusz Rzeszutek a022f0ce59
Micrometer bridge instrumentation (#4919)
* Micrometer bridge instrumentation

* gauges with the same name and different attributes

* weak ref gauge

* one more test

* disable by default + muzzle

* code review comments

* log one-time warning

* make AsyncInstrumentRegistry actually thread safe

* code review comments

* one more minor fix
2022-01-03 13:33:39 +01:00
Lauri Tulmin a45aaf34fb
Fix oshi latest dep test (#4993) 2022-01-03 08:44:33 +02:00
Trask Stalnaker 39a9a2f8e2
Fix codenarc (#4969)
* Fix codenarc

* Fix violations
2021-12-22 16:15:38 -08:00
Trask Stalnaker d0fb7d5c83
Fix spring-ws muzzle (#4970) 2021-12-22 14:57:08 -08:00
Trask Stalnaker 589ae4ccfa
Fix vertx modules (#4967) 2021-12-22 12:39:22 -08:00
Trask Stalnaker 5bc64a1b8b
Capture log4j2 context data (mdc) attributes (#4959)
* Capture log4j2 context data (mdc) attributes

* Spotless

* Remove system.out.println

* Switch to allow-list

* Spotless
2021-12-22 10:16:45 -08:00
Trask Stalnaker 6884d66c09
Reduce top level instrumentation directories (#4965)
* akka

* dropwizard

* kafka

* reactor

* vertx
2021-12-22 10:16:13 -08:00
Mateusz Rzeszutek 9e3bd5c18d
Remove a few `ServerSpanNaming` usages (#4900)
* Remove a few ServerSpanNaming usages

* revert vaadin changes
2021-12-21 12:49:03 -08:00
Lauri Tulmin 2531b6e569
Context propagation for undertow async dispatch (#4950) 2021-12-21 12:47:54 -08:00
Anuraag Agrawal a9aee8ed45
Fix some gauge types (#4962) 2021-12-21 12:40:13 -08:00
Trask Stalnaker 88121c1583
Rename log4j-thread-context modules to log4j-context-data (#4957) 2021-12-21 11:40:03 -08:00
Trask Stalnaker 460c079619
Add ratpack top-level folder (#4951) 2021-12-21 10:17:45 +02:00
Trask Stalnaker 484ae6be17
Fix logback testLatestDeps (#4953) 2021-12-20 15:45:40 -08:00
Trask Stalnaker 47aacd3318
Add java.util.logging javaagent instrumentation (#4941)
* java.util.logging

* Update instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingInstrumentationModule.java

* sync

* Update instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingHelper.java

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

* Remove unused code

* Simplification

* Remove JBoss logger instrumentation

* Spotless

* Unroll

* Remove unused dependency

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-12-20 12:36:30 -08:00
Trask Stalnaker 0302e9b921
Add log4j2 appender javaagent instrumentation (#4944)
* log4j2

* Spotless

* Target 2.16 for javaagent instrumentation and share

* review feedback

* Add comment

* Remove unnecessary configuration

* Fix comment
2021-12-20 12:28:29 -08:00
Trask Stalnaker b5df9bab83
Add log4j 1.2 appender javaagent instrumentation (#4943)
* log4j1

* review feedback

* final
2021-12-20 12:28:05 -08:00
Trask Stalnaker ea359e61fb
Add logback appender javaagent instrumentation (#4939)
* logback

* Use assertInverse

* sync

* sync

* Update instrumentation/logback/logback-appender-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/logback/appender/v1_0/LogbackHelper.java

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

* Update instrumentation/logback/logback-appender-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/logback/appender/v1_0/LogbackHelper.java

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

* Unroll

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-12-20 12:27:54 -08:00
Trask Stalnaker 5d2cc7eed3
Rename (and move around) log4j instrumentation modules (#4937)
* Rename to log4j-thread-context

* Rename to log4j-mdc-1.2

* move

* update

* subdir
2021-12-19 19:58:37 -08:00
Trask Stalnaker a76c35e33f
Minor log4j instrumentation updates (#4938)
* Minor log4j instrumentation updates

* Remove duplicate line

* Use semantic attributes for exceptions
2021-12-19 19:32:46 -08:00
Trask Stalnaker cc9d2877c9
Add a logging appender API (#4917)
* Add logging appender api

* noop

* Add global

* drift

* Feedback

* compileOnly

* fix

* fix

* Rename instrumentation-appender-api to instrumentation-api-appender

* Rename package

* Optimization

* Split out instrumentation-sdk-appender

* Fix

* Update instrumentation-api-appender/src/main/java/io/opentelemetry/instrumentation/api/appender/LogEmitter.java

Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>

* Fix

* Fix

* Fix

* Fix sdk-appender package name

Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
2021-12-17 16:09:32 -08:00
Lauri Tulmin 1d5b03d3b5
Fix flaky log4j test (#4931)
* Fix flaky log4j test

* Update instrumentation/log4j/log4j-2.16/library/src/test/java/io/opentelemetry/instrumentation/log4j/v2_16/OpenTelemetryAppenderConfigTest.java

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-12-17 14:04:34 -08:00
Lauri Tulmin 67378edf7e
Ignore exceptions from closing jax-rs response (#4923) 2021-12-17 08:59:32 -08:00
Trask Stalnaker 6776a7e181
Fix log4j library-autoconfigure publishing (#4928) 2021-12-17 08:59:18 -08:00
Lauri Tulmin 08ba196729
Retry rocketmq batch test when it fails (#4922) 2021-12-17 08:59:01 -08:00
Trask Stalnaker dba6e429e4
Cross test log4j javaagent instrumentation (#4918) 2021-12-16 08:48:02 -08:00
Anuraag Agrawal 5e1e0c2642
Update to OTel 1.10 (#4866)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-12-16 18:46:17 +09:00
Trask Stalnaker 88f11d0525
Update log4j library base version (#4914)
* Update log4j-2.7 javaagent instrumentation to match up through 2.15.0

* Rename log4j 2.13.2 to 2.16

* Update one more location
2021-12-15 20:47:26 -08:00
Mateusz Rzeszutek e8e6813f97
Fix NPE in RocketMQ instrumentation (#4901)
* Fix NPE in RocketMQ instrumentation

* fix tests

* add exception

* Changed the condition a bit
2021-12-15 17:32:01 -08:00
Lauri Tulmin 98d3f88ab8
Fix npe in apache http client 4.0 instrumentation (#4913) 2021-12-15 17:29:57 -08:00
Trask Stalnaker b01efec0fd
Split out log4j appender (#4907) 2021-12-15 10:02:40 -08:00
Asaf Ben Aharon 5869df80e5
Fix RabbitMQ instrumentation consumption on empty headers (#4903)
* Handle null on headers getters

* early returns
2021-12-14 12:01:16 -08:00
Mateusz Rzeszutek 09beb58a8c
Move SpanKey to internal package (#4869)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-12-14 11:27:37 -08:00
Trask Stalnaker 98034e93c6
Remove pinned netty test latest dep version (#4896)
This reverts commit be7bc243de.
2021-12-14 11:25:05 +02:00
Lauri Tulmin b1e2c3ced6
Limit elasticsearch memory usage (#4892) 2021-12-14 11:24:42 +02:00
Mateusz Rzeszutek a65e9633ba
Refactor `ServerSpanNaming` (in preparation for `http.route`) (#4852)
* Refactor ServerSpanNaming (in preparation for http.route)

* fix tests

* Add ServerSpanNaming to all HTTP server instrumentations

* fix tests
2021-12-14 10:11:20 +01:00
Mateusz Rzeszutek 331ce287d2
Don't use HttpStatusConverter outside of instrumentation-api (#4870)
* Don't use HttpStatusConverter outside of instrumentation-api

* add comment
2021-12-14 10:07:18 +01:00
Anuraag Agrawal 8d0541e0b4
Revert spotless to working version (#4884)
* Revert "Fix Intellij import (#4877)"

This reverts commit 63aec1a401.

* Revert "Update spotless (#4863)"

This reverts commit a4f70cbd86.
2021-12-14 10:59:41 +09:00
Lauri Tulmin 0dbc1f2e1f
Add startup check to all rabitmq container usages (#4893) 2021-12-13 17:28:52 -08:00
Mateusz Rzeszutek 93a3282490
Remove ConfigPropertiesAdatpter as it's no longer needed (#4888) 2021-12-13 12:20:11 -08:00
Trask Stalnaker d930971adf
Fix Quarkus correlation (#4883)
* Fix Quarkus correlation

* Add Quarkus smoke test image

* Add Quarkus smoke test

* Fix permission on gradlew

* Update to gradle 7.3.1

* Fix Jib build

* Bump compilation to Java 11

* Better comment

* Fix comment placement

* Fix
2021-12-13 09:26:44 -08:00
Mateusz Rzeszutek ca2bce9608
Deprecate the Tracer API (#4868) 2021-12-12 12:14:36 -08:00
Trask Stalnaker e5ca1275d4
Fix kotlin coroutines test latest deps (#4873) 2021-12-10 13:29:40 -08:00
Mateusz Rzeszutek f7f3f5685f
Fix reactor-netty memory/connection leak (#4867) 2021-12-10 10:08:53 -08:00
Anuraag Agrawal a4f70cbd86
Update spotless (#4863)
* Update spotless

* Apply spotless
2021-12-10 17:32:34 +09:00
Trask Stalnaker be7bc243de
Skip problem netty version (#4860) 2021-12-10 09:28:12 +01:00
Lauri Tulmin 67aa8979a8
Disable loading favicion.ico for vaadin 14 tests (#4856) 2021-12-09 19:53:21 -08:00
Lauri Tulmin 231ab6bf59
Convert play instrumentation to instrumenter api (#4853) 2021-12-09 13:35:42 -08:00
Lauri Tulmin d6e69c746e
Fix typo in method name (#4855) 2021-12-09 10:16:59 -08:00
Lauri Tulmin 7a49b2bea5
Fix vert.x single connection tests (#4851) 2021-12-09 11:42:03 +02:00
Lauri Tulmin 6102d31352
Imporve vert.x rx error handling (#4845) 2021-12-09 09:02:26 +02:00
Anuraag Agrawal 6b6b22de96
Update Armeria for testing (#4730)
* Update Armeria for testing

* Fix aws sdk and netty tests for armeria update (#4841)

* Fix aws sdk tests for armeria update

* fix flaky aws11 test

* send path instread of full uri

* send path instread of full uri

* fix flaky aws11 test

* fix netty tests

* spotless

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2021-12-09 08:53:56 +09:00
Mateusz Rzeszutek 8d6554287f
Add shouldStart() call to armeria server instrumentation (#4843) 2021-12-08 09:26:55 -08:00
Mateusz Rzeszutek 0bab0c2aa3
Move `ServletContextPath` to `servlet-common:bootstrap` (#4824)
* Move ServletContextPath to servlet-common:bootstrap

* fix tests

* Simplify ServletContextPath calls in restlet instrumentation
2021-12-08 15:59:31 +01:00
Mateusz Rzeszutek d590481c3f
Enable Armeria server instrumentation notFound() test (#4842) 2021-12-08 15:50:54 +01:00
Zane XiaoYe cd863f6726
update the documentation (#4834)
the `filter` method does not compile in this example, use `filters` instead of `filter`.
2021-12-07 20:40:30 -08:00
Liudmila Molkova 19958521a0
Instrument ContextPropagationOperator to bridge lib/agent calls (#4786)
* Instrument ContextPropagationOperator to bridge lib/agent calls

* more tests

* clean up

* up

* lint

* more lint

* make runWithContext(Flux, ..) public

* lint
2021-12-07 11:00:20 -08:00
Javier Salinas ebe4c6538c
Bump ratpack to 1.7 (#4796) 2021-12-07 07:27:03 -08:00
Mateusz Rzeszutek 075434c5bc
Move `AppServerBridge` and `MappingResolver` to `servlet-common:bootstrap` (#4817)
* Move AppServerBridge and MappingResolver to servlet-common:bootstrap

* Introduce additional gradle configuration for bootstrap libs
2021-12-07 10:20:33 +01:00
Anuraag Agrawal ca3919ea31
Update Gradle and build dependencies (#4808)
* Update Gradle and build dependencies

* Add spotless + Java 17 workaround

* Revert spotless for now

* Fix merge

* jvmTarget
2021-12-07 14:42:52 +09:00
Trask Stalnaker 3801bb38cc
Run muzzle check against OpenTelemetry API instrumentation (bridge) (#4797)
* Run muzzle check against bridge

* Simplify

* Renames
2021-12-06 11:58:01 -08:00
Trask Stalnaker 32e3deb9cf
Update tests now that netty captures http.scheme (#4807) 2021-12-06 11:57:33 -08:00
Nikita Salnikov-Tarnovski 28d5b80ecf
Update to groovy 3 (#4816) 2021-12-06 20:09:58 +02:00
Lauri Tulmin 0b414e4ea4
Sort traces in vaarin tests (#4812) 2021-12-06 09:35:00 -08:00
Trask Stalnaker 31fddb7afd
Propagate Context instead of SpanContext (#4806)
* Propagate Context instead of SpanContext

* Update spring-kafka

* Fix nesting

* Comment
2021-12-06 09:31:53 -08:00
Lauri Tulmin 7b26133815
Fix api misuse in vert.x reactive tests (#4815) 2021-12-06 09:26:43 -08:00
Lauri Tulmin 5703a4022a
Fix flaky elasticsearch rest 5 test (#4814) 2021-12-06 17:27:33 +02:00
Lauri Tulmin 3188350f7f
Improve rabbitmq startup check (#4813) 2021-12-06 17:26:49 +02:00
Mateusz Rzeszutek 0dc410a2e3
Reorganize shared servlet code (intro to #4317) (#4785)
* Reorganize shared servlet code (intro to #4317)

* Fix dropwizard tests

* fix compile error
2021-12-06 13:49:55 +01:00
Trask Stalnaker ce4cef76f9
Clean up groovy assertions (#4805) 2021-12-05 23:23:58 -08:00
Trask Stalnaker 030d2e06d9
Fix resteasy-3.0 latest test dep versions (#4800) 2021-12-06 08:26:52 +02:00
Lauri Tulmin 7c387853a0
Fix flaky spring batch test (#4801) 2021-12-06 08:25:03 +02:00
Lauri Tulmin 61b0dd3698
Capture servlet request parameters (#4703)
* Capture servlet request parameters

* use concurrenthashmap for cache
2021-12-05 21:25:31 -08:00
Nikita Salnikov-Tarnovski 3e95762de9
limit jaxrs latest dependencies to exclude beta version 6 (#4795) 2021-12-05 13:38:05 +02:00
Nikita Salnikov-Tarnovski 99e82d70fa
Make gradle cache work when used from different locations (#4794) 2021-12-04 19:55:30 +02:00
Lauri Tulmin bbb571792a
Try to make tomcat async servlet exception test less flaky (#4772) 2021-12-02 08:31:30 -08:00
Osher Vaknin 32d5ffde2f
Added Http4SpanDecorator to apache-camel (#4650)
* Added Http4SpanDecorator to apache-camel

* Fixed CR

* After spotless
2021-12-02 08:24:02 -08:00
Nikita Salnikov-Tarnovski cd23a72767
Remove usage of rmic (#4751)
* Remove usage of rmic

* Remove obsolete test
2021-12-02 08:22:27 -08:00
Lauri Tulmin c1abc01b2f
Fix vertx-reactive latest dep test (#4782) 2021-12-02 12:25:23 +02:00
Trask Stalnaker a9980cd014
Rename autoconfigure modules (#4779) 2021-12-01 22:03:12 -08:00
Lauri Tulmin 313979a467
Fix http.url handing in vert.x 3 http client (#4739)
* Fix http.url handing in vert.x 3 http client

* correct version

* fix build

* if https test is disabled use http for non routable aadress test

* if https test is disabled use http for non routable aadress test

* use StringBuilder
2021-12-01 10:51:53 -08:00
Lauri Tulmin b6aaa35813
Increase timeout for hystrix tests (#4762)
* Increase timeout for hystrix tests

* remove unused import
2021-12-01 08:25:13 -08:00
Samudraneel Dasgupta 1ff51fb2a8
Develop/rmi instrumentation (#4764)
* Remove new top level client span check from UnicastRefInstrumentation.java

* Instrument Remote instead of RemoteServer
2021-12-01 08:24:13 -08:00
Lauri Tulmin 8dab1ef4a9
Fix tests for vaadin 22 (#4761) 2021-12-01 12:46:55 +02:00
Mateusz Rzeszutek f948ef8051
Use containerIpAddress instead of hard-coded 127.0.0.1 in rabbit tests (#4745)
* Use containerIpAddress instead of hard-coded 127.0.0.1 in rabbit tests

* Fix a situation where testcontainers returns 'localhost' instead of IP

* Fix a situation where testcontainers returns 'localhost' instead of IP

* Don't use the getContainerIpAddress() method, it'll be deprecated anyways
2021-11-30 15:25:23 -08:00