Trask Stalnaker
11a057594e
Fix db.system for SAP Hana and remove unnecessary code ( #6401 )
...
* Remove unnecessary code
* Remove unnecessary code
* Fix tests
2022-08-02 11:16:38 -07:00
Mateusz Rzeszutek
82b39b1012
Rename `newInstrumenter()` into `buildInstrumenter()` ( #6363 )
...
* Rename newInstrumenter() into buildInstrumenter()
* spotless
2022-07-25 12:02:46 -07:00
Mateusz Rzeszutek
8d1ba17d29
InstrumentationConfig part 4: DB sanitization ( #6317 )
...
* InstrumentationConfig part 4: DB sanitization
* fix couchbase unit tests
* code review comments
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-07-15 21:47:33 -07:00
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
Lauri Tulmin
b4a1e2e9ee
Fix ClassCastException in JDBC instrumentation ( #6088 )
...
* Move DbInfo to boot loader
* add comment
* add test
* spelling
2022-06-16 12:09:24 -07:00
Mateusz Rzeszutek
6a0ca530b7
Instrumentation API changes: VirtualField ( #6017 )
...
* Instrumentation API changes: VirtualField
* change class name in string constant
2022-05-12 11:17:24 -07: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
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
Mateusz Rzeszutek
47f2732aae
Split out DbClientAttributesGetter and SqlClientAttributesGetter ( #5354 )
...
* Split out DbClientAttributesGetter and SqlClientAttributesGetter
* code review comments
2022-03-04 09:58:04 -08:00
Mateusz Rzeszutek
27ed47ccda
Split out CodeAttributesGetter ( #5342 )
2022-02-17 16:47:18 -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
jason plumb
c5c0a2bcdf
NetClientAttributesAdapter - favor composition over inheritance ( #5030 )
...
* first pass at separating NetAttributesAdapter interface and make NetClientAttributesExtractor concrete
* rename the implementations extractor -> adapter
* hide constructor and make factory method
* rename to client and add javadoc
* spotless
* finish javadoc thought
* rebase
* renamed NetClientAttributesAdapter to NetClientAttributesGetter
* fix lettuce
* code review comments
* code review comments -- renaming for consistency
* adapter -> getter
* fix ratpack
* adapter -> getter
2022-01-20 10:51:13 -08: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
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
Trask Stalnaker
ce4cef76f9
Clean up groovy assertions ( #4805 )
2021-12-05 23:23:58 -08:00
Lauri Tulmin
c79eed765f
Make JdbcData fields final ( #4738 )
2021-11-29 13:00:49 -08:00
Martin
d314d76fce
rename `newBuilder()` to `builder()` ( #4475 )
...
* rename `newBuilder()` to `builder()`
* rename `newBuilder()` to `builder()`
2021-10-22 20:50:43 -07:00
Martin
ac91dc090a
Type annotation placement ( #4406 )
...
* switch annotation `org.checkerframework.checker.nullness.qual.Nullable` to `javax.annotation.Nullable`
* code format
2021-10-17 17:38:43 -07:00
Trask Stalnaker
63a2383905
Split NetAttributesExtractor into NetClientAttributesExtractor and NetServerAttributesExtractor ( #4287 )
...
* Net Extractors
* Either request or response but not both
* Fix merge conflicts
* Separate by OnStart/OnEnd
* PeerServiceAttributes
* Fix test
* Restructure to client/server
* Fix merge conflict in main
* more
* peer.service
* Feedback
* peer.service is only for clients
* Fix merge conflict
* rename
* Armeria
* peer.service is only for clients
* rename
* WIP
* Sync Dubbo with Armeria
* More Dubbo and Armeria
* gRPC
* Revert some Dubbo changes
* more peer.service
* Fix test
* Fix merge
* Fixes
2021-10-07 15:40:15 -07:00
Lauri Tulmin
95651a4f1b
Intern db info ( #4263 )
2021-10-03 19:47:40 -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
abfcfb9dc7
Fix JDBC instrumentation deadlock ( #4191 )
2021-09-23 08:52:01 -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
Lauri Tulmin
b61113fef6
JDBC: use ContextStore when running as agent ( #3987 )
...
* JDBC: use ContextStore when running as agent
* address review comments
* use singular
2021-08-27 14:14:40 -07:00
Anuraag Agrawal
e0cb216610
Remove remaining usages of basic span asserts ( #3616 )
2021-07-19 10:09:44 -07:00
Anuraag Agrawal
f5ce4c03f8
Inline basic usages of basicSpan ( #3583 )
...
* Inline basic usages of basicSpan
* spock
2021-07-18 21:15:51 +03:00
Anuraag Agrawal
d3b62de8a5
Replace most uses of TraceUtils with testRunner runWithSpan. ( #3582 )
2021-07-15 10:30:34 -07:00
Trask Stalnaker
dffb12fd44
Add missing test verification ( #3578 )
2021-07-15 09:15:12 +03:00
Trask Stalnaker
9e4da754c2
Use consistent logger field name ( #3515 )
2021-07-07 10:47:46 -07:00
Alexey Zhokhov
9979bef877
JDBC instrumentation: switch to use api instead of implementation for instrumentation-api. ( #3494 )
...
* Switch to use api instead of implementation for instrumentation-api.
* Removed duplicated dependency.
2021-07-06 09:20:41 -07:00
Trask Stalnaker
642f213c12
Remove hardcoded version ( #3470 )
...
* Remove hardcoded version
* Codenarc
2021-07-01 23:00:15 -07:00
Alexey Zhokhov
ed02aff7b5
OpenTelemetry JDBC instrumentation library ( #3367 )
...
* Added jdbc library with ported version of OpenTracing JDBC Instrumentation.
* Gradle 7.1.
* Revert "Gradle 7.1."
This reverts commit e3df35b0
* Code style fixes.
* Code style fixes.
* Moved some JDBC utilities classes to the library module.
* javax.annotation.Nullable -> org.checkerframework.checker.nullness.qual.Nullable
* Build fix.
* Spotless fixes.
* Cache prepared statements.
* Cache connection info.
* Tracing for JDBC statement and prepared statement.
* Added some API dependencies.
* Fixed ending the span.
* Removed proxy usage.
* Cleanup.
* Implemented datasource with tracing support.
* Renamed Tracing prefix with OpenTelemetry.
* Renamed Tracing prefix with OpenTelemetry.
* Moved utilities classes to io.opentelemetry.instrumentation.jdbc.internal subpackage.
* Build fix.
* Build fix.
* Cleanup.
* Moved some shared classes to instrumentation-api module.
* Code review fixes.
* Make OpenTelemetryDriver final.
* Spotless fixes.
* Moved test classes from javaagent-unit-tests module to library module.
* Removed javaagent-unit-tests module.
* Covered OpenTelemetryDriver with tests.
* Cleanup.
* Covered OpenTelemetryDataSource with tests.
* Covered OpenTelemetryConnection with tests.
* Revert TestPreparedStatement.
* Added README.
* Build fix.
* Checkstyle fixes.
* Spotless fixes.
* Rename to build.gradle
* Fix build.gradle format.
* INSTANCE package scope.
* Documented OpenTelemetryDataSource usage.
* Renamed CheckedCallable to ThrowingSupplier.
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Removed javaagent-api module usage.
* Removed useless checking.
* Moved javaagent test classes to testing module.
* Move common JDBC test classes to testing module.
* Spotless fixes.
* Code format.
* Moved PeerServiceAttributesExtractor back to javaagent-api module.
* Rename JavaAgentJdbcSingletons to JdbcSingletons.
* Fixed JdbcSingletons import.
* Cleanup.
* Codenarc fixes.
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Parse InstrumentationVersion.VERSION.
* Store major and minor version in private static fields.
* Make the datasource way a preferred way.
* Removed interceptor mode.
* Rename build.gradle -> build.gradle.kts.
* Switch to Gradle Kotlin DSL.
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-07-01 10:35:07 -07:00