Commit Graph

446 Commits

Author SHA1 Message Date
Aaron Ai 4e59f10687
Rearrange the file structure of RocketMQ instrumentation (#6762)
Fixes #6761
2022-09-28 13:45:59 -07:00
Trask Stalnaker 32d7febed5
Update repository settings for dependabot (#6715) 2022-09-22 16:03:36 -07:00
Trask Stalnaker 2d79f7903c
Branch protection rules for dependabot (#6674) 2022-09-20 08:39:07 -07:00
Trask Stalnaker fc0d94ce4a
Update squash merge message setting (#6649)
Resolves #6624

I've updated the setting already
2022-09-19 08:39:11 -07:00
Mateusz Rzeszutek c88dda4699
Fix jApiCmp files (#6641) 2022-09-16 13:19:03 +03:00
Trask Stalnaker d5c6453636
Remove external usages of ClassNames (and move it to internal) (#6584)
* Reduce dependency on simpleName

* Move ClassNames to internal

* Javadoc

* Updates

* Fix

* Spotless

* Rename

* Add test
2022-09-13 13:58:19 -07:00
Lauri Tulmin 7d01a221a6
Update websphere link (#6602) 2022-09-13 12:44:25 +02:00
Trask Stalnaker 91b513dd5a
Fix CI (#6594) 2022-09-12 12:14:46 -07:00
Trask Stalnaker ae209d9289
Rename ErrorCauseExtractor.jdk() to getDefault() (#6580)
* Rename ErrorCauseExtractor.jdk() to ErrorCauseExtractor.getDefault()

* jApiCmp
2022-09-12 17:36:34 +03:00
Mateusz Rzeszutek edf421ede5
Stabilize instrumentation-api and introduce jApiCmp checks (#6566)
* Stabilize instrumentation-api and introduce jApiCmp checks

* Update

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-09-09 15:26:39 -07:00
Trask Stalnaker 906f31f56e
Update Intellij doc (#6451) 2022-08-10 11:40:37 +03:00
Mateusz Rzeszutek 0d1cc8ea0a
Set http.route in spring-autoconfigure webmvc instrumentation (#6414)
* Set http.route in spring-autoconfigure webmvc instrumentation

* Bump spring-webmvc library instrumentation version to 5.3

* nit: protected -> private

* Remove duplicated test (already covered by HttpSpanStatusExtractorTest)

* Move the README to the correct module

* fix link

* fix more links

* liiiiiiinks

* fix tests

* remove not needed weakref
2022-08-09 09:36:28 -07:00
Trask Stalnaker 13305532bf
Document docker disk space (#6435) 2022-08-09 12:13:34 +02:00
Trask Stalnaker 9fe3761731
Document upper version limits (#6436) 2022-08-08 10:08:40 -07:00
Will Li c0cacb8544
add missing jboss-logmanager to supported libraries list (#6369)
* add missing jboss-logmanager to supported libraries list

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* Update docs/supported-libraries.md

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-07-25 11:38:13 -07:00
Mateusz Rzeszutek db1250d8c9
Add a dropwizard-metrics -> OTel metrics bridge (#6259)
* Add a dropwizard-metrics -> OTel metrics bridge

* disable by default

* enable metrics for test
2022-07-15 14:48:52 -07:00
Trask Stalnaker 177f0aec7c
Rename instrumentation-api-annotation-support (#6288) 2022-07-08 17:07:41 -07:00
Lauri Tulmin ae2a908256
Run tests with dubbo3 (#6247)
* Run tests with dubbo3

* remove muzzle limit

* fill peer name on dubbo 3
2022-07-01 08:14:23 -07:00
Trask Stalnaker 701ed54311
Use "class loader" instead of "classloader" consistently in docs and comments (#6236)
* Use "class loader" consistently instead of classloader

* Java comments too

* Fix bad merge
2022-06-30 14:57:07 -07:00
Mateusz Rzeszutek c978ce22f5
Update (rewrite) the javaagent structure doc; document bootstrap modules (#6227) 2022-06-28 20:23:27 -07:00
Lauri Tulmin b992e894bc
Run tests with latest play mvc (#6157)
* Run tests with latest play mvc

* restart build

* spotless
2022-06-13 13:02:15 -07:00
Lauri Tulmin 157ab7f754
Implement Oracle UCP connection pool metrics (#6099)
* Implement Oracle UCP connection pool metrics

* add additional instrumentation name

* change asserting no metrics reported after shutdown
2022-06-02 22:47:04 -07:00
jason plumb f1a746dca5
Add tomcat-jdbc connection pool metrics instrumentation (#6102)
* add tomcat-jdbc connection pool metrics instrumentation

* use duration

* code review comments

* remove unnecessary awaits

* udpate supported-libraries.md

* add comment about weakmap

* add sleeps for safety
2022-06-02 16:18:07 -07:00
Lauri Tulmin b95b64ba88
Implement Vibur DBCP connection pool metrics (#6092)
* Implement Vibur DBCP connection pool metrics

* Apply suggestions from code review

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

* address review comments

* don't check for metircs that aren't reported

* rework library test setup

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-26 11:26:02 +03:00
Lauri Tulmin a1626ccc8c
Add OSHI to supported libraries (#6073) 2022-05-20 09:11:33 -07:00
Mateusz Rzeszutek 512a040025
Remove TimeExtractor and use internal API for setting start/end timestamps (#6051)
* Remove TimeExtractor and use internal API for setting start/end timestamps

* code review comments
2022-05-19 09:03:11 -07:00
Lauri Tulmin 6c44340f1c
Enable grizzly instrumentation by default (#6049) 2022-05-17 14:18:29 -07:00
Trask Stalnaker 59618783a2
Remove tag protection rule (#6048) 2022-05-17 09:53:32 +03:00
Trask Stalnaker 18367e72a0
Doc tag protections (#6026) 2022-05-16 11:58:32 +03:00
Mateusz Rzeszutek dd5e30defd
Implement HikariCP library instrumentation (#6023) 2022-05-13 10:22:35 -07:00
Mateusz Rzeszutek 5bcab32379
Implement HikariCP connection pool metrics (#6003)
* Implement HikariCP connection pool metrics

* rebase after SDK update

* fix muzzle

* code review comments
2022-05-12 18:48:07 -07:00
Mateusz Rzeszutek 87b412fb40
Instrumentation API changes: OperationMetrics, OperationListener (#6016)
* Instrumentation API changes: OperationMetrics, OperationListener

* errorprone
2022-05-12 11:16:46 -07:00
Mateusz Rzeszutek 2fad192fc1
Implement vertx-kafka-client instrumentation; batch processing (#5982)
* Implement vertx-kafka-client instrumentation; batch processing

* try-finally just in case

* Add to supported libraries list

* Update instrumentation/vertx/vertx-kafka-client-3.6/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/v3_6/InstrumentedBatchRecordsHandler.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-10 12:00:54 +02:00
Mateusz Rzeszutek 802f5aa3ea
Instrumentation API and Javadoc cleanup (#5954) 2022-05-09 22:13:45 -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 85061691fe
Bump log4j version for library instrumentation to 2.17 (#5849)
* Bump log4j library version to 2.17

* muzzle
2022-04-19 12:11:10 -07:00
Lauri Tulmin 91066a8073
Add library instrumentation for ktor 2 (#5797) 2022-04-11 13:05:00 +03:00
Mateusz Rzeszutek 2ce1162eac
Instrumenter instrumentation version and schema url (#5752)
* Instrumenter instrumentation version and schema url

* nullable instrumentation version

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* reformat

* code review comments

* instrumentation properties files

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* code review comments

* Apply suggestions from code review

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

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-11 10:29:58 +02:00
Mateusz Rzeszutek 50f91e6dee
Deprecate AttributesExtractor#set() method (#5749)
* Deprecate AttributesExtractor#set() method

* code review comments
2022-04-05 20:20:02 -07:00
Mateusz Rzeszutek 39e1fcb48e
Rename view and controller suppression config properties (#5747)
* Rename view and controller suppression config properties

* code review comments
2022-04-05 14:24:24 -07:00
Trask Stalnaker 5b0d9e31ce
Remove old status check (#5750) 2022-04-04 14:22:51 -07:00
Andreas Grub e6be68d5c7
Use `logging.pattern.level` recommended by Spring (#5726)
* Use `logging.pattern.level` recommended by Spring

The Spring Boot documentation recommends using `logging.pattern.level` in a "Tip" section in https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.logging.custom-log-configuration

We should follow this best practice.

* Update docs/logger-mdc-instrumentation.md

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-04-04 11:17:11 -07:00
Patrice Chalin 2ccee759ef
Delete suppressing-instrumentation.md (#5712) 2022-03-30 13:32:50 -07:00
Patrice Chalin 32c3f45039
Delete docs/config directory (#5707)
- Contributes to https://github.com/open-telemetry/opentelemetry.io/issues/1229
- The content has been moved to the OTel website via https://github.com/open-telemetry/opentelemetry.io/pull/1246
2022-03-30 09:56:49 +02:00
Trask Stalnaker da036f0b50
Move advanced config to separate page (#5693) 2022-03-28 10:00:23 -07:00
Patrice Chalin e908b7fc71
docs: drop suppressing-instrumentation page and script (#5694) 2022-03-25 11:10:21 -07:00
Patrice Chalin 6eb15dbadc
Drop docs/agent-config.md and link to OTel.io version (#5683) 2022-03-25 09:59:06 -07:00
Trask Stalnaker c73da76ec1
Document another repo setting (#5654) 2022-03-21 18:29:06 -07:00
Trask Stalnaker 38ad4136ee
Move update gradle doc to script (#5642) 2022-03-21 08:48:43 -07:00
Trask Stalnaker 9d445bd0b9
Fix markdown links (#5638) 2022-03-20 14:02:05 +02:00
Trask Stalnaker 3fc684ade6
Document repository settings (#5614) 2022-03-18 10:32:39 +02:00
Trask Stalnaker 4facb78c7a
Update docs to reflect Java 17 (#5610)
* Update docs to reflect Java 17

* Update JVM distros
2022-03-18 10:31:25 +02: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
Patrice Chalin 9904352ef6
Drop manual-instrumentation and redirect to otel website pages (#5516) 2022-03-08 09:53:49 +01:00
Mateusz Rzeszutek 4ef6d165a9
Disable the messaging receive span telemetry by default (#5500)
* Disable the messaging receive span telemetry by default

* fix spring-kafka tests

* remove no longer needed link from the kafka-clients library instrumentation

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-07 22:30:40 -08:00
Trask Stalnaker ab9169cd25
Add Azure SDK instrumentation (#5467)
* Add Azure SDK instrumentation

* Add to supported libraries table

* Keep suppression for 1.19
2022-03-04 13:08:50 -08:00
Trask Stalnaker 3ab1b8516f
Add markdown spell check (#5450)
* Add markdown link check

* Fix links

* update workflows

* move comment

* Add misspell check

* Fix misspellings

* Fix more misspellings

* Run against all files

* Spotless
2022-03-01 19:18:53 -08:00
Trask Stalnaker 5133f99cca
Fix out-of-sync suppressing-instrumentation.md (#5472) 2022-03-01 11:25:55 +02:00
Trask Stalnaker 8d18e463ea
Add markdown link check (#5449)
* Add markdown link check

* Fix links

* update workflows

* move comment
2022-02-28 11:30:16 -08:00
Trask Stalnaker bd7bf94d71
Move http4k to library instrumentation docs (#5426)
* Move http4k to library instrumentation docs

* Update docs/standalone-library-instrumentation.md

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-02-22 21:12:38 -08:00
landrunner 97ae5da79a
Fix broken links (#5423)
* fix broken links

* Update docs/standalone-library-instrumentation.md

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-02-22 12:57:59 -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 aa2ac33b70
Rename scala-executors module (#5273) 2022-01-29 13:27:16 -08:00
Trask Stalnaker 1832772ccd
Update supported libraries (#5092)
* Update supported libraries

* One row per library
2022-01-13 18:02:08 -08:00
Trask Stalnaker c3e0c258d7
Update style guide regarding final local vars (#5055) 2022-01-10 10:01:08 +02:00
Trask Stalnaker 1d453debe3
Update log4j instrumentation docs (#4915)
* Update log4j instrumentation docs for 1.10.0 release

* More log4j doc changes for 0.10.0

* Updates for #4937

* Fix log4j documentation

* Update instrumentation/log4j/log4j-2.16/library/README.md

Co-authored-by: jack-berg <jberg@newrelic.com>
2022-01-04 20:55:36 -08:00
Trask Stalnaker d930971adf
Fix Quarkus correlation (#4883)
* Fix Quarkus correlation

* Add Quarkus smoke test image

* Add Quarkus smoke test

* Fix permission on gradlew

* Update to gradle 7.3.1

* Fix Jib build

* Bump compilation to Java 11

* Better comment

* Fix comment placement

* Fix
2021-12-13 09:26:44 -08:00
Lauri Tulmin b4784c8432
Update supported frameworks and suppressing instrumentation docs (#4818)
* Update supported frameworks and suppressing instrumentation docs

* Update docs/suppressing-instrumentation.md

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-12-07 11:49:59 +02:00
Lauri Tulmin 61b0dd3698
Capture servlet request parameters (#4703)
* Capture servlet request parameters

* use concurrenthashmap for cache
2021-12-05 21:25:31 -08:00
Trask Stalnaker f7efe07b06
Merge start and end time extractors (#4692) 2021-11-29 22:07:49 -08:00
Trask Stalnaker 09d5883fb8
Update supported application servers (#4715)
* Update naming to Payara

* Alphabetize

* Update supported application servers

* A little more clarity?
2021-11-25 08:15:35 -08:00
Trask Stalnaker f9146bcf48
Update other gradle wrappers to 7.3 (#4705) 2021-11-24 13:19:53 -08:00
Trask Stalnaker ea7588cd15
Update references to master branch (#4706) 2021-11-24 13:11:21 -08:00
Lauri Tulmin db0d0c350a
Change supported websphere version from 8.5.x to 8.5.5.x (#4668) 2021-11-18 15:42:15 +02:00
Lauri Tulmin 4e39f1ad5a
Add smoke test for websphere, update smoke test server versions (#4613)
* Add smoke test for websphere, update smoke test server versions

* update workflows

* fix workflow

* Apply suggestions from code review

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

* revert accidental change

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-10 13:43:30 -08:00
Lauri Tulmin 16728e2445
Add a ClassAndMethod class to Instrumentation API (#4619)
* Add a ClassAndMethod class to Instrumentation API

* remove sentence

* Update docs/contributing/writing-instrumentation.md

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

* address review comment

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-10 13:33:11 -08:00
Trask Stalnaker 8b15b483b8
Update spring-integration instrumentation name (#4601) 2021-11-08 08:47:09 -08:00
Mateusz Rzeszutek f3ec9a215b
Document Instrumenter API (#4544)
* Document Instrumenter API

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>

* reformat and code review comments

* code review comments

* Apply suggestions from code review

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

* formatting

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-11-05 15:15:48 +01:00
Trask Stalnaker 472fb5024e
Remove roadmap to 1.0 (#4542) 2021-10-29 10:16:17 +03:00
Fabrizio Ferri-Benedetti 114a1b455c
Review "writing-instrumentation-module.md" (#4507)
* Review "writing-instrumentation-module.md"

A peer review of "writing-instrumentation-module" for language and style, as requested by @mateuszrzeszutek .

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

* Update docs/contributing/writing-instrumentation-module.md

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update writing-instrumentation-module.md

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Update docs/contributing/writing-instrumentation-module.md

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

* Apply suggestions from code review

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

* Spotless

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-27 21:07:22 -07:00
Mateusz Rzeszutek 23b95901f5
Update and extend the writing-instrumentation.md doc (#4443)
* Update and extend the writing-instrumentation.md doc

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* Reformat; added a tiny bit of explanation about the classloader separation thing

* Apply suggestions from code review

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

* fix that 'testing strategy' part

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-25 13:21:50 -07:00
Mateusz Rzeszutek 05a391459b
Stabilize HTTP headers capturing configuration property names (#4459)
* Stabilize HTTP headers capturing configuration property names

* code review comments
2021-10-21 21:56:20 -07:00
jason plumb e1b4054e52
Update to latest version (from 1.0.0) (#4361)
Not sure how frequently we want to update the docs like this, but it seemed that quite some time had passed.
2021-10-19 15:24:11 -07:00
Mateusz Rzeszutek be55b2aac6
Update muzzle and InstrumentationModule docs after latest changes (#4412)
* Update muzzle and InstrumentationModule docs after latest changes

* additional comment
2021-10-19 13:44:15 -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
Mateusz Rzeszutek 5e7b5380cd
Remove mentions of http.url attribute in server instrumentations (#4394) 2021-10-15 11:00:50 -07:00
Trask Stalnaker b0430f2b79
Minor doc update (#4383) 2021-10-14 19:27:32 -07:00
Mateusz Rzeszutek 2fbec93313
Document captured HTTP headers configuration options (#4321)
* Document captured HTTP headers configuration options

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* Reformatting after applying comments

* Update docs/config/common.md

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

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-08 10:53:10 -07:00
Mateusz Rzeszutek fd872b0d8a
Fix table in manual instrumentation doc (#4322) 2021-10-07 13:33:40 -07:00
Nikita Salnikov-Tarnovski 9bbd490288
Remove last muzzle generate method from InstrumentationModule (#4281)
* Remove last muzzle generate method from InstrumentationModule
2021-10-05 14:43:21 +03:00
Trask Stalnaker 9edb3fd4f5
Rename smoke test image modules (#4295)
* Move under images directory

* Update references

* More

* Rename matrix to servlet

* executable

* Missed rename
2021-10-05 15:47:01 +09:00
Mateusz Rzeszutek 9d6fb65b41
Remove ContextStore/InstrumentationContext mentions from internal age… (#4267)
* Remove ContextStore/InstrumentationContext mentions from internal agent classes

* Fix internal-reflection module
2021-10-04 09:24:25 -07:00
Trask Stalnaker 92394ad9ae
Remove url from HttpServerAttributesExtractor (#4209)
* Remove url from HttpServerAttributesExtractor

* Remove UriBuilder

* Tracers too

* apache-camel

* Finatra

* jsp

* Ratpack

* Ratpack library

* Ratpack

* Spark

* Feedback

* Fix Undertow

* Vertx

* vertx-web

* play-2.4

* webflux

* jaxrs

* Spotless

* Update semantic-conventions.md

* Update smoke tests

* More realistic target

* Remove outdated doc

* Wording
2021-10-03 09:17:23 -07: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
Akash Suresh 1c35e2adbb
Update doc on suppressing instrumentation (#4143)
* Update doc on suppressing instrumentation

* Review feedback
2021-09-17 09:40:40 -07:00
Trask Stalnaker d2794fa231
Add Intellij troubleshooting tips (#4117)
* Add Intellij troubleshooting tips

* Rename doc and link?
2021-09-14 09:54:34 -07:00
Trask Stalnaker 1c3c3795dc
Update gradle wrapper doc (#4119) 2021-09-13 20:08:07 -07:00
Nikita Salnikov-Tarnovski 78a3ba0692
Expand documentation for client span suppression (#4109)
* Expand documentation for client span suppression

Added a little explanation of the use-cases when such suppression may be useful.

/cc @lmolkova

* Update docs/suppressing-instrumentation.md

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-09-13 11:40:37 -07:00
Trask Stalnaker f964a13fc9
Update Intellij setup docs (#4103) 2021-09-13 09:27:15 -07:00
Trask Stalnaker 2d79e6a6ef
Upgrade all gradle wrappers (#4107)
* Upgrade all gradle wrappers

* Add doc
2021-09-13 16:16:10 +09: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
Trask Stalnaker dee98a0a9d
Update google docs sources links (#4079) 2021-09-10 10:55:02 -07:00
Sunny Srivastava 50a94bfb73
Better ClassLoader State and initialization-sequence diagrams (#4072)
* update Classloader state Diagram for darkmode

* update diagram for better view in darkmode

* update initialization-sequence diagram for darkmode
2021-09-09 11:46:24 -07:00
Mateusz Rzeszutek d6c8e3a1f2
Update supported libs list (#4077) 2021-09-09 08:07:04 -07:00
Liudmila Molkova dc69d5fb56
Add documentation for suppression by type flag (#3990)
* Update suppressing-instrumentation.md

* lint

* better suppression strategy description
2021-09-08 15:05:12 -07:00
Dimitar Manev d185377399
"./gradlew :instrumentation:google-http-client-1.19:muzzle" is failing (#4043)
I figured out there is missing string in between while running:
```
./gradlew help --task muzzle
...
    :instrumentation:google-http-client-1.19:javaagent:muzzle
     :instrumentation:grails-3.0:javaagent:muzzle
     :instrumentation:grizzly-2.0:javaagent:muzzle
     :instrumentation:grpc-1.6:javaagent:muzzle
...
```
2021-09-01 19:28:38 -07:00
Nikita Salnikov-Tarnovski 28db0c30cd
Deprecate old extensions (#3825)
* Introduce stable property for external extensions

* Update docs to use stable extension property.

Also log a warning if deprecated otel.javaagent.experimental.exporter.jar is used.

* Format

* Format

* Polish
2021-08-25 13:59:17 -07:00
Nikita Salnikov-Tarnovski 40490a8a0f
Remove khttp from the list of supported libraries (#3769) 2021-08-04 14:34:36 +03:00
Fabrizio Ferri-Benedetti c24da7bdd7
Improve extension sample documentation and add it to the README file (#3656)
* First commit

* Update examples/extension/README.md

Co-authored-by: John Watson <jkwatson@gmail.com>

* Update README.md

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

* Update docs/agent-config.md

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

* Update examples/extension/README.md

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

* Update examples/extension/README.md

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

* Update examples/extension/README.md

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

* Edits

* Readme update

Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-07-26 12:34:53 +03: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
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
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 1e57fd0f54
Enable smoke-tests iff specified on command line (#3542)
* Enable smoke-tests iff specified on command line

* README
2021-07-12 13:29:48 +03:00
Trask Stalnaker da75a7a6c6
Style guide section for Nullable annotation usage (#3499)
* Style guide section for Nullable annotation usage

* Set default to non-null

* More doc

* Review feedback
2021-07-08 08:54:26 -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
Lauri Tulmin 82ea8dbc24
Small typo in doc (#3433) 2021-06-29 14:37:12 +03: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 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 f1beb2397f
Intellij cleanup of markdown and yaml (#3284)
* Intellij cleanup of markdown and yaml

* Revert required yaml param
2021-06-14 13:13:01 +03:00
Trask Stalnaker b8b2760b44
Sync style guide with otel-java repo (#3265) 2021-06-14 10:02:24 +03:00
Trask Stalnaker e9a8beb231
Document final keyword usage in code style (#3287)
* Document final keyword usage in code style

* Update docs/contributing/style-guideline.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-06-14 15:36:41 +09:00
Trask Stalnaker e9c3df6dac
Static factory method ordering (#3206) 2021-06-07 15:29:30 -07:00
Trask Stalnaker ac30b3c185
Add SuppressWarnings("unused") on Advice classes (#3207)
* Add SuppressWarnings unused on Advice classes

* And in doc
2021-06-07 16:00:21 +09:00
Trask Stalnaker 9a3c657291
Add library instrumentation docs (#3176) 2021-06-03 14:14:37 -07:00
Mateusz Rzeszutek 6fb3ec0501
Do not use arrays in InstrumentationModule (#3057)
* Do not use arrays in InstrumentationModule

* add missing cast
2021-05-24 13:51:07 +02:00
Jakub Wach a360ea4ed3
agent config - small link fix (#3035) 2021-05-19 09:53:54 -07:00
Mateusz Rzeszutek bb8f515083
Refactor TypeInstrumentation#transformers() method (#3019)
* Refactor TypeInstrumentation#transformers() method part 1

Add TypeInstrumentation and its implementations

* Refactor TypeInstrumentation#transformers() method part 2

Use the new method in all existing TypeInstrumentation implementations

* Drift

* Spotless

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-18 09:50:26 +02:00
Trask Stalnaker 500590e597
Add Java HttpClient to docs (#3001) 2021-05-17 12:13:30 -07:00
Anuraag Agrawal 95c16c4a3c
Start migrating Muzzle plugin to Java (#2996) 2021-05-15 16:22:05 +09:00
Mateusz Rzeszutek a72a7838f0
Load InstrumentationModules using InstrumentationLoader (#2971)
* Load InstrumentationModules using InstrumentationLoader

* writing-instrumentation-module doc improvement

* spotless
2021-05-13 14:12:53 +02:00
Anuraag Agrawal 08c155add3
Update supported gRPC version (#2952) 2021-05-10 18:37:58 +03:00
Trask Stalnaker 9ff720431e
Consolidate misc docs (#2939) 2021-05-09 17:05:10 -07:00
Mateusz Rzeszutek 9c7fae3b04
Extract javaagent-extension-api from tooling & spi (#2879) 2021-05-06 23:30:25 -07:00
Lauri Tulmin 30b1f3df3b
Add supported jax-rs and jax-ws frameworks (#2921) 2021-05-06 22:19:25 +03:00
Mateusz Rzeszutek 169f99554d
Minor improvement in the writing-instrumentation-module.md doc (#2871) 2021-04-27 13:04:18 -07:00
YuDong Tang 334c6ec0b5
fix db.operation in semantic-conventions.md (#2858) 2021-04-23 17:52:04 -07:00
Trask Stalnaker 7381304e06
Rename java http client module (#2856) 2021-04-23 11:20:42 -07:00
Trask Stalnaker e54eb2ca03
Add doc how to run smoke tests (#2840) 2021-04-22 11:37:18 -07:00
Jakub Wach f956a58c0a
resolved TODO - instrumentation names in suppressing doc (#2755)
* resolved TODO - instrumentation names in suppressing doc

* changed to include only unversioned names

* Update docs/suppressing-instrumentation.md

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

* Added lib name to table

* Update docs/suppressing-instrumentation.md

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

* review changes

* review changes

* Update docs/suppressing-instrumentation.md

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-04-21 13:26:13 -07:00
Mateusz Rzeszutek 95f8342558
Deprecate additionalHelperClassNames (#2810)
* Deprecate additionalHelperClassNames

* Deprecate additionalHelperClassNames
2021-04-16 10:11:11 +02:00
Mateusz Rzeszutek 2d59d25961
Writing InstrumentationModule line by line (#2793) 2021-04-14 10:52:31 -07:00
Trask Stalnaker d741dc48b9
Minor rename of javaagent unit test modules (#2784) 2021-04-13 12:36:30 +03:00
Trask Stalnaker eb81e8958c
Remove play-2.3 instrumentation and remove typesafe repo (#2783)
* Remove typesafe repo

* Use play 2.3.9 instead of 2.3.0

* Exclude missing optional dependency

* Remove play-2.3 module

* Update supported libraries doc
2021-04-13 11:50:29 +03:00
Trask Stalnaker 3dcb29d1ea
Update supported library versions (#2766)
* Update supported library versions

* Lettuce too
2021-04-11 13:04:03 +03:00
jack-berg 035b3f42f7
Fix build and documentation typos related to autoconfigure SPI. (#2719) 2021-04-05 18:22:34 -07:00
Nikita Salnikov-Tarnovski 8f4056ba03
Update supported-libraries.md (#2717)
Update TOC
2021-04-05 12:03:50 +03:00
Nikita Salnikov-Tarnovski 08bc71b3ec
Update semantic-conventions.md (#2716)
Cleanup of the removed attribute
2021-04-05 11:01:31 +03:00
Ago Allikmaa 19cf89ec1e
Document supported JVMs as a separate section (#2704) 2021-04-05 08:58:57 +03:00
Lauri Tulmin 3f5980f9b8
Add support for Tapestry web framework (#2690) 2021-04-01 17:56:55 -07:00
Mateusz Rzeszutek 1406855bb7
Revert "Prevent duplicate telemetry when using both library and auto instrumentation (#2661)" (#2689) 2021-04-01 16:11:15 -07:00
Mateusz Rzeszutek 30434696ae
Prevent duplicate telemetry when using both library and auto instrumentation (#2661)
* Prevent duplicate telemetry when using both library and auto instrumentation

* Add unit test

* Fix Oshi tests

* Fix couchbase 3.1 tests
2021-03-31 10:57:04 -07:00
Lauri Tulmin 3c11613aed
Add support for GWT (#2652)
* Add support for GWT

* formatting

* review fixes
2021-03-29 19:41:03 +03:00
Lauri Tulmin b999e8a2f5
Add support for vaadin web framework (#2619)
* Add support for vaadin

* rename test

* review fixes

* rename module

* review fixes

* Trigger Build

* don't load advice classes
2021-03-29 11:35:22 +03:00
Nikita Salnikov-Tarnovski bb5f2c5ece
Constaing latest support version of Apache Dubbo (#2628)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-25 22:39:43 -07:00
addname 5bd148ca9b
Update supported libraries doc for rocketmq (#2575) 2021-03-15 13:27:11 +02:00
Lauri Tulmin ff3542eff8
Fix prematurely ending server span on undertow (#2560)
* Fix permaturely ending server span on undertow

* Trigger Build

* Add undertow to supported frameworks

* Review fixes

* Update instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy

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

* Update instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy

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

* Review fixes

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-12 16:52:33 +02:00
jason plumb 182574a672
give `service.name` additional visibility within the resource def. (#2563) 2021-03-12 08:47:01 +02:00
John Watson 5af8bef834
Update the agent-config docs. (#2551)
This provides more direct linking to the auto-instrumentation docs that people might need.
2021-03-11 11:25:37 -08:00
Lauri Tulmin 7013376030
Add support for Grails (#2512)
* Add support for Grails

* exclude bad version from muzzle

* Review fixes

* review fixes

* rebase

* Trigger Build
2021-03-09 08:56:33 +02:00
Trask Stalnaker 3d6da76962
Update doc for next release (#2473) 2021-03-07 12:17:13 -08:00
Lauri Tulmin 7df5579768
Add support for elasticsearch7 (#2514)
* Add support for elasticsearch7

* Fix formatting
2021-03-07 13:10:21 +02:00
Mateusz Rzeszutek 603bdf7155
Document DB statement sanitization (#2451) 2021-03-02 10:26:00 -08:00
Trask Stalnaker 475830789c
Update to otel-java 1.0.0 (#2431)
* Update to otel-java 1.0.0

* Fix test

* Fix another test

* Fix another test

* Fix hibernate tests

* Fix spring-data tests

* Spotless
2021-02-28 11:15:27 -08:00
Anuraag Agrawal 3ff8d0bcef
Link to autoconfigure docs. (#2395) 2021-02-24 15:58:39 +09:00
jason plumb 868af7b8e2
update version in docs (#2391) 2021-02-23 19:57:07 -08:00
Nikita Salnikov-Tarnovski b43391fedf
Add proper integration for AsyncHttpClient 2+ (#2348)
* Reworking context propagation for Netty 4.0

* Spotless

* Add proper integration for AsyncHttpClient 2+

* Polish

* Polish
2021-02-23 08:09:31 +02:00
Mateusz Rzeszutek efa99f0bbe
Update logger MDC docs (after #2312) (#2313) 2021-02-20 19:00:43 -08:00
Trask Stalnaker 54e9cd5d5f
Update MDC docs to reflect log spec naming (#2303) 2021-02-17 14:52:10 +02:00
Christian Neumüller 5d8464305e
writing-instrumentation.md: Fix section hierarchy (#2287) 2021-02-15 15:08:09 +02:00
Trask Stalnaker 723a08ac4f
Fix references of otel.trace. to otel.traces. (#2269) 2021-02-13 11:16:25 -08:00
Anuraag Agrawal d3931912f2
Update README for env var rename in 0.16.0 (#2258)
* Update README for env var rename in 0.16.0

* moar
2021-02-12 12:41:41 +02:00
jason plumb ca21955bd9
README and docs reorg (#2226) 2021-02-09 11:01:35 -08:00
Anuraag Agrawal fc410706d0
Update to Sdk 0.16.0 (#2221)
* Update to 0.16.0-SNAPSHOT

* Finish

* Finish

* Update to 0.16.0

* Finish
2021-02-09 18:00:54 +09:00
Mateusz Rzeszutek 61f86a78b8
Improve muzzle docs: assertInverse, extraDependency (#2158) 2021-02-02 11:53:10 +09:00
jason plumb 66dc6c934f
Document the static imports (style guidelines) (#2161)
* document the static imports that we like

* spotless

* Update docs/contributing/style-guideline.md

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-02 11:04:56 +09:00
Mateusz Rzeszutek 93b3a3b289
testing-common refactoring: replace direct AgentTestRunner usage with… (#2134)
* 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
2021-02-01 11:32:25 +01:00
Anuraag Agrawal 3dc615eeca
Add a checklist of agent BCI features (#2033)
* Add a checklist of agent BCI features

* Disable / enable

* Apply suggestions from code review

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-14 10:10:49 +09:00
Sergei Malafeev f3334c3990
document how to enable only manual instrumentation (#2028)
* #1994 document how to enable only manual instrumentation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* Update docs/suppressing-instrumentation.md

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-13 12:59:47 +09:00
Lauri Tulmin 640a7d624b
Correct some spelling mistakes (#2025) 2021-01-12 11:10:45 -08:00
Anuraag Agrawal 8d74baa2e4
Run tests with javaagent. (#1643)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-04 13:13:24 -08:00
Lauri Tulmin 79433966fb
Liberty server span handling (#1929)
* Liberty server span handling

* review fixes

* review fixes

* add doc about using compile stubs

* Update instrumentation/liberty/liberty/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/LibertyInstrumentationModule.java

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

* Update instrumentation/liberty/liberty/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/ThreadLocalContext.java

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

* add links to advice classes

* add commnet, remove unneeded dependency

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-12-22 15:00:58 +02:00
Pavol Loffay f69217e2a4
Add ComponentInstaller SPI and use it for OpenTelemetry SDK (#1848)
* Add component installer SPI

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>

* Move more code to agent installer

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-12-18 08:55:24 +02:00
Anuraag Agrawal 49fdaee2ee
Add document outlining safety mechanisms of java agent. (#1925)
* Add document outlining safety mechanisms of java agent.

* smoke tests

* Cleanup
2020-12-17 17:27:32 +09:00
jason plumb c800c0dc87
Document advice class name hard coding (#1881) 2020-12-14 13:14:57 -08:00
Anuraag Agrawal 91a9e1885e
Replace java test version rule with property. (#1769)
* Replace java test version rule with property.

* Fix enabled check

* Update java.gradle
2020-11-26 16:53:20 +09:00
Trask Stalnaker 325238f128
Rename otel.trace.classes.excludes to otel.javaagent.exclude-classes (#1747)
* Rename otel.trace.classes.excludes

* Spotless
2020-11-25 16:53:49 +02:00
Mateusz Rzeszutek 13c405c174
Make muzzle generate helperClassNames() method (#1714) 2020-11-24 10:07:22 -08:00
Trask Stalnaker 3b480f5e50
Rename otel trace properties (#1740)
* Rename otel.trace.enabled

* Rename otel.trace.debug

* Rename otel.trace.config

* Rename otel.trace.runtime.context.field.injection

* Rename otel.instrumentations.enabled

* Document otel.javaagent.enabled
2020-11-23 14:53:18 -08:00
Trask Stalnaker 516242af70
Add doc about calling default methods from advice (#1737) 2020-11-23 15:50:12 +02:00
Mateusz Rzeszutek 1a23ac3027
Standardize instrumentation names in InstrumentationModules (#1648)
* Standardize instrumentation names in InstrumentationModules

* rename gradle modules:
  * vertx-3.0 to vertx-web-3.0
  * spark-web-framework-2.3 to spark-2.3
* add JavaDoc describing the naming rules to InstrumentationModule
2020-11-17 13:30:28 -08:00
Trask Stalnaker 6d5ec329d6
Enable checkstyle for google style guide (#1641) 2020-11-16 18:46:59 -08:00
Anuraag Agrawal d435da4638
Update to Gradle 6.7 and use new toolchains feature for testing on Ja… (#1627)
* Update to Gradle 6.7 and use new toolchains feature for testing on Java versions.

* Update docs

* Add back sum

* Use GitHub test JDK for toolchain.

* Use maxJavaVersionForTests for default test version when set.

* Fix RMI

* Fix configs

* Go back to rule

* Extract variable for default Java version.
2020-11-16 10:29:36 +02:00
Trask Stalnaker 8e48aa2025
Add problem statement (#1639) 2020-11-14 22:56:07 -08:00
Pavol Loffay 5e568e6d06
Add classloading diagram to contributing docs (#1612) 2020-11-12 21:12:49 -08:00
Trask Stalnaker efe4110e27
Doc changes associated with PR #1412 (#1413)
Since doc change should wait until the next release is made.
2020-11-12 10:43:29 +02:00
Mateusz Rzeszutek 402a0a1639
Remove Instrumenter.Default (#1610) 2020-11-10 12:42:29 -08:00
Trask Stalnaker 27ee234596
Add interoperability design doc (#1597) 2020-11-09 15:00:21 +02:00
Nikita Salnikov-Tarnovski 7b64184701
Smoke tests using Jaeger and Zipkin exporters (#1543) 2020-11-02 20:50:14 -08:00
Nikita Salnikov-Tarnovski 947a316bb6
Add links to some issues (#1542) 2020-11-02 20:48:23 +02:00
Pavol Loffay bdf2a91290
Rename printReferences gradle task to printMuzzleReferences (#1517)
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-29 15:37:38 +09:00
Anuraag Agrawal f6ad05b8e3
Update to latest SDK snapshot (#1384)
* Update to latest SDK snapshot

* Use published snapshot

* Fixes

* Cleans

* spotless

* Most

* Clean

* Merge

* Temporarily remove context interop

* WIP

* Prepare for intercepting propagated span

* Bump SDK

* IDE updates

* Lots

* compileJava

* Done?

* bar

* Spot

* drugs

* Groovy--

* green for me

* Spot

* Remove grpc import

* Scrub
2020-10-25 15:14:32 +09:00
Mateusz Rzeszutek ee0e0a9697
Muzzle improvements: docs, javadocs, renamings and minor refactoring (#1379) 2020-10-14 16:49:51 -07:00
Trask Stalnaker 7ecc9bb37b
Rename "auto" to "javaagent" in modules (#1370) 2020-10-13 12:32:13 -07:00
Nikita Salnikov-Tarnovski 34d6cc5f60
Update ga-requirements.md (#1378)
Check off already done things.
2020-10-13 10:09:15 +03:00
Nikita Salnikov-Tarnovski f23ad29187
Messaging convention reviewed (#1297)
* Kafka reviewed

* Kafka Streams reviewed

* JMS reviewed

* RabbitMQ reviewed

* Format

* Format

* Polish

* Add comments

* Update parents as per spec proposal

* Cleanup

* Remove Operation enum

* muzzle

* Fix build

* Polish

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-13 09:16:58 +03:00
Trask Stalnaker 480147307a
Revert broken png file (#1377) 2020-10-12 20:13:37 -07:00
Trask Stalnaker 1b51d4a6b1
Rename packages (#1367) 2020-10-11 13:54:35 -07:00
Bill O'Neil c79c235fe4
Update suppressing-instrumentation.md (#1361) 2020-10-09 13:12:52 -07:00
Mateusz Rzeszutek ce4414e9dd
Logging instrumentation: always log sampled flag value (#1347) 2020-10-08 10:58:57 -07:00
Mateusz Rzeszutek aa3bbae200
Document traceId/spanId injection into logs (#1339)
* Document traceId/spanId injection into logs

* Document traceId/spanId injection into logs
2020-10-08 15:41:07 +03:00
Nikita Salnikov-Tarnovski 88707c3bb0
Review DB semantic conventions (#1284) 2020-10-01 11:17:09 -07:00
Trask Stalnaker c8c8eb8c0b
Update debugging doc (#1296) 2020-10-01 11:13:31 -07:00
Pavol Loffay f48579a84f
Add high level Muzzle docs (#1270) 2020-09-29 12:46:08 -07:00
Pavol Loffay 2794d469cf
Fix typo (#1272)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-28 16:23:37 +09:00
Pavol Loffay 42c9ee53a4
Add debugging docs (#1263) 2020-09-27 12:52:54 -07:00
Pavol Loffay 91b177165c
Bump Java from 14 to 15 in CI (#1252)
* Bump Java from 14 to 15 in CI

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Review comments

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* adjust comment

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Bump jacoco to 0.8.6

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* maxJavaVersionForTests

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-24 15:27:33 +03:00
Trask Stalnaker b9bbcd85a9
Update testLatestDeps doc (#1238) 2020-09-23 07:37:05 +03:00
Jamal Fanaian 5598544318
Add otel prefix to excluded classes properties (#1231)
The documentation doesn't include the property prefix that is required to use this. The change just adds `otel.` and `OTEL_` prefix to the property table.
2020-09-21 19:53:24 -07:00
Nikita Salnikov-Tarnovski b240cf95e7
Review semantic convention for RPC spans (#1219)
* Review gRPC semantic conventions

* Review RMI semantic conventions

* Muzzle fix

* Update compliance table

* Update compliance table
2020-09-20 12:13:47 +03:00
Nikita Salnikov-Tarnovski beb1901f5f
Review semantic convention for Http Client spans (#1214)
* Review semantic convention for Http Client spans

* Polish

* Update instrumentation/google-http-client-1.19/src/test/groovy/AbstractGoogleHttpClientTest.groovy

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-09-18 17:52:08 +03:00
Nikita Salnikov-Tarnovski 7e41b516ee
Review semantic convention for Http Server spans (#1207)
* Review semantic convention for Http Server spans

* Polish
2020-09-16 09:52:11 +03:00
Jakub Wach 7080bdb9a4
spring mvc3 - proper span name in case of sec fail (#718) (#1122) 2020-09-09 10:08:28 +03:00
dengliming 95ad352d77
Fix doc link. (#1088) 2020-08-23 23:04:22 +03:00
Trask Stalnaker 87170b16d1
Rationale for not supporting Java 7 (#1068) 2020-08-21 17:42:40 -07:00
Trask Stalnaker 6df6e6f7c3
Instrumentation prioritization (#1037) 2020-08-18 15:58:30 -07:00
Trask Stalnaker d9dca25402
Remove unused javaSubPackage config (#1020) 2020-08-16 21:18:10 -07:00
Trask Stalnaker ac5f041fb9
Rename javaagent-bootstrap's Agent class to AgentInitializer (#1018)
* Rename bootstrap Agent class

* Rename start method to initialize
2020-08-16 22:05:02 +03:00
Trask Stalnaker 7159d04b8d
Change groovy import order (#1013)
* Update docs

* Format all groovy code

* Organize imports
2020-08-15 23:19:27 -07:00
Trask Stalnaker f893ca540b
Scripted package renaming (#988) 2020-08-15 21:55:01 -07:00
Anuraag Agrawal c845a5308d
To suppress, should set enabled to false (#978) 2020-08-14 13:34:49 +03:00
Trask Stalnaker 7818e33178
Package renaming (#970) 2020-08-13 20:14:46 -07:00
Trask Stalnaker a0dc9ba19c
Rename Pre-Main class (#955) 2020-08-13 10:58:33 -07:00
Trask Stalnaker bf9c160570
Rename javaagent modules (#952) 2020-08-12 22:50:14 -07:00
Nikita Salnikov-Tarnovski e26801482c
Add document describing current problem with context propagation (#910)
* Add document describing current problem with context propagation

* Update docs/contributing/inter-thread-context-propagation.md

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

* Update docs/contributing/inter-thread-context-propagation.md

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

* More clarifications

* More clarifications

* Better example

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-12 20:33:07 +03:00
Anuraag Agrawal 0eafc28608
Run tests using JUnit5 platform and remove SpockRunner (#770)
* Run tests with JUnit platform

* Matcher

* Restore

* Don't mix JUnit4 with JUunit5 in spring tests

* Separate out tests that need custom class loader.

* Separate out test for a couple classes that need it, try to remove SpockRunner, but Grizzly?

* Remove SpockRunner

* Fix grizzly

* Remove assumeTrue workaround.

* Comments
2020-08-12 11:05:26 +09:00
Trask Stalnaker b5fbf90977
Extract instrumentation api module (#884) 2020-08-09 22:52:33 -07:00
Trask Stalnaker ae4c133220
Remove save actions setting from contributing doc (#886) 2020-08-03 21:53:28 -07:00
Trask Stalnaker b9748e06b7
Define the repository scope (#751) 2020-08-02 12:07:08 -07:00
Trask Stalnaker 2af43dbf26
Rename trace.methods.exclude config (#842) 2020-07-31 12:30:08 -07:00
Nikita Salnikov-Tarnovski 9eb8ba7f86
Update ga-requirements.md (#808)
Add link to smoke tests improving issue #298
2020-07-27 21:59:54 +03:00
Trask Stalnaker 7418143f5e
Split up the CONTRIBUTING doc (#784)
* Split up the CONTRIBUTING doc

* spotless
2020-07-25 13:54:14 +03:00
Trask Stalnaker d84549e351
Trim down a P1 GA requirement and link from README (#773) 2020-07-23 21:11:58 +03:00
Trask Stalnaker 3b58151579
Add GA requirements doc (#734)
* Add GA requirements doc

* Address feedback

* Update docs/ga-requirements.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Address feedback

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-07-23 17:26:58 +03:00
Trask Stalnaker 6bb31f5c54
Update save actions (#520)
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-15 07:46:12 +03:00