Mateusz Rzeszutek
fff6eb7004
Add HTTP attributes support for AWS lambda function wrapper ( #1780 )
2020-12-03 18:20:04 +02:00
Trask Stalnaker
a04a0586a5
Fix mongo-common testLatestDeps ( #1818 )
2020-12-01 20:18:17 -08:00
Trask Stalnaker
a2770c311e
Don't use ConfigUtils outside of AgentTestRunner tests ( #1796 )
...
* NetPeerUtilsTest
* RedisCommandNormalizerTest
* InstrumentationModuleTest
* HttpClientTracerTest
* Normalize test config properties
* Create ConfigBuilder in instrumentation-api
* Keep config properties compatible with SDK
2020-12-01 16:52:08 -08:00
Trask Stalnaker
0bd85d7b7f
Pass around context more instead of span (HttpServerTracer) ( #1810 )
2020-12-01 14:49:01 -08:00
Trask Stalnaker
01b4345742
Move MongoClientTracerTest to same module as MongoClientTracer ( #1804 )
...
* Move MongoClientTracerTest to mongo-common
* Remove multi-version support
* Use library dependency
2020-12-01 14:45:45 -08:00
Trask Stalnaker
c07da390c0
Update WithSpan instrumentation to prevent multiple SERVER and CLIENT spans ( #1801 )
...
* Make WithSpan instrumentation SERVER aware
* Also CLIENT aware
* Spotless
* Don't put invalid span into scope
* Return Context from startSpan
2020-12-01 08:05:34 +02:00
Trask Stalnaker
ca76c80820
Hardcode expected values in tests ( #1803 )
...
* DEFAULT_SPAN_NAME
* TEMP_DESTINATION_NAME
* LoggingContextConstants
* Remove unnecessary dependencies
* Hardcode expected normalized queries in tests
* Spotless
2020-11-30 09:16:59 +02:00
Trask Stalnaker
e92bdb46f8
Don't dynamically change config mid-Kafka test ( #1797 )
...
* Don't dynamically change config mid-Kafka test
* Codenarc
* Spotless
2020-11-30 09:14:11 +02:00
Trask Stalnaker
0c8d7fe73f
Miscellaneous cleanup ( #1805 )
...
* Remove outdated doc
* Remove unnecessary dependencies
* Formatting
* Rename TRACER to tracer
* Move WrappedFuture to top-level class
* Add missing shadow config
* Use simpler type
* Use simpler base class
2020-11-29 21:05:53 -08:00
Trask Stalnaker
a3d11c0262
Rename auto annotations to ext annotations ( #1799 )
2020-11-29 21:04:55 -08:00
Trask Stalnaker
61d0af0bd5
Format scala files ( #1800 )
2020-11-29 21:04:34 -08:00
Trask Stalnaker
26f254b10d
Create javaagent dirs for all instrumentations, part 2 ( #1794 )
2020-11-28 22:26:49 -08:00
Trask Stalnaker
41bd489a77
Format groovy files ( #1793 )
2020-11-28 21:22:14 -08:00
Trask Stalnaker
5f263644da
Create javaagent dirs for all instrumentations ( #1668 )
...
* Create javaagent dirs for all instrumentation
* Add note about kotlin coroutine library instrumentation
* Feedback
2020-11-28 21:04:16 -08:00
Trask Stalnaker
f2bb2f3e30
Split out methods and opentelemetry-annotations modules ( #1787 )
2020-11-28 12:25:09 -08:00
Trask Stalnaker
083651acef
Update more config property names ( #1786 )
2020-11-28 10:50:51 -08:00
Trask Stalnaker
b683c2ff05
Convert the last two decorators to tracers and delete BaseDecorator ( #1785 )
2020-11-28 10:50:41 -08:00
Trask Stalnaker
66b4088450
Remove servlet.context span attribute ( #1783 )
2020-11-28 10:50:26 -08:00
Jakub Wach
2689653ee7
open AWS lambda wrapper for extensions ( #1777 )
2020-11-27 11:12:52 +09:00
Mateusz Rzeszutek
9a64a628ea
Make instrumentations non final ( #1752 )
...
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-26 11:22:25 -08:00
Anuraag Agrawal
31f1a73d59
Upgrade build plugin versions. ( #1774 )
2020-11-26 18:16:14 +09:00
Anuraag Agrawal
412d9991be
Inject context for aws sdk 1.11 requests too. ( #1771 )
2020-11-26 15:25:37 +09:00
Trask Stalnaker
7a6613ca6c
Simplify netty-4.1 AttributeKeys ( #1757 )
...
* Simplify netty-4.1 AttributeKeys
* Suggestions
* Shorten names
* Make same naming changes for netty-4.0
* Update instrumentation/netty/netty-4.0/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_0/AttributeKeys.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2020-11-26 11:49:52 +09:00
Trask Stalnaker
325238f128
Rename otel.trace.classes.excludes to otel.javaagent.exclude-classes ( #1747 )
...
* Rename otel.trace.classes.excludes
* Spotless
2020-11-25 16:53:49 +02:00
Mateusz Rzeszutek
46a96c09f7
Remove unnecessary additionalHelperClasses() from elasticsearch-transport ( #1766 )
2020-11-25 15:00:19 +02:00
Anuraag Agrawal
822be11dbc
Use Kotlin context element in agent instrumentation ( #1618 )
...
* Use SDK helper
* Revert unintended.
2020-11-25 18:45:00 +09:00
Anuraag Agrawal
9802539b07
Add an AWS SDK type instrumentation on an 'entry point' type of class… ( #1759 )
...
* Add an AWS SDK type instrumentation on an 'entry point' type of class to ensure helper resources are injected before clients are made.
* Update instrumentation/aws-sdk/aws-sdk-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/awssdk/v2_2/AwsSdkInitializationInstrumentation.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-25 18:21:06 +09:00
Anuraag Agrawal
737f78acfa
Inject context into AWS SDK 2.2 HTTP request from interceptor. ( #1763 )
2020-11-25 17:37:16 +09:00
Mateusz Rzeszutek
50c8ab499d
Remove no longer needed helperClassNames() methods ( #1755 )
2020-11-24 20:50:32 -08:00
Trask Stalnaker
a5a36bd203
Use namespace for attributes put into user classes ( #1739 )
...
* Use namespace for attributes put into user classes
* Add dependency to remove duplication
2020-11-24 12:07:10 -08:00
Trask Stalnaker
889bce0976
Create jaxrs-client-2.0-common module ( #1746 )
2020-11-24 11:49:05 -08:00
Mateusz Rzeszutek
13c405c174
Make muzzle generate helperClassNames() method ( #1714 )
2020-11-24 10:07:22 -08:00
Mateusz Rzeszutek
45646ff367
Rename TypeInstrumentation#classLoaderMatcher() to classLoaderOptimization() ( #1741 )
...
* Rename TypeInstrumentation#classLoaderMatcher() to classLoaderOptimization()
* Removed no longer needed comments & improved JavaDoc
* Improve TypeInstrumentation Javadoc
2020-11-24 14:27:58 +02:00
Jakub Wach
7e8d549347
AWS lambda tracing - http propagation for non-stream handler / wrapper ( #1650 )
...
* AWS lambda tracing - http propagation for non-stream handler / wrapper
* code review
* null-handling improvements
* rebase to newest master
* code review
* less dependencies, lower coupling
2020-11-24 12:42:05 +01:00
Trask Stalnaker
0c5c4caaa4
Rename java-concurrent and java-classloader instrumentation modules ( #1733 )
...
* Rename java-concurrent instrumentation to executors
* Rename java-classloader to classloaders
2020-11-23 17:49:10 -08:00
Trask Stalnaker
5d0506e5e8
Convert rxjava-1.0 into library ( #1732 )
2020-11-23 14:51:55 -08:00
Trask Stalnaker
d2f064dcd4
Add static keyword to make groovy inner classes nested ( #1734 )
...
* Add static keyword to make groovy inner classes nested
* Too much
* A bit less
* Spotless
2020-11-23 15:43:42 +02:00
Trask Stalnaker
79f76c78ad
Move java files to java source folder and groovy files to groovy source folder ( #1735 )
...
* Move java files to java source folder
* Move groovy files to groovy source folder
* Too much
* Move another one back
* Codenarc
* Move test resource to where test is
* Spotless
2020-11-23 15:42:04 +02:00
Trask Stalnaker
308a8f9b0f
Consistent equals implementations ( #1736 )
...
* Consistent equals implementations
* Use direct equals where previous behavior
2020-11-23 15:41:31 +02:00
Trask Stalnaker
081e142718
Rename grizzly-client instrumentation ( #1709 )
...
* Rename grizzly-client instrumentation
2020-11-21 10:51:45 -08:00
John Watson
e9821e9cd1
Directly port the java-runtime-metrics module over from otel-java. ( #1720 )
...
* Directly port the java-runtime-metrics module over from otel-java.
* java 8 cleanups
* Make consistent with oshi module
* Bump mockito and assertj versions
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-21 10:51:03 -08:00
Sergei Malafeev
f0feefc4b2
update SystemMetrics according to spec update ( #1705 )
2020-11-20 09:54:31 -08:00
Trask Stalnaker
238e2ddca5
Rename propagation modules ( #1706 )
...
* Rename propagation modules
* Fix test
2020-11-20 15:05:30 +02:00
Trask Stalnaker
55a6a858f7
Rename opentelemetry-api instrumentation module ( #1707 )
2020-11-20 15:01:53 +02:00
Trask Stalnaker
c3e1a321d2
Fix MongoDB testLatestDeps ( #1703 )
...
* Fix MongoDB testLatestDeps
* Codenarc
2020-11-20 09:34:25 +02:00
Anuraag Agrawal
7bfb6b6dbd
Update to SDK 0.11.0 ( #1690 )
2020-11-19 19:37:49 -08:00
Jeff Yemin
d093a561b9
Report only known collection names in MongoClientTracer ( #1625 ) ( #1662 )
...
* Report only known collection names in MongoClientTracer (#1625 )
* Use allow-list of commands that are known to use collection name as the value of the command
* Special-case getMore command, which uses a different field for the collection name
* Add create, drop, and createIndexes to list of commands with collection name as their values
2020-11-19 16:26:27 -08:00
Jeff Yemin
65a6293714
Improve command scrubber in MongoClientTracer ( #1587 ) ( #1663 )
...
* Improve command scrubber in MongoClientTracer (#1587 )
* Don't scrub the command field value at all if it's a string
* Use JsonWriter to improve efficiency of the scrubber
* If available, user JsonWriter.Builder.maxLength to limit size of the query string
2020-11-19 13:21:29 -08:00
Trask Stalnaker
e092e87d6b
Remove disabled by default servlet instrumentation ( #1684 )
2020-11-19 11:22:02 -08:00
Trask Stalnaker
d183692699
Enable checkstyle type var naming rule ( #1666 )
2020-11-19 11:00:31 -08:00
Vladimir Šor
a4e6d9322d
Fix dependencies for testLatestDeps to work. ( #1683 )
2020-11-19 10:59:22 -08:00
Trask Stalnaker
0eede40d06
Improve consistency of struts with existing tests ( #1665 )
...
* Improve consistency of struts with existing tests
* spotless
2020-11-19 19:19:39 +02:00
Trask Stalnaker
80b068b459
Instrument java.servlet.Filter directly ( #1606 )
...
* Instrument filter directly
* Remove some additional ignores
* Fix OncePerRequestFilter not being instrumented itself
2020-11-18 19:59:28 -08:00
Trask Stalnaker
cecdfc2cd0
Update instrumentation names to be consistent ( #1671 )
...
* Update instrumentation names to be consistent
* Remove amqp from rabbitmq package name
2020-11-18 19:53:31 -08:00
Nikita Salnikov-Tarnovski
3c195f3273
Limit latest test version for Apache HttpClient 2.0 ( #1676 )
2020-11-18 14:57:58 +02:00
Trask Stalnaker
2e51003900
Enable checkstyle overload method ordering rule for Google Java Style ( #1656 )
2020-11-17 14:41:14 -08:00
Mateusz Rzeszutek
cea28356c6
Remove some no longer needed muzzleCheck() methods ( #1660 )
...
* Remove some no longer needed muzzleCheck() methods
And add muzzle references to log4j 2.13.2 instrumentation
2020-11-17 14:40:33 -08:00
Nikita Salnikov-Tarnovski
a446d7ea22
Prevent bootstrap classes from being included into agent classloader ( #1646 )
2020-11-17 13:31:41 -08:00
Mateusz Rzeszutek
1a23ac3027
Standardize instrumentation names in InstrumentationModules ( #1648 )
...
* Standardize instrumentation names in InstrumentationModules
* rename gradle modules:
* vertx-3.0 to vertx-web-3.0
* spark-web-framework-2.3 to spark-2.3
* add JavaDoc describing the naming rules to InstrumentationModule
2020-11-17 13:30:28 -08:00
Vladimir Šor
3dbab606c7
Autoinstrumentation for Struts2 actions ( #1628 )
...
* Struts PoC
* Instrument ActionInvocation to get correct timings. Refactor to use latest o11y SDK and API.
* Fix license header.
* Revert accidental Gradle configuration change.
* First passing test for struts instrumentation.
* Cleanup
* Convert Struts test to HttpServerTest.
* Fix Spotless formatting issues.
* Manage scope properly in Struts advice. Use existing handlerSpan method to assert struts handler span detection. Make Struts controller behave similarly with other HttpServerTest implementations.
* Rename method.
* Update server span name when path params are used.
* Struts PoC
* Instrument ActionInvocation to get correct timings. Refactor to use latest o11y SDK and API.
* Fix license header.
* Revert accidental Gradle configuration change.
* First passing test for struts instrumentation.
* Cleanup
* Convert Struts test to HttpServerTest.
* Fix Spotless formatting issues.
* Manage scope properly in Struts advice. Use existing handlerSpan method to assert struts handler span detection. Make Struts controller behave similarly with other HttpServerTest implementations.
* Rename method.
* Update server span name when path params are used.
* Account for GStrings in asserted values.
* Use Groovy friendly Assert.
* Giving up on getting to work user-friendly assertion messages. Moving controller to a package, as ognl inside struts can't handle classes with no packagaes.
* Make codeNarc happy.
* Make spotless happy.
* Rename struts-2 to struts-2.3. Move autoinstrumentation to javaagent sub-folder to accommodate for library.
* Use tracer() instead of TRACER and other minor tweaks.
* Nicer way for asserting values returned from a method call.
* Fix formatting.
2020-11-17 20:45:49 +02:00
Trask Stalnaker
b35c0b28cc
Java 7 and CircleCI cleanup ( #1654 )
...
* Java 7 and CircleCI cleanup
* Bring back and increment version instead
2020-11-17 10:36:23 +02:00
Trask Stalnaker
6d5ec329d6
Enable checkstyle for google style guide ( #1641 )
2020-11-16 18:46:59 -08:00
Nikita Salnikov-Tarnovski
f0a4049b52
Add support for Reactor Netty's HttpClient ( #1601 )
...
* Add support for Reactor Netty's HttpClient
* Format
* Update instrumentation/reactor-netty-0.9/src/main/java/io/opentelemetry/javaagent/instrumentation/reactor_netty/ReactorHttpClientInstrumentation.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Convert to InstrumentationModule
* Cleanup
* Rename module
* Polish
* Format
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2020-11-16 12:07:51 +02:00
Anuraag Agrawal
d435da4638
Update to Gradle 6.7 and use new toolchains feature for testing on Ja… ( #1627 )
...
* Update to Gradle 6.7 and use new toolchains feature for testing on Java versions.
* Update docs
* Add back sum
* Use GitHub test JDK for toolchain.
* Use maxJavaVersionForTests for default test version when set.
* Fix RMI
* Fix configs
* Go back to rule
* Extract variable for default Java version.
2020-11-16 10:29:36 +02:00
Trask Stalnaker
55530ee03e
Better muzzle for external-annotations module ( #1624 )
2020-11-12 21:11:26 -08:00
Mateusz Rzeszutek
1765839d01
Simplify JDBC span names ( #1533 )
2020-11-10 13:34:54 -08:00
Nikita Salnikov-Tarnovski
76f6b8aa49
Netty bug ( #1604 )
...
* Netty connection span leak
* Demonstrating Netty bug
* Format
2020-11-10 14:44:27 +02:00
Mateusz Rzeszutek
9d2db827b9
Refactor Instrumenters into InstrumentationModules - R, S, T, V ( #1576 )
2020-11-09 18:48:52 -08:00
Trask Stalnaker
087a9cbc4e
Fix dropwizard instrumentation ( #1607 )
...
* Fix dropwizard instrumentation
* Fix others too
2020-11-09 18:46:26 -08:00
Mateusz Rzeszutek
7f36dd1617
Refactor Instrumenters into InstrumentationModules - N, O, P ( #1575 )
2020-11-09 14:42:16 -08:00
Mateusz Rzeszutek
ef58ec1770
Refactor Instrumenters into InstrumentationModules - K, L, M ( #1563 )
2020-11-09 14:41:55 -08:00
Mateusz Rzeszutek
0e83a5b56d
Refactor Instrumenters into InstrumentationModules - J ( #1562 )
2020-11-09 14:41:37 -08:00
Mateusz Rzeszutek
aa3ba8d165
Refactor Instrumenters into InstrumentationModules - D, E, F, G, H ( #1557 )
2020-11-09 14:41:12 -08:00
Mateusz Rzeszutek
d307ffc532
Refactor Instrumenters into InstrumentationModules - A, B, C ( #1556 )
...
* Refactor Instrumenters into InstrumentationModules - A, B, C
* Fixed some modules' names to match library/instrumentation gradle module
* Fix couchbase 2.6 muzzle
2020-11-09 15:42:41 +01:00
Jakub Wach
09fda6e52a
AWS lambda instrumentation - HTTP context propagation ( #1536 )
...
* AWS lambda instrumentation - HTTP context propagation
* code review, added tests for stream wrapper
* code review - recpects XRay propagation, tests added
* rebase to master
2020-11-09 15:59:33 +02:00
Trask Stalnaker
45d1a0811a
Publish lettuce-common ( #1589 )
2020-11-09 15:04:25 +02:00
Trask Stalnaker
8ee2533c96
Fix ClassNotFoundException on Wildfly ( #1593 )
2020-11-09 13:59:36 +09:00
Trask Stalnaker
71f91877ab
Fix muzzle and add missing helper classes ( #1585 )
...
* Fix muzzle
* Fix jdbc instrumentation
* Fix jms instrumentation
* Fix couchbase instrumentation
* Fix servlet instrumentation
2020-11-08 13:54:00 -08:00
Anuraag Agrawal
3d21c26632
Update to SDK 0.10.0 ( #1564 )
2020-11-05 13:17:47 -08:00
Sergei Malafeev
70dcb93121
Activate SystemMetrics ( #1530 )
2020-11-05 13:02:01 -08:00
Anuraag Agrawal
e1c7baab42
Upgrade to latest SDK snapshot ( #1549 )
2020-11-05 17:45:59 +09:00
Mateusz Rzeszutek
8629edd346
Run muzzle once per instrumented library - introducing InstrumentationModule ( #1528 )
...
* Run muzzle once per instrumented library - introducing InstrumentationModule
* spotless
* Fix muzzle
* Apply code review comments
2020-11-04 15:39:12 +01:00
Jakub Wach
81101ed463
fix master build fail due to latestDepTest ( #1554 )
2020-11-04 16:21:29 +02:00
Jakub Wach
049358e81b
apache camel 2.20.x instrumentation ( #1397 )
...
* apache camel 2.20.x instrumentation
* removed instrumentation advice from helper classes
* code review #1
* code review #2 / experimental server name update
* code review changes / new tests, improved direct, new license header
* rebase changes
* code review changes
* code review changes, REST tests added
* changes after rebase to newest master
* code review changes
* code review
* code review
* rebase to master
2020-11-03 11:42:33 +02:00
Anuraag Agrawal
d3b60a5e33
Rename TRACER to tracer() ( #1540 )
2020-11-02 20:49:51 -08:00
Anuraag Agrawal
5d2cb459df
Update to latest SDK snapshot ( #1539 )
2020-11-02 16:07:53 +09:00
Anuraag Agrawal
c6eee70660
Update to latest snapshot. ( #1524 )
2020-10-29 18:54:09 -07:00
Mateusz Rzeszutek
e89942d430
Standardize DB query normalizer property names ( #1509 )
...
* Standardize DB query normalizer property names
And add normalizer configuration for Redis, Couchbase, Cassandra and Geode
* apply code review comments
2020-10-29 16:20:33 +02:00
Anuraag Agrawal
dfda406fee
Migrates to using a context when span is started ( #1525 )
...
* Return Context when starting span to preserve baggage.
Co-authored-by: Marcin Grzejszczak <marcin.grzejszczak@gmail.com>
* Use bridge
Co-authored-by: Marcin Grzejszczak <marcin.grzejszczak@gmail.com>
2020-10-29 13:50:54 +02:00
Nikita Salnikov-Tarnovski
f3559de4a3
Cap latest supported version for Spring Data JPA ( #1522 )
2020-10-29 10:24:27 +02:00
Anuraag Agrawal
fd03a4b1e1
Replace ContextStore for context bridge with a custom context storage… ( #1493 )
...
* Replace ContextStore for context bridge with a custom context storage provider.
* Handle context mapping at storage layer.
* Cleanup
* Add interop test
* Small comment
* No threads
* Groovy
2020-10-29 15:42:50 +09:00
Nikita Salnikov-Tarnovski
4959b7eb34
Fix property name for latest Spring MVC ( #1516 )
...
Cap latest supported version for Spring Data JPA
2020-10-28 22:28:19 +02:00
Mateusz Rzeszutek
9bb13bd8f0
Fix Redisson latestDep tests ( #1507 )
...
* Fix Redisson latestDep tests
* spotless
* Add comment
2020-10-28 16:18:13 +01:00
Trask Stalnaker
58c78ec7d0
Fix test latest deps build ( #1503 )
2020-10-27 15:48:58 -07:00
Mateusz Rzeszutek
35dc9071ef
Log normalised full statement in Redis instrumentations ( #1441 )
...
* Log normalised full statement in Redis instrumentations (jedis, lettuce, redisson)
2020-10-27 14:29:47 -07:00
Trask Stalnaker
f046e598c6
Add context root to the front of the route in the span name ( #1418 )
...
* Add application root to span name
* Reduce duplicate context lookups
* Use servlet path as route
* Test against jetty instrumentation
* Add JAX-RS context path test
* Fix JAX-RS 1.0 span names
2020-10-27 14:21:10 -07:00
Mateusz Rzeszutek
d3c39228c6
Couchbase instrumentation should store normalized queries as db.statement ( #1462 )
...
* Couchbase instrumentation should store normalized queries as db.statement
* Fix inaccurate version comments
2020-10-27 18:15:27 +01:00
Sergei Malafeev
d2813c838d
Add system metrics ( #1309 )
...
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-10-27 08:48:36 -07:00
Nikita Salnikov-Tarnovski
54a85f7501
More test fixes ( #1495 )
2020-10-27 16:56:39 +02:00
Anuraag Agrawal
1b91a7c279
Fix build breakage due to post-merge conflict. ( #1496 )
2020-10-27 14:12:49 +02:00
Jakub Wach
3a81c52d2b
Wrappers for AWS lambda tracing ( #1471 )
...
* wrappers for AWS lambda instrumentation
* code review changes
* code review changes
2020-10-27 09:55:31 +02:00
Trask Stalnaker
5bed579286
Apply spotless ( #1492 )
2020-10-27 09:38:32 +02:00
Bogdan Drutu
21a1c65128
Remove inner class imports; avoid future imports by disabling in editorconfig ( #1489 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-26 19:30:51 -07:00
Anuraag Agrawal
a2dccf2316
Update to latest SDK snapshot. ( #1479 )
2020-10-26 19:29:46 -07:00
Mateusz Rzeszutek
01f40867ce
Apache Geode instrumentation should store normalized queries as db.statement ( #1455 )
...
* Apache Geode instrumentation should store normalized queries as db.statement
* spotless
2020-10-26 14:01:43 +02:00
Nikita Salnikov-Tarnovski
3db872e50f
Fix net.peer.* setting for Cassandra 4.+ ( #1482 )
2020-10-26 13:49:25 +02:00
Trask Stalnaker
7244dbf188
Remove unnecessary overrides ( #1477 )
2020-10-25 21:46:14 -07:00
Trask Stalnaker
3565775b00
Format groovy ( #1475 )
...
* Apply Intellij format to groovy
* spotless
2020-10-26 11:47:12 +09:00
Nikita Salnikov-Tarnovski
d033ed594f
Review our usage of gradle cache ( #1474 )
...
* Experiments
* Experiments
* Experiments
* Update nightly.yaml
Trying to populate remote cache
* Experiments
* Better cache and snapshot publishing in GHA
* Read-only remote cache for PRs
2020-10-25 22:06:21 +02:00
Anuraag Agrawal
f6ad05b8e3
Update to latest SDK snapshot ( #1384 )
...
* Update to latest SDK snapshot
* Use published snapshot
* Fixes
* Cleans
* spotless
* Most
* Clean
* Merge
* Temporarily remove context interop
* WIP
* Prepare for intercepting propagated span
* Bump SDK
* IDE updates
* Lots
* compileJava
* Done?
* bar
* Spot
* drugs
* Groovy--
* green for me
* Spot
* Remove grpc import
* Scrub
2020-10-25 15:14:32 +09:00
Nikita Salnikov-Tarnovski
b683a6c417
Temporary fix for broken nightly build ( #1454 )
2020-10-22 21:15:47 +03:00
Mateusz Rzeszutek
50990a7c17
Cassandra instrumentations should store normalised CQL queries as db.statement ( #1427 )
...
* Move `DbSystem` to package `...instrumentation.api.db`
* Move `SqlNormalizer` to `javaagent-api` package ...api.db.normalizer
* Refactor Cassandra tests so that they use testcontainers (and run on Java 11)
* Implement Cassandra statement normalization
2020-10-22 17:56:06 +02:00
Anuraag Agrawal
26e4200030
Remove mistaken inline = false from Armeria instrumentation ( #1451 )
2020-10-22 17:46:39 +09:00
Nikita Salnikov-Tarnovski
6438d1d8f9
Proper scope handling for Resteasy instrumentations. ( #1442 )
...
* Proper scope handling for Resteasy instrumentations.
* Format
2020-10-22 10:09:46 +03:00
Ago Allikmaa
6875faa3a0
Fix HttpURLConnection instrumentation on WebLogic ( #1439 )
2020-10-22 09:48:53 +03:00
Vadim Shaigorodskiy
9e8d663ba4
Remove apache httpclient version ( #1446 )
...
* Remove version from `apache-httpclient` instrumentation
Fixes : #1260
* Remove version from all instrumentation names and add instrumentation name to `spring-web`
Fixes : #1260
2020-10-22 14:22:44 +09:00
Nikita Salnikov-Tarnovski
7d77b2dc37
Prefer mavenCentral over jcenter ( #1440 )
...
* Prefer mavenCentral over jcenter
* Skip broken version for muzzle
2020-10-21 18:59:29 +03:00
Anuraag Agrawal
a6e0e27ad4
Remove usage of Contexts from grpc instrumentation. ( #1426 )
...
* Fix grpc instrumentation cannot be applied due to muzzle error and add smoke test.
* Add workflow for building smoke test image
* Revert debug logging
* Java versions
2020-10-21 09:58:45 +09:00
Mateusz Rzeszutek
f077b23c9f
Lettuce 5.1 instrumentation should log normalised commands as db.statement ( #1405 )
2020-10-20 14:57:23 -07:00
Trask Stalnaker
8954823b90
Fix span name populated by JAX-RS instrumentation ( #1425 )
...
* Fix span name populated by jaxrs instrumentation
* fix
2020-10-20 15:34:10 +03:00
Ioannis Mavroukakis
191370657a
capture mongodb database name as mongo-db.name attribute instead of client description ( #1419 )
2020-10-19 10:52:50 -07:00
Ioannis Mavroukakis
df2b6638fe
ipv6 support for modified-URL-like ( #1403 )
...
* ipv6 support for modified-URL-like
* add a "pure" v6 address to the tests
* wrap the regex pattern
* individually comment the regex parts
2020-10-19 17:30:50 +03:00
Trask Stalnaker
bc507ced12
Fix play span name ( #1416 )
2020-10-19 17:23:30 +03:00
Jamal Fanaian
69ea2f7491
Add operation and collection attributes for MongoDB spans ( #1398 )
...
* Add mongodb attributes for operation and collection
* Switch to using SemanticAttributes.MONGODB_COLLECTION
* Remove unused imports
* Fix import order
* Fix formatting
* Update tests to keep more readable closure syntax
* Run spotlessApply
2020-10-19 09:20:46 +03:00
Trask Stalnaker
57301e3fe7
Rename "integration" to "instrumentation" ( #1412 )
...
* Rename integration to instrumentation
* Revert doc changes, need to wait for release
* spotless
2020-10-19 14:36:30 +09:00
Nikita Salnikov-Tarnovski
29ec067ef5
Actually use requested number of versions to test muzzle ( #1396 )
2020-10-16 11:16:04 -07:00
Pavol Loffay
f29763d6ef
Add SPI to configure additional bootstrap package prefixes ( #1380 )
...
This feature is useful when a large set of custom instrumentations is
using common classes from a custom package.
2020-10-16 10:27:14 -07:00
Nikita Salnikov-Tarnovski
15e0b2ff32
Run build without warnings ( #1387 )
2020-10-15 16:10:22 -07:00
Anuraag Agrawal
30e75c6d6d
Add server interceptor to end in javaagent because they are run in reverse order. ( #1383 )
2020-10-14 16:50:14 -07:00
Trask Stalnaker
7ecc9bb37b
Rename "auto" to "javaagent" in modules ( #1370 )
2020-10-13 12:32:13 -07:00
Nikita Salnikov-Tarnovski
f23ad29187
Messaging convention reviewed ( #1297 )
...
* Kafka reviewed
* Kafka Streams reviewed
* JMS reviewed
* RabbitMQ reviewed
* Format
* Format
* Polish
* Add comments
* Update parents as per spec proposal
* Cleanup
* Remove Operation enum
* muzzle
* Fix build
* Polish
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-13 09:16:58 +03:00
Trask Stalnaker
6218f6a998
Fix running tests locally ( #1365 )
2020-10-11 22:52:16 -07:00
Trask Stalnaker
c739f7db6b
Remove unnecessary scopes ( #1351 )
2020-10-11 14:31:37 -07:00
Trask Stalnaker
1b51d4a6b1
Rename packages ( #1367 )
2020-10-11 13:54:35 -07:00
John Bley
b34fd49682
Instrument Netty addTask to ensure complete coverage of async Runnables ( #1348 )
...
Newer versions of Netty introduce variants like execute(Runnable, boolean) which
aren't covered by the core execute(Runnable) instrumentation. Fortunately they all
flow through to addTask(Runnable), which allows us to carry the context through properly.
2020-10-09 11:43:33 -07:00
Trask Stalnaker
9605789726
Propagate full context ( #1350 )
...
* Propagate full context
* spotless
2020-10-09 12:58:42 +03:00
Ioannis Mavroukakis
020d445dd3
spotbugs upgrade and fixes for JMS1 tests ( #1346 )
...
* spotless upgrade and fixes for JMS1 tests
* includes missed bugs in KotlinCoroutineTests
* create spotBugs XML reports on CI, HTML locally
* use updatedCodeNarc rules with lowercase tolerance
* remove if and move bool to each property
* allow spotBugs gradle plugin to upgrade the spotbugs tool
* revert to original test
* exclude all kotlin source from spotbugs
* remove default location for spotBugs report
* do not pass null to a Span's attribute
2020-10-09 11:19:00 +03:00
Trask Stalnaker
4624584979
Update spotless config ( #1349 )
...
* Apply spotless to buildSrc
* Apply spotless
* Update spotless version
* Apply spotless
* Another spotless update
* Apply spotless
2020-10-09 07:21:28 +03:00
Anuraag Agrawal
bb26c17733
Don't mount context in gRPC instrumentation since gRPC automatically … ( #1343 )
...
* Don't mount context in gRPC instrumentation since gRPC automatically does it, better.
* Small cleanup
* Try different approach to keep out of bootstrap
2020-10-09 11:52:20 +09:00
Mateusz Rzeszutek
ce4414e9dd
Logging instrumentation: always log sampled flag value ( #1347 )
2020-10-08 10:58:57 -07:00
Mateusz Rzeszutek
409530629f
Refactor all tests that use Config so that they don't fail locally ( #1310 )
...
* Refactor all tests that use Config so that they don't fail locally
* Use ConfigUtils in tests for all config-related things
* Fix spotless and codenarc
* Fix spotless
* PR comments: remove unnecessary config
2020-10-08 20:01:31 +03:00
Anuraag Agrawal
525b3f729d
Split out gRPC library instrumentation. ( #1329 )
...
* Split out gRPC library instrumentation.
* Simpler status
2020-10-07 17:57:28 +09:00
Ioannis Mavroukakis
9523f9ffe6
fix and/or ignore spotbugs errors ( #1325 )
2020-10-06 19:39:17 -07:00
Anuraag Agrawal
46b04087ee
Allow parenting with the AWS Lambda span itself. ( #1323 )
...
* Allow parenting with the AWS Lambda span itself.
* Merge
* Fix propagator only set in library
2020-10-07 09:42:34 +09:00
Pavol Loffay
3952290511
Sort instrumentations before adding them to ByteBuddy ( #1326 )
...
* Control order of adding instrumentations to ByteBuddy
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-06 11:14:13 -07:00
Anuraag Agrawal
5bba5d8482
Update to latest snapshot ( #1331 )
...
* Update to latest snapshot
* Update to latest snapshot
* instrumentation-api
* spotless
2020-10-06 17:47:41 +09:00
Nikita Salnikov-Tarnovski
aa79224f32
Ported JMS 1.x tests to testcontainers ( #1327 )
...
* Ported JMS 1.x tests to testcontainers
* Polish
* Debug
* Fix test
* spotless
* Remove otel.trace.classes.exclude properties
* codenarc
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-06 09:05:51 +03:00
Nikita Salnikov-Tarnovski
8510744f20
Run muzzle during PR ( #1324 )
...
* Run muzzle as GitHub Action
* Parallelize muzzle
* Parallelize muzzle
* Parallelize muzzle
* Parallelize muzzle
* Parallelize muzzle
* No cache for muzzle
* Polish
* Let's try without cache
* Restore cache
2020-10-06 07:43:15 +03:00
Ioannis Mavroukakis
f2de47a150
SpanAssert method names should reflect underlying Span method names ( #1307 )
2020-10-05 16:04:08 +09:00
Anuraag Agrawal
dadaac9a8c
Use 2-line license header to match SDK repo ( #1321 )
...
* Use 2-line license header to match SDK repo
* Apply change
2020-10-05 14:29:56 +09:00