Commit Graph

5436 Commits

Author SHA1 Message Date
Anuraag Agrawal 6b13bcca63
Use X-Ray propagator for aws sdk 1.1 instrumentation (#2117)
* Use X-Ray propagator for aws sdk 1.1 instrumentation

* Cleaner

* Fix

* Copy over doc
2021-01-28 16:01:07 +09:00
jason plumb 782a646d89
Cache sql sanitized extraction (#2094) 2021-01-27 10:04:58 -08:00
Lauri Tulmin 9aaa5898af
Add mojarra and myfaces to supported frameworks (#2119)
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-27 12:51:13 +02:00
Lauri Tulmin 87ddfb8d0e
Add instrumentation for spring-ws (#2111)
* Add instrumentation for spring-ws

* add spring-ws to supported frameworks

* Add class loader optimization

* Remov unnecessary latestDepTestLibrary

* review fixes

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-27 17:24:59 +09:00
Mateusz Rzeszutek 20dadc1b6d
Replace two JavaCC lexers with a single JFlex one (#2113) 2021-01-26 14:03:11 -08:00
Lauri Tulmin 8d6ee17c05
Fix netty 4.1 tests (#2122) 2021-01-26 10:11:06 -08:00
Anuraag Agrawal cd1ad985d5
Update workflows to main (#2118) 2021-01-26 20:26:00 +09:00
Nikita Salnikov-Tarnovski 2d683d4289
No more gradle warnings (#2103) 2021-01-26 08:24:18 +02:00
John Watson df801dc2c3
Clean up some spring-boot auto-configuration to get rid of deprecations (#2115) 2021-01-25 22:00:54 -08:00
Mateusz Rzeszutek b78a38f859
Instrument spring-batch: item-level spans (#2047) 2021-01-25 21:38:13 -08:00
John Watson af5719b48c
Consolidate span suppression logic into the BaseTracer (#2106)
* Hide the context keys in the BaseTracer.
Provide the appropriate methods to get access.

* key needs to be static

* put all the span suppression logic in the BaseTracer

* the formatter is our friend

* rename method and add tests

* tests that work!
2021-01-26 09:21:29 +09:00
Nikita Salnikov-Tarnovski 6c76ebf99d
Add documentation for available instrumentation customisation options (#2112)
* Add documentation for available instrumentation customisation options

* Add link to existing example
2021-01-25 22:01:56 +02:00
Lauri Tulmin 59c1034d34
Fix warning on agent startup (#2109) 2021-01-25 17:03:41 +02:00
Sergei Malafeev bbcbeb51e3
MongoDB 4 driver instrumentation (#2046)
* MongoDB 4 driver instrumentation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* fix getting constructor

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* fix formatting

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* Update instrumentation/mongo/mongo-4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/mongo/v4/MongoClientInstrumentationModule.java

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

* Update settings.gradle

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

* Update instrumentation/mongo/mongo-4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/mongo/v4/MongoClientInstrumentationModule.java

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

* use mongo-4.0

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* use public api

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* use testImplementation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* use declaresField(named("commandListeners")) in typeMatcher

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* migrate to mongo-4.0-testing

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-25 15:55:03 +02:00
John Watson 588f8847ed
Hide the context keys in the BaseTracer. (#2105)
* Hide the context keys in the BaseTracer.
Provide the appropriate methods to get access.

* key needs to be static

* fix formatting

* more formatting, sigh

* remove an errant semicolon
2021-01-25 09:49:16 +02:00
Anuraag Agrawal 8b470bf378
Add Netty instrumentation handlers after matched handler rather than at end of pipeline. (#2100)
* Support latest webflux version.

* Add Netty instrumentation handlers after matched handler rather than at end of pipeline.

* Drift

* Fix

* Raise smoke tests timeout
2021-01-25 16:06:57 +09:00
Sergei Malafeev 54d00026be
JMS instrumentation: do not create spans if no messages are received (#2091)
* #1989 JMS instrumentation: do not create spans if no messages are received

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* remove the redundant else

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* remove JmsSessionInstrumentation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-25 08:42:32 +02:00
Lauri Tulmin 4652ce183d
Replace remaining usages of deprecated SemanticAttributes class (#2101) 2021-01-22 12:05:54 +02:00
Anuraag Agrawal 2eee121931
Match classloader when applying netty instrumentation. (#2099) 2021-01-22 12:05:20 +02:00
Nikita Salnikov-Tarnovski 746898da04
Update vendor distribution customization demo with new SDK and agent configurations (#2088)
* Update vendor distribution customization demo with new SDK and agent configurations

* Update doc
2021-01-22 15:51:10 +09:00
jason plumb 7122c4b2a5
Rename "normalize" to "sanitize" (#2087)
* rename SqlNormalizer to SqlSanitizer (more descriptive).

* rename normalize to sanitize.

* rename in comments and messages

* rename in variable to sanitized

* rename normalized -> sanitized in tests

* fixed broken tests

* rename variable.

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-22 15:49:24 +09:00
Anuraag Agrawal 78ef219f74
Remove queued_retry from repo (#2095) 2021-01-22 14:06:07 +09:00
Trask Stalnaker de8f885042
Add new approver @pavolloffay (#2083) 2021-01-20 17:29:37 -08:00
John Watson 4c1144ce78
Distinguish between the various servlet tracers for easier debugging. (#1979)
* Distinguish between the various servlet tracers for easier debugging.

* change to use the `common` suffix for that module

* Update instrumentation/servlet/servlet-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v2_2/Servlet2HttpServerTracer.java

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

* Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/Servlet3HttpServerTracer.java

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

* Update instrumentation/servlet/servlet-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/dispatcher/RequestDispatcherTracer.java

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

* Update instrumentation/servlet/servlet-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/http/HttpServletResponseTracer.java

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-01-20 16:33:13 +02:00
dependabot[bot] e44a3ac7f2
Bump nick-invision/retry from v2.2.0 to v2.4.0 (#1982)
Bumps [nick-invision/retry](https://github.com/nick-invision/retry) from v2.2.0 to v2.4.0.
- [Release notes](https://github.com/nick-invision/retry/releases)
- [Changelog](https://github.com/nick-invision/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-invision/retry/compare/v2.2.0...7c68161adf97a48beb850a595b8784ec57a98cbb)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-20 16:32:47 +02:00
Vladimir Šor a2cde4132d
Smoke tests declare shadowJar as an input to be rebuilt (#2085)
* Smoke tests declare shadowJar as an input to be rebuilt. Fix some gradle deprecation warnings.

* Try files as inputs.
2021-01-20 16:30:45 +02:00
Jakub Wach d609aa0647
fixing camel latest deps test failure (#2084) 2021-01-20 14:02:43 +02:00
Lauri Tulmin 9825ab0afa
Instrument jsf action calls (#2018) 2021-01-19 21:34:41 -08: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
Jakub Wach 422e1eb6f4
adding AWS SQS tests to Apache Camel instrumentation (#2061)
* adding AWS SQS tests to Apache Camel instrumentation

* code review changes

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

* code review changes

* code review changes

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

* code review - switched to localstack

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-01-20 10:30:45 +09:00
jason plumb 9336bf0ecb
updates the examples to use latest otel (#2081) 2021-01-19 10:13:43 -08:00
Lauri Tulmin cdfe8e0afb
Fix integration with jersey-client 2.30 (#2071)
* Fix integration with jetty-client 2.30

* make class final and add private constructor

* Update instrumentation/jaxrs-client/jaxrs-client-2.0/jaxrs-client-2.0-common/javaagent/jaxrs-client-2.0-common-javaagent.gradle

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-19 14:02:18 +02: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
Lauri Tulmin 7c3b183294
Move netty4.1 exception handling to an other method (#2070) 2021-01-18 22:14:49 -08:00
Mateusz Rzeszutek 660f0e5225
Remove testing-common dependency on guava (#2062)
* Remove testing-common dependency on guava

* Use nano time

* Add guava dep to opentelemetry-api-metrics
2021-01-19 12:07:27 +09:00
Anuraag Agrawal 999f3112a4
Disable shadowPublish for instrumentation projects (#2068) 2021-01-18 15:29:25 +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
Jakub Wach c16967db7d
fixing Apache Camel instrumentation propagation order (#2052) 2021-01-15 15:03:53 +09:00
Anuraag Agrawal 72a4b9a891
Remove setGlobalPropagators calls from lambda tests. (#2057) 2021-01-15 14:50:31 +09:00
Anuraag Agrawal cfbfc5623d
Explicitly use AwsXRayPropagator in lambda sqs instrumentation. (#2056) 2021-01-15 14:38:23 +09:00
John Watson e6d9840726
tweak the output of the logging exporter: (#2054)
* one span per line
* delineate the span name from the rest of the data
2021-01-15 13:00:26 +09:00
jason plumb 7957293038
update auto-service from rc3 to rc7 (a 3 year difference!) (#2053) 2021-01-15 08:52:49 +09:00
Lauri Tulmin 2a4e07dce1
Netty: add exception to span (#2027) 2021-01-14 09:36:14 -08:00
Mateusz Rzeszutek 99bcf7dcf2
Instrument spring-batch: partitioning (#2034) 2021-01-14 09:33:59 -08:00
Pavol Loffay 8addc67eba
Make global ignore matchers configurable (#2035) 2021-01-14 09:33:21 -08:00
Lauri Tulmin 11ad12289b
Jetty server span handling (#2029) 2021-01-14 09:31:57 -08:00
Jakub Wach b8ef938b84
camel instrumentation to set client context property (#2042) 2021-01-14 16:00:50 +01:00
Pavol Loffay 1070996653
Make factory method for netty 4.0 attribute keys public (#1995)
* Make factory method for netty 4.0 attribute keys public

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Add comment

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2021-01-14 11:44:51 +01:00
Anuraag Agrawal 47a4061078
Update smoke tests to SDK 0.14.1 (#2043) 2021-01-13 22:22:30 -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