Lauri Tulmin
ad82c30ec2
Skip attempting to retransform our agent classes ( #1919 )
2020-12-18 12:29:53 -08:00
Pavol Loffay
f69217e2a4
Add ComponentInstaller SPI and use it for OpenTelemetry SDK ( #1848 )
...
* Add component installer SPI
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* Move more code to agent installer
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-12-18 08:55:24 +02:00
Anuraag Agrawal
f0a6c6d772
Update SDK dependency to 0.13.0-SNAPSHOT. ( #1924 )
...
* Update SDK dependency to 0.13.0-SNAPSHOT.
* Update smoke tests
* Fix formatting
* Spot
2020-12-17 18:20:59 +09:00
Mateusz Rzeszutek
cd58ac816e
Muzzle should add SPI classes defined in helperResourceNames as references ( #1918 )
2020-12-16 21:54:04 -08:00
Trask Stalnaker
0200081007
Use new SemanticAttribute constants ( #1896 )
...
* Use new SemanticAttribute constants
* Spotless
2020-12-14 18:16:33 +09:00
Anuraag Agrawal
c741eaa501
Shade trace propagators so they can be injected in instrumentation th… ( #1892 )
...
* Shade trace propagators so they can be injected in instrumentation that benefits from a hard-coded propagation format
* Runtime shade too
2020-12-14 07:52:21 +02:00
Pavol Loffay
d197748bd9
Add package prefix to classloader ignore matcher ( #1813 )
...
* Add package prefix to classloader ignore matcher
OTEL agent already ignores other agent's classes by package prefix.
However agets also use non-shaded classes (usually present in agent classloader),
these classes are not excluded by package prefix and have to be excluded
by classloader. One example is Okhttp client used by DataDog agent.
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* fix review comments
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* Fix checkstyle
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-12-09 23:12:20 +02:00
Pavol Loffay
4e52b3e741
Add newrelic and datadog package prefixes to global ignore matcher ( #1812 )
...
* Add nerelic and datadog package prefixes to global ignore matcher
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* add dot
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* Scope down newrelic agent
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-12-09 21:07:38 +02:00
Anuraag Agrawal
3b8827b8ab
Update to SDK 0.12.0 ( #1830 )
...
* Update to SDK 0.12.0
* Update error message to the current world.
* Bump referenced smoke test versions
* fixes
* dependency hell
* Suppress unused call
* Bump missed smoke tests
* Bump image, bump smoke tests gRPC version
2020-12-07 17:16:47 +09:00
Nikita Salnikov-Tarnovski
ef02da9090
Bootstrap prefix fix ( #1833 )
...
* Proper classloading test for WildFly and GlassFish
* Fix using BootstrapPackagePrefixesHolder
* Polish
* Format
2020-12-05 10:41:00 +02: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
Mateusz Rzeszutek
3c1a09109f
Use sdk-extensions/resources in the agent ( #1809 )
...
* Use sdk-extensions/resources in the agent
* Add smoke test, fix dropwizard test
2020-12-01 16:03:51 -08: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
2b2ffa87ed
Rename defaultEnabled property to default-enabled ( #1788 )
2020-11-28 10:50:59 -08:00
Trask Stalnaker
083651acef
Update more config property names ( #1786 )
2020-11-28 10:50:51 -08: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
Mateusz Rzeszutek
90ecff512a
Muzzle mismatch logs should be warnings in tests ( #1754 )
2020-11-26 11:21:17 -08:00
Ago Allikmaa
d42dccb9bd
Make ByteBuddy task deterministic by using linked sets/maps. ( #1770 )
...
* Make ByteBuddy task deterministic by using linked sets/maps.
* Add class-level comments explaining the use of Linked maps/sets.
2020-11-26 11:07:07 +02: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
Ago Allikmaa
d03c3d0d7e
Fix ByteBuddy tasks failing on daemon reuse. ( #1762 )
2020-11-25 15:01:32 +02:00
Mateusz Rzeszutek
50c8ab499d
Remove no longer needed helperClassNames() methods ( #1755 )
2020-11-24 20:50:32 -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
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
3b480f5e50
Rename otel trace properties ( #1740 )
...
* Rename otel.trace.enabled
* Rename otel.trace.debug
* Rename otel.trace.config
* Rename otel.trace.runtime.context.field.injection
* Rename otel.instrumentations.enabled
* Document otel.javaagent.enabled
2020-11-23 14:53:18 -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
19e85bbca7
Fix for no propagators being installed ( #1730 )
2020-11-22 09:56:18 -08:00
Trask Stalnaker
e18a4d1038
Fix spring-webmvc testLatestDeps ( #1723 )
2020-11-21 09:21:14 +02:00
Sergei Malafeev
4b3bbf6612
add baggage propagator to default propagators ( #1545 )
2020-11-20 09:56:01 -08: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
Sergei Malafeev
da9502ce84
add b3multi propagator ( #1647 )
...
* revert support for b3_single and b3 (multi) propagator
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* add b3multi, default for b3 is single
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-11-18 09:47:43 +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
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
Trask Stalnaker
6d5ec329d6
Enable checkstyle for google style guide ( #1641 )
2020-11-16 18:46:59 -08:00
Pavol Loffay
b4326d91ac
Add Bytebuddy agent builder customizer SPI ( #1613 )
2020-11-13 11:21:40 -08:00
Ago Allikmaa
995e2caee0
Update ByteBuddy to 1.10.18, adjust to new ByteBuddy gradle plugin ( #1596 )
...
* Adjust for use with ByteBuddy 1.10.18
* Fix language choices for ByteBuddy transformation.
* Remove no longer used MuzzleCodeGenerationPlugin$NoOp
2020-11-12 12:34:06 +02:00
Mateusz Rzeszutek
402a0a1639
Remove Instrumenter.Default ( #1610 )
2020-11-10 12:42:29 -08:00
Nikita Salnikov-Tarnovski
d6c2de4389
Small cleanup ( #1603 )
...
* Small cleanup
* Format
2020-11-10 14:55:53 +02: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
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
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
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
Pavol Loffay
c931b1b85a
Add explicit names to metrics/trace SPI factories ( #1513 )
...
* Add explicit names to metrics/trace SPI factories
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* Fix tests
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-29 12:14:41 +02:00
Pavol Loffay
bdf2a91290
Rename printReferences gradle task to printMuzzleReferences ( #1517 )
...
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-29 15:37:38 +09:00