Commit Graph

81 Commits

Author SHA1 Message Date
Trask Stalnaker 8fac01e736
Enable error prone's UnusedVariable check (#6217)
* Enable error prone's UnusedVariable check

* Spotless
2022-06-27 10:55:27 +02:00
Trask Stalnaker b0eae3461c
Update spotless (#6218)
* Update spotless

* Update spotless
2022-06-26 14:44:29 -07:00
Trask Stalnaker c90f01094b
Update error prone (#6216) 2022-06-26 14:25:52 -07:00
Lauri Tulmin ef0395ff55
Set file/dir access flags for reproducible build (#6072) 2022-05-20 09:12:48 -07:00
Anuraag Agrawal 528360db8c
Update dependencies (#6007)
* Update dependencies

* Add maven to plugin repos

* Fix tests that fail with groovy 4.0.2 (#42)

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-05-17 14:12:36 -07:00
Trask Stalnaker d17a0d7d9a
Instrument SpanKey directly (#5933)
* Instrument SpanKey directly

* feedback

* Make muzzle work

* Revert unrelated change
2022-05-03 14:56:33 -07:00
Mateusz Rzeszutek d919f84cf8
Merge javaagent-instrumentation-api into javaagent-extension-api (#5936)
* Merge javaagent-instrumentation-api into javaagent-extension-api

* remove some leftover references to javaagent-instrumentation-api

* add missing instrumentation-api to distro example
2022-04-28 20:11:15 -07:00
Trask Stalnaker 8dc6e2f327
Suppress PeriodicMetricReader debug logging (#5934) 2022-04-26 11:22:11 +03:00
Mateusz Rzeszutek 7c760acea6
Move some classes out of `javaagent-instrumentation-api` (#5841)
* Move concurrent instrumentation utils out from javaagent-instrumentation-api

* Move AgentLogEmitterProvider, InstrumentedTaskClasses and OpenTelemetrySdkAccess out of javaagent-instrumentation-api
2022-04-15 12:09:28 -07:00
Anuraag Agrawal 980746ae44
Update errorprone (#5776)
* Update errorprone

* Fix errorprone on java 17

* Fix oshi test

* Spot

* Fix merge
2022-04-11 12:48:16 -07:00
Anuraag Agrawal 7e428168ff
Update dependencies (#5777)
* Update dependencies

* Update licenses

* Exclude licenses from link check

* Exclude licenses from link check?
2022-04-08 20:00:53 +09:00
Anuraag Agrawal a48ecd0365
Upgrade Gradle and build dependencies (#5775) 2022-04-08 14:31:38 +09:00
Mateusz Rzeszutek 8e722cc264
Library instrumentation should read its version from a file (#5692)
* Library instrumentation should read its version from a file

* errorprone

* animalsniffer

* code review comments

* add name as task input too

* code review comments
2022-04-04 11:52:23 -07:00
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
Mateusz Rzeszutek 56f65e4fab
Convert all logging statements from slf4j to jul - part 1 (#5628)
* Convert all logging statements from slf4j to jul - part 1

* fix tests

* use placeholders

* fixed all comments, added static imports for Level
2022-03-22 10:35:27 -07:00
Anuraag Agrawal cf805d87e0
Run Gradle and compile code with Java 17 (#5623)
* Run Gradle and compile code with Java 17

* Fix examples

* Update spotless version

* Add spotless Java 17 workaround

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-18 15:38:51 -07:00
Anuraag Agrawal fafa0b4350
Migrate remaining scala tests to scala (#5620)
* Migrate remaining scala tests to scala

* Remove another groovy hack
2022-03-18 09:57:17 -07:00
Anuraag Agrawal 75b75e7737
Migrate executors test to java (#5596) 2022-03-18 08:46:17 +09:00
Lauri Tulmin 2ebe912fe4
GraphQL java instrumentation (#5583)
* GraphQL Java Initial Commit

* [WIP] First steps for GraphQL instrumentation, totally not ready

[skip ci]

* GraphQL Java instrumentation

* address review comments

* Apply suggestions from code review

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

* review feedback

* scope handling

* Apply suggestions from code review

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

* use spotless:off

* trigger build

* review comments

Co-authored-by: Jordie <xd@jrdie.nl>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-17 08:55:45 -07:00
Anuraag Agrawal 47508330ba
Fix akka actors testLatestDeps (#5589)
* Fix akka actors testLatestDeps

* latest dep test scala version differs by module

* Don't bother with compat library since doesn't look good anyways
2022-03-16 15:36:01 +09:00
Anuraag Agrawal d2401e14a9
Migrate AkkaActorTest to scala (#5582) 2022-03-16 08:08:10 +09:00
Lauri Tulmin e9c1efece2
Update to Groovy 4 (#5532)
* Update to Groovy 4

* exclude spock from grails tests, update comment

* Update instrumentation/grails-3.0/javaagent/build.gradle.kts

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-09 15:07:41 -08:00
Anuraag Agrawal 487a01eb3e
Update Gradle and build dependencies (#5531) 2022-03-09 09:09:20 -08:00
Trask Stalnaker 1077258263
Add InternalJavadoc custom error prone check (#5277)
* Add InternalJavadoc custom error prone check

* Add example usage

* Move to conventions

* Revert "Move to conventions"

This reverts commit d8a8209b59.

* Just get it working

* Clearer error message

* versions

* Apply almost everywhere

* feedback

* Always at the end of javadoc

* Fix test

* Missed (at least) one

* No longer internal

* Fix NPE

* Spotless

* Convert awslambda Java test to JUnit 5 so can reduce visibility

* Reduce visibility

* Rename the check

* More

* Move into errorprone-convention

* Fix UserExcludedClassesConfigurerTest
2022-02-01 17:54:57 -08:00
Trask Stalnaker 022914139e
test latest deps cleanup (#5269)
* test latest deps cleanup

* Revert currently irrelevant change

* Update instrumentation/lettuce/lettuce-4.0/javaagent/build.gradle.kts

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2022-02-01 09:49:07 -08:00
Trask Stalnaker 7df2b0e2df
Don't run testLatestDeps on alpha/beta/rc versions (#5258)
* Don't run testLatestDeps on alpha/beta/rc versions

* More logback
2022-01-28 08:21:53 -08:00
Anuraag Agrawal 74d428dbd2
Disable deprecation lint for testLatestDeps (#5208) 2022-01-24 16:48:46 +09:00
Anuraag Agrawal e04f52b9db
Enable java lint (#5182)
* Enable java lint

* Compile internal-lambda-java9 withot using --release flag (#34)

* Fix some custom testsets

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-01-24 12:45:42 +09: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
Anuraag Agrawal b7a95857c7
Fix some java lint warnings (#5120)
* Convert InstrumentationTestRunner from interface to abstract class

* Foo

* Commit

* Revert unintended
2022-01-17 10:26:03 -08:00
Trask Stalnaker eea7c0f1dc
Fix publishing gradle plugins (#5132) 2022-01-17 18:33:26 +01: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 3804968898
Apply spotless to conventions scripts (#5082)
* Apply spotless to conventions scripts

* Apply spotless
2022-01-12 17:42:50 +09:00
Nikita Salnikov-Tarnovski 2d71fc9d53
Do not run jApiCmp tasks automatically (#5068) 2022-01-11 19:49:33 +02:00
Anuraag Agrawal 1f5bb7dc20
Predeclare spotless deps to allow high concurrency (#5067)
* Predeclare spotless deps to allow high concurrency

* Comment
2022-01-11 16:46:48 +09:00
Trask Stalnaker db8cd050a7
Add spotless to standalone subprojects (#5058)
* Update spotless version

* Add spotless to benchmark-overhead

* Add spotless to smoke-test images

* Add spotless to examples

* Apply spotless

* Resolve log4j conflict

* Apply spotless after upgrade
2022-01-10 12:46:52 -08:00
Anuraag Agrawal 478800e5de
Update byte buddy (#5037) 2022-01-07 20:30:08 +09:00
Anuraag Agrawal f6bcd76219
Update errorprone (#5016)
* Update errorprone

* gwt

* Remove unnecessary final

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-01-06 14:21:56 -08:00
Anuraag Agrawal 83c94e9554
Update Gradle and build dependencies (#4971) 2021-12-23 16:01:39 +02:00
Trask Stalnaker 39a9a2f8e2
Fix codenarc (#4969)
* Fix codenarc

* Fix violations
2021-12-22 16:15:38 -08:00
Trask Stalnaker a1f08494e6
Verify System.out.printlns using checkstyle (#4933)
* Verify System.out.printlns using checkstyle

* Add more patterns

* Only flag no-arg printStackTrace
2021-12-20 10:23:53 +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
Trask Stalnaker d7756f1f2b
Add library-autoconfigure to gradle magic (#4929) 2021-12-17 10:39:10 +02:00
Anuraag Agrawal 8d0541e0b4
Revert spotless to working version (#4884)
* Revert "Fix Intellij import (#4877)"

This reverts commit 63aec1a401.

* Revert "Update spotless (#4863)"

This reverts commit a4f70cbd86.
2021-12-14 10:59:41 +09:00
Trask Stalnaker 63aec1a401
Fix Intellij import (#4877) 2021-12-13 15:19:23 +09:00
Anuraag Agrawal 1f3b24a111
Update bytebuddy (#4864) 2021-12-10 17:33:04 +09:00
Anuraag Agrawal a4f70cbd86
Update spotless (#4863)
* Update spotless

* Apply spotless
2021-12-10 17:32:34 +09:00