Mateusz Rzeszutek
5fb2261a82
Split out instrumentation-api-semconv ( #5721 )
...
* Split out instrumentation-api-semconv
* fix tests
* Moved LoggingContextConstants to semconv module too
2022-04-01 10:04:52 -07:00
Mateusz Rzeszutek
b668e73e13
Convert all logging statements from slf4j to jul ( #5674 )
...
* Convert all logging statements from slf4j to jul
* code review comments
* fix tests
* Fix randomly failing test
2022-03-25 10:02:51 -07:00
Anuraag Agrawal
14372adb68
Migrate Guava tests to Java ( #5668 )
...
* Migrate Guava tests to Java
* Update instrumentation/guava-10.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/guava/ListenableFutureTest.java
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
* Workaround inline mock issue
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-03-24 14:14:09 +09:00
Anuraag Agrawal
791083eedf
Remove separate exporter configuration which we always have in distro… ( #5331 )
...
* Remove separate exporter configuration which we always have in distro now.
* Actually remove
2022-02-11 12:11:35 +09:00
Anuraag Agrawal
7b38845a47
Avoid having two tasks producing the same file ( #5334 )
2022-02-11 10:31:12 +09:00
Trask Stalnaker
0510ca6188
Remove slim artifact ( #5251 )
...
* Remove slim artifact
* Fix build
* Revert one change
2022-01-27 08:31:46 -08:00
Anuraag Agrawal
ec375116be
Fix more lint warnings ( #5174 )
...
* Fix more lint warnings
* Redisable lint
* Drift
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-01-20 12:48:46 +09:00
Trask Stalnaker
f9a9dcb769
Fix release failure ( #5129 )
...
* Revert "Disable jar task in javaagent module (#4765 )"
This reverts commit 63c8b55d68
.
* Add comment
2022-01-17 18:32:59 +01:00
Trask Stalnaker
f7da97bd9d
Move appender api to internal ( #5080 )
...
* rename artifacts and packages
* Library users shouldn't need to use internal
* Update docs
* Rename in order to simplify HelperClassPredicate
* Spotless
* Move AgentLogEmitterProvider to javaagent-instrumentation-api
2022-01-12 08:38:28 -08:00
Anuraag Agrawal
c75c01f871
Update to OTel 1.10 ( #5035 )
...
* Update to OTel 1.10
* Fix metric smoke test
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-01-07 15:45:20 -08:00
Anuraag Agrawal
d0c9a4c975
Remove test that doesn't seem to check what is intended ( #4961 )
2021-12-21 10:09:57 +02:00
Anuraag Agrawal
1176029765
Migrate ShadowPackageRenamingTest to Java to avoid spock workaround ( #4960 )
2021-12-21 13:10:44 +09:00
Trask Stalnaker
e5da618196
Add logs to testing infra ( #4927 )
...
* Add logs to testing infra
* Drift
2021-12-17 18:23:42 -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
Nikita Salnikov-Tarnovski
99e82d70fa
Make gradle cache work when used from different locations ( #4794 )
2021-12-04 19:55:30 +02:00
Nikita Salnikov-Tarnovski
63c8b55d68
Disable jar task in javaagent module ( #4765 )
...
* Disable jar task in javaagent module
* Don't try to publish jar from javaagent
* Fix publishing
2021-12-02 17:18:34 +02:00
Trask Stalnaker
2bbd7365b3
Make testing agent jar more consistent with real agent jar ( #4773 )
2021-12-01 19:56:59 -08:00
Lauri Tulmin
f5142f24e9
Remove internal-proxy instrumentation ( #4749 )
2021-11-30 07:56:26 -08:00
Nikita Salnikov-Tarnovski
821a4b870b
Drop instrumentation-api-caching module and move weak cache implementation to instrumentation-api ( #4667 )
...
* Drop instrumentation-api-caching module and move weak cache implementation to instrumentation-api
* Some test fixes
* Some cleanup
* Temporary workaround for using weak values in FutureListenerWrappers
* Spotless
* Update ClassNames and SpanNames
* Compilation and comment
* Add bounded cache and clean interface
* Polish
* Add comment
* Vendor ConcurrentLinkedHashMap in
* Let errorprone ignore vendored CLHM for now
* Keep license in java files too
* Convert Netty wrapper cache to VirtualField
* Work around lambda instrumentation failure
Ideally we would ignore instrumenting helper classes...
* Revert "Work around lambda instrumentation failure"
This reverts commit 6d63815b44
.
* Revert "Convert Netty wrapper cache to VirtualField"
This reverts commit dac1522a3f
.
* Handle cleared weak values
* Fix comment
* Delete instrumentation-api-caching
* Copy in weak-lock-free
* Remove caffeine remnants
* Fix checkstyle
* Rename BoundedCache to MapBackedCached
* Remove duplicate LICENSE
* Remove outdated comment
* Sync with SDK copy of weaklockfree
* Enable checkstyle:off comment
* Re-generate license report
* Move NOTICE file to package-info.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-24 09:05:12 -08:00
Anuraag Agrawal
bcae1b11d3
Remove gRPC dependency for export ( #4674 )
2021-11-19 11:21:34 -08:00
Nikita Salnikov-Tarnovski
7c038f5c71
Fix running `generateLicenseReport` task ( #4614 )
...
* Fix running `generateLicenseReport` task
* Spotless
2021-11-12 22:39:37 +02:00
Lauri Tulmin
3fbacb70fd
Don't include caffeine3 in instrumentation-api ( #4466 )
2021-10-25 20:37:44 -07:00
Trask Stalnaker
d781995d0a
Less surprising behavior ( #4349 )
...
* Less surprising behavior
2021-10-13 10:10:03 +03:00
Trask Stalnaker
cfdc4ac7e5
Change the default javaagent artifact to have exporters ( #4106 )
...
* Change default javaagent to all, introduce slim
* Update release builds
* Update examples build
* Update benchmark-overhead
* Update benchmark-e2e
* Update docs where ok pre-release
* Update misc
* Fix references to fullJavaagentJar
* Fix it
* Delete doc for pre-1.0 releases
* Attach backwards compatible "all" artifact to releases
* Comment
* Comment
* guessing
* fix
* Update version
* Add otlp/grpc exporter to slim artifact
* Fix comment
2021-10-02 11:28:11 -07:00
Mateusz Rzeszutek
c11b96e4d0
Make it possible to use InstrumentationContext (now VirtualField) fro… ( #4218 )
...
* Make it possible to use InstrumentationContext (now VirtualField) from library instrumentation
* fix tests
* fix javadocs
* fix some more tests
* code review comments
* setIfNull, computeIfNull
2021-10-01 11:13:11 +02:00
Trask Stalnaker
330f66a7bc
Remove problem files from META-INF ( #4203 )
2021-09-27 10:09:54 -07:00
Lauri Tulmin
559cdcbbee
Transform lambda classes ( #4182 )
...
* Transform lambda classes
* improve comment
2021-09-24 09:52:15 -07:00
Lauri Tulmin
436184002c
Bridge trace builder ( #4090 )
...
* Bridge tracer builder
* put api 1.4 bridging into separate moulde
* remove duplicate test
* remove testing dependencies
* use static import
* Update instrumentation/opentelemetry-api/opentelemetry-api-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/trace/ApplicationTracerProvider.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* rename make -> create
* replace reflection with methodhandle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-09-13 09:30:02 -07:00
Matthew Ho
6967484a97
Update groovy import order to match default IntelliJ ( #1708 ) ( #4047 )
...
* Update groovy import order to match default IntelliJ (#1708 )
* organized imports for .groovy files to follow default IntelliJ import settings
* updated intellij-setup.md
* Spotless
* drift
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-09-11 11:53:08 -07:00
Nikita Salnikov-Tarnovski
3ae6b46930
Simpler test agent ( #3974 )
...
* Trying to simplify testing agent
* Simplified and verified it works
* spotless
* Code review comments
* spotless
2021-09-08 14:11:02 -07:00
Trask Stalnaker
20c72f3e98
Format kotlin gradle files ( #3942 )
...
* Add ktlint for kotlinGradle
* ktlint fails on wildcard imports
* Auto-format kotlin gradle files
2021-08-25 13:43:57 +09:00
Mateusz Rzeszutek
6ba91989a7
Fix javaagent publishing ( #3929 )
...
* Fix javaagent publishing
* Take manifest attributes from the jar task too
2021-08-24 11:40:36 -07:00
Mateusz Rzeszutek
ba4db4801f
Clean up concurrent advice utilities in javaagent-instrumentation-api ( #3757 )
...
* Clean up concurrent advice utilities in javaagent-instrumentation-api
* fix classloading tests
2021-08-03 09:17:19 -07:00
Mateusz Rzeszutek
e5ddbfec0d
Refactor javaagent buildscript ( #3682 )
2021-07-29 08:35:37 -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
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
Trask Stalnaker
d0cb08a37b
Rename javaagent-api artifact to javaagent-instrumentation-api ( #3513 )
...
* part 1
* part 2
* Undo change in examples
* Spotless
2021-07-12 21:53:49 -07:00
Anuraag Agrawal
8eb24f9886
Split up build logic to plugins that can eventually be published and … ( #3474 )
...
* Split up build logic to plugins that can eventually be published and this-repo-specific stuff.
* Muzzle
* compileOnly
* Typo
2021-07-05 16:18:45 +09:00
Anuraag Agrawal
4ce9ff3a69
Migrate projects with isolateSpec to kotlin ( #3447 )
...
* Migrate projects with isolateSpec to kotlin
* Migrate
2021-06-30 19:23:28 +09:00
Anuraag Agrawal
c16999c27d
Exclude duplicates from -all.jar ( #3430 )
2021-06-29 21:34:19 +09:00
Anuraag Agrawal
d53e62b4dc
Remove noShadowPublish ( #3426 )
2021-06-29 16:55:53 +09:00
Anuraag Agrawal
785dc6adf2
Rename build files to build.gradle ( #3409 )
...
* Rename build files to build.gradle
* Rename smoke-tests
* Fix already broken
2021-06-25 16:10:31 +09:00
Anuraag Agrawal
deb0e255cf
Use plugins block everywhere for applying plugins ( #3386 )
...
* Use plugins block everywhere for applying plugins
* Actually it's library instrumentation
2021-06-24 11:13:35 +09:00
Anuraag Agrawal
a818f14957
Migrate publish.gradle to convention plugin ( #3312 )
...
* Migrate publish.gradle to convention plugin
* Migrate usages of publish.gradle
* Remove publish.gradle
* Newline
2021-06-15 22:12:48 +09:00
Trask Stalnaker
48a90b090c
Better support for wrapping premain ( #3302 )
...
* Better support for wrapping premain
* fix
* Fix test
* Sync comment from test
2021-06-15 09:27:10 +03:00
Nikita Salnikov-Tarnovski
b9eac531ea
Embedded extension ( #3237 )
...
* Support for multiple extension jars by scanning the given folder
* Support to embed extension jar right inside agent jar
* Support for multiple embedded extensions
* Create temp folder for embedded extensions only if they found
* ExtensionClassLoader skips agent jar when scanning folder
* Apply suggestions from code review
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update examples/extension/build.gradle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-14 16:24:25 -07:00
Anuraag Agrawal
224dc51e93
Migrate java.gradle to conventions plugin ( #3289 )
...
* Migrate java.gradle to convention plugin.
* Switch to java-conventions
* Remove old file
* Fix
* Fix merge
* Missing paragraph
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-15 08:10:39 +09:00
Trask Stalnaker
62f1f49bcd
Intellij cleanup (Java and Groovy) ( #3285 )
...
* Intellij cleanup
* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/code/CodeAttributesExtractorTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/DbAttributesExtractorTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/SqlAttributesExtractorTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/messaging/MessagingAttributesExtractorTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation/spring/spring-web-3.1/library/src/test/java/io/opentelemetry/instrumentation/spring/httpclients/RestTemplateInterceptorTest.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Use glassfish version that supports lambdas
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-06-14 10:23:01 -07:00
Anuraag Agrawal
b8cddc0dd8
Only include exporters in -all jar. ( #3286 )
...
* Only include exporters in -all jar.
* override exporter
* Newline
2021-06-14 13:49:22 +09:00
Anuraag Agrawal
5f49dc0e4a
Extract agent shadow configuration to conventions script. ( #3256 )
...
* Extract agent shadow configuration to conventions script.
* Remove redundant plugin version declaration
* Resource loader doesn't load from buildSrc
* Comments about byte buddy version
* Fix ReferenceCollectorTest
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-12 16:45:26 -07:00