Anuraag Agrawal
574a3f7750
Use ArgumentsProvider for agent test JVM args to allow sharing of remote build cache. ( #3631 )
2021-07-20 15:23:43 +09:00
Nikita Salnikov-Tarnovski
d71c63dbce
Use published muzzle code gen plugin ( #3620 )
2021-07-19 22:16:06 -07:00
jason plumb
ec30d420e9
Skeleton for overhead testing subproject. ( #3554 )
...
* Skeleton for overhead testing subproject.
* clone into base image instead of submodule
* remove submodules file (even though it was empty)
* use multi-stage dockerfile to simplify image
* strip ssh and add CMD
* use the JRE base for the final stage
2021-07-20 09:42:26 +09:00
Trask Stalnaker
e2d23cd8c1
Fix bounds check ( #3612 )
...
* Fix bounds check
* Update instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/WithSpanAspectAttributeBinder.java
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-07-20 09:29:45 +09:00
Trask Stalnaker
d5185acaff
Update change log ( #3608 )
...
* Update change log
* Updates
* Review
2021-07-20 09:10:54 +09:00
Nikita Salnikov-Tarnovski
73ed96ab82
Document the possibility to embed extension into agent jar ( #3624 )
2021-07-19 12:11:21 -07:00
Mateusz Rzeszutek
af1aa540a2
Refactor agent-for-testing build ( #3600 )
2021-07-19 10:12:00 -07:00
Trask Stalnaker
734a1e2e6e
Update opentelemetry-api-metrics instrumentation name ( #3611 )
2021-07-19 10:10:09 -07:00
Anuraag Agrawal
e0cb216610
Remove remaining usages of basic span asserts ( #3616 )
2021-07-19 10:09:44 -07:00
Anuraag Agrawal
b6fb8753bd
Replace save-gradle-dependencies: false with read-only: true ( #3618 )
2021-07-19 19:57:32 +03:00
Anuraag Agrawal
18621501a5
Disable publishing of SDK shaded artifacts. ( #3614 )
2021-07-19 23:17:40 +09:00
Anuraag Agrawal
f5ce4c03f8
Inline basic usages of basicSpan ( #3583 )
...
* Inline basic usages of basicSpan
* spock
2021-07-18 21:15:51 +03:00
Lauri Tulmin
050e675abc
Split vertx instrumentation into client and server instrumentation ( #3567 )
2021-07-18 21:15:02 +03:00
Mateusz Rzeszutek
fbdc6d1cd6
Remove two classes that were moved to another module ( #3602 )
2021-07-16 20:37:54 +03:00
Anuraag Agrawal
ac8c1e1543
Configure duration metrics export as histograms to dogfood in preparation of SDK 1.5.0 ( #3597 )
2021-07-16 22:54:15 +09:00
Anuraag Agrawal
04c070ccc1
Add HTTPClientMetrics ( #3598 )
...
* Add HTTPClientMetrics
* Update instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientMetrics.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-16 18:22:35 +09:00
HaloFour
256e8f2a64
Move async strategies to annotation support ( #3574 )
...
* Move async strategies to annotation support
* Fix dependencies and refactor copypasta
* Move AsyncSpanEndStrategy to annotation support project
* spotless
2021-07-16 10:55:23 +02:00
Anuraag Agrawal
47bdc0d6d2
Specialize dependencies cache key for testLatestDeps ( #3584 )
...
* Specialize dependencies cache key for smoke-tests
* B
* C
* D
* Fix merge
* Don't need mkdir -p
2021-07-16 11:46:21 +03:00
Trask Stalnaker
344e205720
Help out Intellij ( #3595 )
2021-07-16 15:55:30 +09:00
Anna Nosek
409471543e
Test and document otel.javaagent.configuration-file ( #3585 )
...
* test and document configuration file property
* use TemporaryFolder rule, documentation changes after review
2021-07-15 22:37:17 -07:00
Nikita Salnikov-Tarnovski
7155dfcfeb
Only one main build should persist gradle depdencies to GHA cache ( #3593 )
2021-07-16 13:33:53 +09:00
Nikita Salnikov-Tarnovski
2077d23a62
Rename muzzle code gen plugin ( #3592 )
2021-07-15 20:29:50 -07:00
Anuraag Agrawal
d87f876467
Fix test metrics conversion from OTLP ( #3580 )
2021-07-16 12:06:38 +09:00
Nikita Salnikov-Tarnovski
6a9b3ae37f
More publishing fixes ( #3591 )
2021-07-15 21:50:47 +03:00
Anuraag Agrawal
d3b62de8a5
Replace most uses of TraceUtils with testRunner runWithSpan. ( #3582 )
2021-07-15 10:30:34 -07:00
Niki
016a963640
fixed potential NullPointerException if AMQP.Properties::getHeaders returns null ( #3588 )
2021-07-15 10:27:23 -07:00
Mateusz Rzeszutek
9a3734f8ed
Clean up bootstrap dependencies and build scripts ( #3570 )
...
* Clean up bootstrap dependencies and build scripts
* add evaluationDependsOn()
* Resolve configuration later
* remove the javaagentLibs config
* Fix muzzle bootstrap classpath
* Fix after rebase
* Try javaagentLibs once again
2021-07-15 18:56:36 +02:00
Nikita Salnikov-Tarnovski
1d4a1bfa73
Call correct tasks for publishing ( #3586 )
...
* Call correct tasks for publishing
* Don't close sonatype repo
2021-07-15 17:53:09 +03:00
Nikita Salnikov-Tarnovski
a079ff3832
Fix naming of muzzle tasks ( #3589 )
...
`assertPass` property is always present because we set to a default value right in the constructor.
2021-07-15 17:04:40 +03:00
Mateusz Rzeszutek
e1584b5c11
Skip jedis-3.6.2 version ( #3590 )
2021-07-15 17:03:37 +03:00
Nikita Salnikov-Tarnovski
d8dabf5c76
Publish gradle plugins to Sonatype ( #3571 )
...
* Publish gradle plugins to Sonatype
* Change artifact group
2021-07-15 14:07:10 +03:00
Nikita Salnikov-Tarnovski
1170c1a526
Don't use cache for distro build ( #3581 )
2021-07-15 13:01:55 +03:00
Anna Nosek
0fd8d2cc47
Add noop sdk configuration option ( #3539 )
...
* introduce noop
* test configuration
* rename to noop api, move System.setProperty() calls
* remove unnecessary semicolon
* codenarc fix
2021-07-15 11:33:00 +03:00
Trask Stalnaker
f02130f3e3
Disable SystemOut errorprone check when running locally ( #3579 )
2021-07-15 10:12:03 +03:00
Anuraag Agrawal
136b8aa22c
Fix disableErrorProne ( #3575 )
2021-07-15 09:17:54 +03:00
Trask Stalnaker
dffb12fd44
Add missing test verification ( #3578 )
2021-07-15 09:15:12 +03:00
Anuraag Agrawal
7ecb63f2fb
Update to OTel 1.4.1 ( #3576 )
2021-07-15 14:34:11 +09:00
HaloFour
814239c8c0
Adds binding of attributes in methods annotated with @WithSpan ( #3188 )
...
* Add binding of span attributes for traced methods
* Spring Aspect support, memoization
* Test with attribute name from ParameterNameDiscoverer
* Refactorings, javadocs and tests
* Refactor out creating AttributeBinding to separate class
* Wrapped attribute bindings for array parameters
* Attribute binding for List and EnumSet
* Attribute binding for subclass of List with reflection helper class
* Fix test failures in JDK 8
* Attribute binding to Set<? extends Enum>
* Move attribute binding to instrumentation-annotation-support project
* Fix copypastaed missing imports in tests
* Simplify ParameterizedClass based on PR feedback and add javadocs
* Remove blank javadoc
* Switch to cache with weak keys for memoizing attribute bindings by method
* Remove binding support for EnumSet<?>
* Clean up javadoc
* Use SpanAttribute annotation from opentelemetry 1.4.0-SNAPSHOT
* Address some PR concerns
* Clean up
* Fix instrumentation dependency in Springboot
* Update documentation
* Switch javaagent dep to compileOnly per PR comment
* spotless
* Kick CI
* Rename annotation support module and packages
* Resolve SpanAttribute annotation at runtime with fallback for older OTel versions
* Remove unnecessary dependency
* Move reflection helper to annotation support module
* Remove unnecessary enum and fields from unit test
2021-07-14 13:32:07 -07:00
Nikita Salnikov-Tarnovski
cbfd7e1a02
Trying to extract codegen plugin ( #3521 )
...
* Muzzle code generation moved to a separate plugin
* Restored old MuzzleCodeGenerationPlugin to use until the new one is published
* The simplest dependency management possible
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-07-14 17:08:47 +03:00
Mateusz Rzeszutek
229d8adc49
Publish shaded OpenTelemetry API and annotations for muzzle ( #3555 )
...
* Publish shaded OpenTelemetry API and annotations for muzzle
* code review
2021-07-14 15:33:07 +02:00
Mateusz Rzeszutek
c1b5c0884d
Move caffeine patching to instrumentation-api-caching ( #3559 )
2021-07-14 13:59:50 +02:00
Lauri Tulmin
8318d5acc9
Hibernate: handle jpa EntityManager ( #3540 )
...
* Hibernate: handle jpa EntityManager
* review comments
* Update instrumentation/hibernate/hibernate-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/hibernate/SessionMethodUtils.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-14 13:25:35 +03:00
Lauri Tulmin
1d01475948
Use http 1.1 for okhttp3 tests ( #3565 )
2021-07-14 13:21:49 +03:00
Mateusz Rzeszutek
1d2743271b
Clean up javaagent-instrumentation-api and javaagent-extension-api de… ( #3557 )
...
* Clean up javaagent-instrumentation-api and javaagent-extension-api deps a bit
* fix javadocs
2021-07-14 09:08:50 +03:00
Trask Stalnaker
922ec44952
Use transform safe logger in HelperInjector ( #3553 )
...
* Use transform safe logger in HelperInjector
* Add methods to TransformSafeLogger
2021-07-13 22:00:54 -07:00
Mateusz Rzeszutek
71e7d666ed
Convert OkHttp 3 to Instrumenter API ( #3538 )
...
* Convert OkHttp 3 to Instrumenter API
* code review
* Update instrumentation/okhttp/okhttp-3.0/library/src/main/java/io/opentelemetry/instrumentation/okhttp/v3_0/OkHttpAttributesExtractor.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-13 18:41:19 -07:00
Anuraag Agrawal
2e5505b872
Extract logic for bridging recognized context keys ( #3547 )
...
* Extract logic for bridging recognized context keys
* Moar
* Not private
* Not private
* Style
2021-07-14 08:24:36 +09:00
Anuraag Agrawal
9219fb6067
Only instrument builders once ( #3544 )
2021-07-14 08:24:15 +09:00
Anuraag Agrawal
df89691ca5
Move runWith logic to testrunner for use from Groovy and replace one … ( #3546 )
...
* Move runWith logic to testrunner for use from Groovy and replace one usage.
* Comment
* Fix static init order
* Fix
* Style
2021-07-13 17:14:00 +09:00
Mateusz Rzeszutek
3d1e782fc5
Instrumentation-specific bootstrap classes ( #3495 )
...
* Instrumentation-specific bootstrap classes
* try to move bootstrap modules dependency to javaagent
2021-07-13 09:34:02 +02:00