* Move and rename NetPeerUtils
* Rename NetPeerUtils to NetPeerAttributes; inject instance instead of using a global var
* Rename SpanAttributeSetter to AttributeSetter (might be used to set on AttributesBuilder in the future, who knows)
* Deprecate default BaseTracer constructor: library instrumentations are supposed to inject all dependencies, the javaagent should explicitly pass globals
* fix compilation failure
* Remove peer.service customization from library instrumentation
* Remove unnecessary libs from the javaagent shadowJar
And make it a bit lighter: 36 MB -> 21 MB
* Apply code review comments
* Remove unnecessary kotlin exclusion
* Implement spanName for MongoClientTracer
Adds a basic implementation for spanName in MongoClientTracer that uses the recommended name from the specification.
* Fix mongo4 tests
* Fix typo in test
* Handle missing dbName
* Update test with a command that has no collection as value
* Fix style issues
* Fix formatting
* remove uneeded line
* Refactor InMemoryExporter and move some of its methods to spock base class & junit extension
* codenarc
* spotless
* Apply suggestions from code review
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* fix armeria library tests
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* testing-common refactoring: replace direct AgentTestRunner usage with spock spec
* Updated instrumentation docs
* Fix reactor-core library tests
ReactorCoreTest was getting a tracer from GlobalOpenTelemetry before LibraryTestTrait had a change to initialize the SDK
* Report only known collection names in MongoClientTracer (#1625)
* Use allow-list of commands that are known to use collection name as the value of the command
* Special-case getMore command, which uses a different field for the collection name
* Add create, drop, and createIndexes to list of commands with collection name as their values
* Improve command scrubber in MongoClientTracer (#1587)
* Don't scrub the command field value at all if it's a string
* Use JsonWriter to improve efficiency of the scrubber
* If available, user JsonWriter.Builder.maxLength to limit size of the query string
* Move `DbSystem` to package `...instrumentation.api.db`
* Move `SqlNormalizer` to `javaagent-api` package ...api.db.normalizer
* Refactor Cassandra tests so that they use testcontainers (and run on Java 11)
* Implement Cassandra statement normalization
* Remove version from `apache-httpclient` instrumentation
Fixes: #1260
* Remove version from all instrumentation names and add instrumentation name to `spring-web`
Fixes: #1260
* Add mongodb attributes for operation and collection
* Switch to using SemanticAttributes.MONGODB_COLLECTION
* Remove unused imports
* Fix import order
* Fix formatting
* Update tests to keep more readable closure syntax
* Run spotlessApply