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
John Watson
4c1144ce78
Distinguish between the various servlet tracers for easier debugging. ( #1979 )
...
* Distinguish between the various servlet tracers for easier debugging.
* change to use the `common` suffix for that module
* Update instrumentation/servlet/servlet-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v2_2/Servlet2HttpServerTracer.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation/servlet/servlet-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v3_0/Servlet3HttpServerTracer.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation/servlet/servlet-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/dispatcher/RequestDispatcherTracer.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation/servlet/servlet-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/http/HttpServletResponseTracer.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-01-20 16:33:13 +02:00
Lauri Tulmin
9825ab0afa
Instrument jsf action calls ( #2018 )
2021-01-19 21:34:41 -08:00
Mateusz Rzeszutek
660f0e5225
Remove testing-common dependency on guava ( #2062 )
...
* Remove testing-common dependency on guava
* Use nano time
* Add guava dep to opentelemetry-api-metrics
2021-01-19 12:07:27 +09:00
Anuraag Agrawal
afdde0355b
Update to OTel 0.14.1 ( #2059 )
...
* Update SDK dependency to 0.14.1
* WIP
* Finish
* Cleanup
2021-01-18 13:02:04 +09:00
Lauri Tulmin
11ad12289b
Jetty server span handling ( #2029 )
2021-01-14 09:31:57 -08:00
Pavol Loffay
077d8b64f6
Move common matchers to tooling/bytebuddy/matcher and ignore matchers to tooling/matcher ( #1965 )
2021-01-10 12:35:53 -08:00
Lauri Tulmin
5f816c5d43
Enable servlet forward and include tests ( #1968 )
2021-01-06 11:01:47 -08:00
Lauri Tulmin
2b97c42e01
Improve servlet22 response status handling ( #1985 )
...
* imporve servlet22 response status handling
* Update instrumentation/servlet/servlet-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/v2_2/Servlet2Advice.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-06 14:02:51 +09: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
Nikita Salnikov-Tarnovski
0888711574
Add support for Undertow server runtime ( #1917 )
...
* Add support for Undertow server runtime
* Polish
* Damn be classloaders
* Fix correct span name
* Polish
2020-12-22 14:13:50 +02:00
Lauri Tulmin
4ddc2d28f9
correct link in javadoc ( #1956 )
2020-12-22 14:12:43 +02:00
Vladimir Šor
135ba344cb
Tomcat server handlers ( #1902 )
...
* Tomcat server handler with passing integration and smoke tests.
* Update server span name from the servlet integration instead of trying to mimic it from the server handler.
* Cleanup and more javadocs.
* Use Java8BytecodeBridge in advice code.
* Use Java8BytecodeBridge in advice code.
* Use earliest version for compilation and muzzling.
* Use consistent instrumentation name.
* Record throwables only if the context is managed by something else.
* Getting scope handling right. Moved server span renaming logic via AppServerBridge to the ServletHttpServerTracer.
* codenarc
* more PR comments addressed
* Pass Method to startServerSpan
2020-12-16 16:59:54 +02:00
Trask Stalnaker
fa09451aea
Prefix custom attributes with instrumentation name ( #1784 )
2020-12-03 20:56:31 -08:00
Trask Stalnaker
65f54e450b
Use Context more in HttpClientTracer ( #1811 )
...
* Use Context more in HttpClientTracer
* Better http-url-connection response object
* Follow database semantic conv for elasticsearch-rest
* Remove unnecessary CallDepth tracking
2020-12-03 11:47:08 -08:00
Trask Stalnaker
0bd85d7b7f
Pass around context more instead of span (HttpServerTracer) ( #1810 )
2020-12-01 14:49:01 -08:00
Trask Stalnaker
26f254b10d
Create javaagent dirs for all instrumentations, part 2 ( #1794 )
2020-11-28 22:26:49 -08:00
Trask Stalnaker
41bd489a77
Format groovy files ( #1793 )
2020-11-28 21:22:14 -08:00
Trask Stalnaker
5f263644da
Create javaagent dirs for all instrumentations ( #1668 )
...
* Create javaagent dirs for all instrumentation
* Add note about kotlin coroutine library instrumentation
* Feedback
2020-11-28 21:04:16 -08:00
Mateusz Rzeszutek
9a64a628ea
Make instrumentations non final ( #1752 )
...
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-26 11:22:25 -08:00
Mateusz Rzeszutek
50c8ab499d
Remove no longer needed helperClassNames() methods ( #1755 )
2020-11-24 20:50:32 -08:00
Mateusz Rzeszutek
45646ff367
Rename TypeInstrumentation#classLoaderMatcher() to classLoaderOptimization() ( #1741 )
...
* Rename TypeInstrumentation#classLoaderMatcher() to classLoaderOptimization()
* Removed no longer needed comments & improved JavaDoc
* Improve TypeInstrumentation Javadoc
2020-11-24 14:27:58 +02:00
Trask Stalnaker
79f76c78ad
Move java files to java source folder and groovy files to groovy source folder ( #1735 )
...
* Move java files to java source folder
* Move groovy files to groovy source folder
* Too much
* Move another one back
* Codenarc
* Move test resource to where test is
* Spotless
2020-11-23 15:42:04 +02:00
Trask Stalnaker
e092e87d6b
Remove disabled by default servlet instrumentation ( #1684 )
2020-11-19 11:22:02 -08:00
Trask Stalnaker
80b068b459
Instrument java.servlet.Filter directly ( #1606 )
...
* Instrument filter directly
* Remove some additional ignores
* Fix OncePerRequestFilter not being instrumented itself
2020-11-18 19:59:28 -08:00
Trask Stalnaker
cecdfc2cd0
Update instrumentation names to be consistent ( #1671 )
...
* Update instrumentation names to be consistent
* Remove amqp from rabbitmq package name
2020-11-18 19:53:31 -08: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
Mateusz Rzeszutek
9d2db827b9
Refactor Instrumenters into InstrumentationModules - R, S, T, V ( #1576 )
2020-11-09 18:48:52 -08:00
Trask Stalnaker
71f91877ab
Fix muzzle and add missing helper classes ( #1585 )
...
* Fix muzzle
* Fix jdbc instrumentation
* Fix jms instrumentation
* Fix couchbase instrumentation
* Fix servlet instrumentation
2020-11-08 13:54:00 -08:00
Anuraag Agrawal
d3b60a5e33
Rename TRACER to tracer() ( #1540 )
2020-11-02 20:49:51 -08:00
Anuraag Agrawal
c6eee70660
Update to latest snapshot. ( #1524 )
2020-10-29 18:54:09 -07:00
Anuraag Agrawal
dfda406fee
Migrates to using a context when span is started ( #1525 )
...
* Return Context when starting span to preserve baggage.
Co-authored-by: Marcin Grzejszczak <marcin.grzejszczak@gmail.com>
* Use bridge
Co-authored-by: Marcin Grzejszczak <marcin.grzejszczak@gmail.com>
2020-10-29 13:50:54 +02:00
Trask Stalnaker
f046e598c6
Add context root to the front of the route in the span name ( #1418 )
...
* Add application root to span name
* Reduce duplicate context lookups
* Use servlet path as route
* Test against jetty instrumentation
* Add JAX-RS context path test
* Fix JAX-RS 1.0 span names
2020-10-27 14:21:10 -07:00
Anuraag Agrawal
a2dccf2316
Update to latest SDK snapshot. ( #1479 )
2020-10-26 19:29:46 -07:00
Trask Stalnaker
7244dbf188
Remove unnecessary overrides ( #1477 )
2020-10-25 21:46:14 -07:00
Trask Stalnaker
3565775b00
Format groovy ( #1475 )
...
* Apply Intellij format to groovy
* spotless
2020-10-26 11:47:12 +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
Vadim Shaigorodskiy
9e8d663ba4
Remove apache httpclient version ( #1446 )
...
* Remove version from `apache-httpclient` instrumentation
Fixes : #1260
* Remove version from all instrumentation names and add instrumentation name to `spring-web`
Fixes : #1260
2020-10-22 14:22:44 +09:00
Trask Stalnaker
57301e3fe7
Rename "integration" to "instrumentation" ( #1412 )
...
* Rename integration to instrumentation
* Revert doc changes, need to wait for release
* spotless
2020-10-19 14:36:30 +09:00
Trask Stalnaker
7ecc9bb37b
Rename "auto" to "javaagent" in modules ( #1370 )
2020-10-13 12:32:13 -07:00
Trask Stalnaker
c739f7db6b
Remove unnecessary scopes ( #1351 )
2020-10-11 14:31:37 -07:00
Trask Stalnaker
1b51d4a6b1
Rename packages ( #1367 )
2020-10-11 13:54:35 -07:00
Mateusz Rzeszutek
409530629f
Refactor all tests that use Config so that they don't fail locally ( #1310 )
...
* Refactor all tests that use Config so that they don't fail locally
* Use ConfigUtils in tests for all config-related things
* Fix spotless and codenarc
* Fix spotless
* PR comments: remove unnecessary config
2020-10-08 20:01:31 +03:00
Ioannis Mavroukakis
9523f9ffe6
fix and/or ignore spotbugs errors ( #1325 )
2020-10-06 19:39:17 -07:00
Anuraag Agrawal
5bba5d8482
Update to latest snapshot ( #1331 )
...
* Update to latest snapshot
* Update to latest snapshot
* instrumentation-api
* spotless
2020-10-06 17:47:41 +09:00
Ioannis Mavroukakis
f2de47a150
SpanAssert method names should reflect underlying Span method names ( #1307 )
2020-10-05 16:04:08 +09:00
Anuraag Agrawal
dadaac9a8c
Use 2-line license header to match SDK repo ( #1321 )
...
* Use 2-line license header to match SDK repo
* Apply change
2020-10-05 14:29:56 +09:00
Anuraag Agrawal
f2194a928c
Update to latest snapshot. ( #1304 )
2020-10-04 19:41:10 -07:00
Pavol Loffay
57ead9532a
Fix typos in servlet docs ( #1302 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-10-02 17:31:15 +03:00
Nikita Salnikov-Tarnovski
7b1b399a29
Convert more decorators to tracers ( #1275 )
...
* More decorators to tracers
* Convert more decorators to tracers
* Fixes
2020-09-29 09:41:09 +03:00
Trask Stalnaker
8954f222c0
Update to the latest opentelemetry-java 0.9.0-SNAPSHOT ( #1266 )
2020-09-26 20:44:28 -07: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
Anuraag Agrawal
912a159c19
Update to latest SDK snapshot. ( #1202 )
2020-09-15 17:49:10 +09:00
Mateusz Rzeszutek
79b2ce3a90
Fix Servlet instrumentation for servlet-api 3.1+ - remove output stream wrapper ( #1167 )
2020-09-09 15:31:05 +03:00
Anuraag Agrawal
fbd4018e4b
Don't run latest deps test for servlet-common ( #1051 )
2020-08-19 14:55:09 +09:00
Anuraag Agrawal
bbfdbb39c0
Create abstraction for library dependencies for instrumentation. ( #977 )
...
* Create abstraction for library dependencies for instrumentation.
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-19 08:57:31 +09: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
414213f2d1
Remove final from parameters ( #1003 )
2020-08-15 22:35:51 -07:00
Trask Stalnaker
f893ca540b
Scripted package renaming ( #988 )
2020-08-15 21:55:01 -07:00
Helen Y
bb235a0aa3
Update package name for tracers ( #991 )
2020-08-14 21:07:18 -07:00
Trask Stalnaker
f940b2d2de
Use OpenTelemetry.getTracer() shortcut ( #965 )
2020-08-14 07:11:06 +03:00
Trask Stalnaker
7818e33178
Package renaming ( #970 )
2020-08-13 20:14:46 -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
Trask Stalnaker
b5fbf90977
Extract instrumentation api module ( #884 )
2020-08-09 22:52:33 -07:00
Nikita Salnikov-Tarnovski
46dfa263af
Remove HttpServerTestAdvice ( #897 )
...
* Remove HttpServerTestAdvice
* Trying to fix
2020-08-06 13:05:55 +03:00
Trask Stalnaker
303d8f427f
Add response generic parameter to HttpServerTracer ( #870 )
2020-08-03 12:52:55 -07:00
Trask Stalnaker
5dc2ca350a
Update config property prefix from ota to otel ( #841 )
...
* Update config property prefix from ota to otel
* more
* format
* more
2020-07-31 08:29:29 +03:00
Frank Spitulski
adab0efcd6
feat(tags): http ( #827 )
...
flavour, user agent, client ip
2020-07-29 23:57:12 -07:00
Anuraag Agrawal
f6594e1a67
Use Span.recordException for logging throwable ( #813 )
...
* Use Span.recordException
* Fix tests
* Cleanup
* Update instrumentation/jsp-2.3/src/test/groovy/JSPInstrumentationBasicTests.groovy
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Spotless (IntelliJ acts weird with groovy files for me :()
* Update for merge
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-28 14:44:42 +09:00
Anuraag Agrawal
688733ad43
Update OTel snapshot to 723 for recordException ( #786 )
...
* Update OTel snapshot to 723 for recordException
* Fix various servlet issues
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-27 14:32:05 +09:00
Nikita Salnikov-Tarnovski
fcf4319aac
Faster tests ( #725 )
...
🎉
2020-07-22 10:10:34 -07:00
Frank Spitulski
d6e39f89e6
feat(servlet): content length ( #726 )
2020-07-21 20:24:32 -07:00
Helen Y
86c438b154
Remove final from local variables ( #732 )
...
* Remove final from local variables
2020-07-20 13:53:34 +09:00
Anuraag Agrawal
d8355c672d
Docs for writing new instrumentation... ( #652 )
...
* Docs for writing new instrumentation
2020-07-19 14:21:19 +09:00
Alexey Zhokhov
f3421e91a0
Remove Lombok ( #672 )
...
* Gradle 6.5.1.
* Skip download javadoc and sources automatically in IntelliJ IDEA.
* Added mavenLocal to repositories.
* Removed Lombok usage.
* Removed duplicated idea config.
* Code format.
* Removed useless usage of Objects.requireNonNull.
* Use instanceof to comparing objects.
* Code format.
* Code format.
* Fixes after merge.
* Fixed sneakyThrow exception.
* Code format.
2020-07-18 15:52:55 +03:00
Nikita Salnikov-Tarnovski
9f1ffbe38c
Remove attribute `span.origin.type` ( #712 )
2020-07-16 10:00:45 -07:00
Nikita Salnikov-Tarnovski
763779e08a
Move servlet instrumentations around ( #601 )
2020-07-08 16:43:36 -07:00
Sergei Malafeev
b78abac82c
#598 Rename "tags" to "attributes" ( #645 )
2020-07-07 21:03:41 -07:00
Nikita Salnikov-Tarnovski
a62801649f
More fixes for Gradle warnings ( #643 )
...
* More gradle deprecation warnings fixed
* More gradle deprecation warnings fixed
* More fixes
* More fixes
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2020-07-07 15:02:07 +03:00
Nikita Salnikov-Tarnovski
3a4470f800
Server spans ( #634 )
...
* Milestone 1
* Netty 4.1 done
* Netty 4.0 done
* Netty 3.8 done
* All tests pass
* Test fix
* Last proper server tracers done
* Format fix
* Tests fixed
* Polish
* Polish
2020-07-07 13:48:51 +03:00
Trask Stalnaker
4f48cf6565
Remove response -> request context store ( #630 )
...
* Simplify response to request context store
* Remove response to request context store
* Fix test
2020-07-05 14:39:38 +03:00
Tyler Benson
4a943c8411
Use Spotless for formatting ( DataDog/dd-trace-java#1619 )
2020-06-30 11:15:48 -07:00
Laplie Anderson
45dc02d964
Fix Spring handler mapping affecting character encoding ( DataDog/dd-trace-java#1595 )
2020-06-30 11:13:20 -07:00
Nikita Salnikov-Tarnovski
de1fb295cb
Now publish all instrumentations as well. ( #565 )
...
* Now publish all instrumentations as well.
Changed groupId to `io.opentelemetry.instrumentation`.
Removed `opentelemetry` from auto-exporters' artifactIds.
Some instrumentations will need moving around to have better names, e.g. servlets. Should I do it right away?
* Polish
* Unify names of published artifacts
* Renamed some modules
* Fix CI config
* Rename project-reactor back to reactor
2020-06-27 08:57:24 +03:00
Nikita Salnikov-Tarnovski
bfd7f4428d
Propagate full Context while processing http server requests ( #573 )
...
* Propagate full Context while processing http server requests
2020-06-26 20:13:12 +03:00
Anuraag Agrawal
874b157fe5
Newline between license and package. ( #581 )
2020-06-25 13:31:16 -07:00
Nikita Salnikov-Tarnovski
9a52f6708e
Gradle dependencies cleanup ( #556 )
...
* Bootstrap fixed
* Tooling fixed
* Testing fixed
* All instrumentation tests pass
* All tests pass
* Fix test
* Muzzle workaround
* Muzzle fix
* Update instrumentation/trace-annotation/trace-annotation.gradle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-24 12:01:14 +03:00
Richard Startin
4e836f1c72
Replace remaining named disjunctions with namedOneOf or namedNoneOf ( DataDog/dd-trace-java#1584 )
2020-06-23 14:08:45 -07:00
Richard Startin
0fad251165
Introduce matcher for membership of a set of names ( DataDog/dd-trace-java#1583 )
2020-06-23 14:08:45 -07:00
Trask Stalnaker
126c972864
Optimization for expensive type matcher ( #558 )
2020-06-22 19:17:34 -07:00
Trask Stalnaker
4a26bd3ce7
Simplify setting of user.principal attribute ( #509 )
2020-06-13 12:11:03 +03:00
Trask Stalnaker
4b665dcbe2
Changed instrumentation tracer" TRACER.startSpan() to never return `null` ( #499 )
2020-06-12 16:15:38 -07:00
Tyler Benson
1b29184e7c
Make rootDir usage consistent ( DataDog/dd-trace-java#1518 )
2020-06-11 10:14:02 -07:00
Nikita Salnikov-Tarnovski
8ee54389da
Try to fix flaky test by replacing list comparison with set comparison ( #480 )
2020-06-08 20:00:38 +03:00
Nikita Salnikov-Tarnovski
357fb6e989
Deduplicate servlets ( #469 )
...
* Servlet instrumentations unified
* Grizzly migrated
* Fix tests after merge
* Polish and fix tests
* Polish and fix tests
* Muzzle fixes
* Muzzle fixes
* Muzzle fixes
* Test fixes
* One more check fixed
* Stop using SpanWithScope
* Test fix
* Compilation fix
* Apply suggestions from code review
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Update agent-bootstrap/src/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Polish
* Tracer does not manage scope anymore
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-08 10:49:58 +03:00
Tyler Benson
3bb17e1c3c
Remove deprecated usage from internal instrumentation ( DataDog/dd-trace-java#1441 )
2020-05-26 11:54:55 -07:00
Trask Stalnaker
e9096bb60d
Fix java google format ( #439 )
2020-05-26 08:42:48 +03:00
Nikita Salnikov-Tarnovski
6c8cd2e7f2
Change names of servlet based server spans ( #428 )
...
* Add documentation describing non-obvious points of Servlet instrumentations
* Change names of servlet based server spans
2020-05-25 12:53:12 -07:00
Nikita Salnikov-Tarnovski
6d0d3f54ce
Enable the following instrumentation by default: grizzly, jetty, spark-java ( #407 )
2020-05-17 10:19:35 -07:00
Lev Priima
fbf31d3a39
Don't listen 0.0.0.0 in tests ( DataDog/dd-trace-java#1434 )
2020-05-14 11:50:31 -07:00
Tyler Benson
f540ae8fc1
Add null servlet context check ( DataDog/dd-trace-java#1414 )
2020-05-14 11:50:30 -07:00
Trask Stalnaker
6d1a58d151
Merge tag 'v0.50.0' into correct-history
2020-05-05 12:41:08 -07:00
Pontus Rydin
9568ba079b
Use Builder::setAttribute whenever possible ( #348 )
2020-04-27 13:51:34 -07:00
Trask Stalnaker
f9e74ac9c6
Fix some sporadic test failures ( #354 )
...
* Fix some sporadic test failures
* Improve Jetty test advice
* Fix smore sporadic test failures
* Improve test consistency
2020-04-27 11:40:27 -07:00
Trask Stalnaker
ce3d764ffa
Merge commit '437e0f343dcd66ac344556c03bd340ce791b1fdd' into correct-history
2020-04-21 12:55:51 -07:00
Trask Stalnaker
ecc26226dc
Merge tag 'v0.49.0' into dd-merge
2020-04-18 16:00:00 -07:00
Trask Stalnaker
7f76929cd5
Rename resource name to span name ( #327 )
2020-04-16 12:13:42 -07:00
Trask Stalnaker
1f0cd54fd7
Remove copyright year from license header ( #322 )
...
* Update template
* Apply template
2020-04-15 11:24:44 -07:00
Trask Stalnaker
a333cfe536
Remove unused getComponentName ( #314 )
2020-04-14 13:29:33 -07:00
Trask Stalnaker
bf5b009ef8
Remove unused code ( #319 )
...
* Remove unused/deprecated code
* Remove unused code
* Remove unused return value
* Remove unnecessary throws clauses
* Remove unused code
* Remove default attribute value
* Remove unused code
* Remove unused code
* Remove unused code
* Remove unused constants
* Remove unused constant
* Remove unused parameter
* Remove unused PostMatchHook
* Remove unused constants
2020-04-14 12:29:24 -07:00
Trask Stalnaker
4fe685d916
Remove component attribute ( #291 )
2020-03-29 20:32:19 -07:00
Trask Stalnaker
2e210683fd
Update to OpenTelemetry API/SDK 0.3.0 ( #286 )
...
* Update gradle dependencies and module name
* Replace Tracer.withSpan() with currentContextWith()
* Update inject to 0.3.0
* Update extract to 0.3.0
* More updates
* Remove distributedcontext package refs
* Update OpenTelemetry API interoperability
* No need to call setNoParent()
setParent(SpanContext.getInvalid()) should give the same result.
2020-03-28 19:38:51 -07:00
Trask Stalnaker
68bafd6e0c
Update instrumentation package names, A-J ( #266 )
2020-03-23 11:22:54 -07:00
Trask Stalnaker
8fa84cb77b
Remove remaining resource.name attributes ( #278 )
...
* Remove resource.name validation from ignored tests
* Remove resource.name from test spans
* Remove unused parameter
* Change servlet dispatcher attribute name
2020-03-23 09:51:57 -07:00
Trask Stalnaker
396baa69d6
Update OpenTelemetry API/SDK ( #257 )
...
* Update dependency version
* Change getTracerFactory to getTracerProvider
* Update some imports
* Change put to set
* Fix up bridge
* Update package names
* Update test SpanProcessor
* Remove null conditionals around setAttribute
* Update shading
* Update span context extraction
2020-03-20 14:13:55 -07:00
Trask Stalnaker
8700b2eb33
Remove span.type attribute ( #262 )
2020-03-20 13:05:00 -07:00
Trask Stalnaker
4921fecdb1
Update instrumentation package names, K-Z ( #255 )
2020-03-19 22:19:22 -07:00
Trask Stalnaker
5287c4a0f1
Better span names for servlet ( #243 )
2020-03-19 21:23:52 -07:00
Trask Stalnaker
6142b7a2a4
Fix tracer names to match others ( #249 )
2020-03-19 14:10:17 -07:00
Trask Stalnaker
d4740894d1
Follow static import convention ( #254 )
...
* Follow static import convention
* Follow decorator static field name convention
2020-03-19 13:52:20 -07:00
Trask Stalnaker
2298885678
Merge tag 'v0.46.0' into dd-merge
2020-03-16 11:25:27 -07:00
Han Zhang
5b1218cdb8
Update instrumentation to be compliant with HTTP semantic conventions ( #227 )
...
* Update HTTP client-side span names
* Add query and fragment to http.url for HTTP client spans
* Add query and fragment to http.url for HTTP server spans
* Update HTTP server span names to be the matched route or resource
* Use net.peer.* instead of peer.* attributes
2020-03-12 18:49:52 -07:00
John Bley
1e1f3b57bb
Fix open-telemetry/opentelemetry-auto-instr-java#226 ( #228 )
2020-03-12 14:00:05 -07:00
Trask Stalnaker
cba031ddcb
Rename hibernate modules ( #205 )
...
* Rename hibernate modules
* Update tracer name
* Change from gradle inheritance to composition
This will make it possible to have empty "grouping" modules, e.g.
instrumentation:hibernate.
* Introduce empty hibernate grouping module
2020-03-09 15:33:21 -07:00
Trask Stalnaker
b2db595430
Merge tag 'v0.45.0' into dd-merge
2020-03-05 21:49:39 -08:00
Trask Stalnaker
9ff1fca3fd
Rename a few modules ( #207 )
...
* Rename classloading module to class-loader
* Rename datastax-cassandra module to cassandra
* Rename reactor-core module to reactor
* Rename cdi module to cdi-testing
* Rename aws-java-sdk module to aws-sdk
* Rename class-loader module to java-class-loader
2020-03-05 20:21:50 -08:00
Trask Stalnaker
701b282b17
Merge tag 'v0.44.0' into dd-merge
2020-02-29 14:30:12 -08:00
Trask Stalnaker
40e3932358
Add license headers ( #188 )
...
* Add spotless gradle plugin
* Add license headers
2020-02-27 13:24:42 -08:00
Trask Stalnaker
083988dbe8
Fix comment ( #186 )
2020-02-27 10:38:29 -08:00
Trask Stalnaker
8ee04d54e9
Merge remote-tracking branch 'datadog/master' into dd-merge
2020-02-22 14:35:03 -08:00
Trask Stalnaker
ebf3d78274
Remove Glassfish instrumentation ( #176 )
2020-02-21 11:01:17 -08:00
Trask Stalnaker
23f6e1513d
Capture servlet dispatch as INTERNAL span ( #156 )
2020-02-21 09:31:48 -08:00
Trask Stalnaker
d54f0cd31f
Make sure call depth thread local is reset ( #168 )
...
* Make sure CallDepthThreadLocalMap is always reset
* Re-order just for consistency
* Make call depth pattern more consistent
2020-02-18 13:49:15 -08:00
Trask Stalnaker
215f611673
Update tracer names ( #151 )
2020-02-11 12:25:09 -08:00
Trask Stalnaker
efed5ae682
Standardize instrumentation module names ( #145 )
...
* Rename vertx module
* Rename glassfish module
* Rename google-http-client module
* Rename jms module
* Rename twilio module
* Move dropwizard-testing to top-level
Since it's not related to dropwizard-views.
* Rename dropwizard-views modules
* Rename aws-java-sdk-1.11.0 module
* Rename apache-httpasyncclient-4 module
* Rename apache-httpclient-4 module
* Rename datastax-cassandra-3 module
* Rename elasticsearch:rest-5 module
* Rename elasticsearch:transport-2 module
* Rename elasticsearch:transport-5 module
* Rename elasticsearch:transport-6 module
* Rename grizzly-2 module
* Rename jax-rs-annotations-1 module
* Rename jax-rs-annotations-2 module
* Rename filter-jersey module
* Rename jetty module
* Rename lettuce-5 module
* Rename okhttp-3 module
* Rename play-ws-1 module
* Rename play-ws-2 module
* Rename rxjava-1 module
* Rename request-2 module
* Rename request-3 module
* Rename spring-webflux-5 module
2020-02-07 16:34:36 -08:00
Trask Stalnaker
faec4901d2
Set span kind and remove prior "span.kind" attribute ( #132 )
...
* Set span kind in instrumentation
* Do not set span kind attribute
* Validate span kind in tests
* Remove unused constants
2020-02-05 15:12:33 -08:00
Trask Stalnaker
16ebd812d7
Rename SpanScopePair to SpanWithScope ( #124 )
...
* Rename SpanScopePair to SpanWithScope
* Add closeScope() method and remove getScope()
* Rename spanAndScope parameters to spanWithScope
* A few more renames
2020-02-04 18:20:29 -08:00
Trask Stalnaker
147b42d1ff
Merge tag 'v0.42.0'
2020-02-01 13:28:58 -08:00
Trask Stalnaker
2b11b37d0f
Remove trace-api artifact ( #116 )
...
* Remove unused Trace annotations
* Remove Trace annotation from benchmark code
* Remove Trace annotation from instrumentation tests
* Remove Trace annotation from smoke tests
* Remove Trace annotation from agent tests
* Remove Trace annotation from testing tests
* Remove Trace annotation from hystrix tests
* Remove Trace annotation from netty tests
* Remove Trace annotation from webflux tests
* Remove Trace annotation from reactor tests
* Remove unnecessary conditional
* Remove Trace annotation from trace annotation instrumentation
* Remove Trace annotation from akka http tests
* Remove Trace annotation from java concurrent tests
* Delete Trace annotation
* Move classes out of trace-api
* Remove trace-api artifact
* Move trace-api classes to better packages
2020-02-01 13:07:51 -08:00
Pontus Rydin
49e6309cf9
Experimental Jaeger integration ( #115 )
...
* Added simple exporter
* Updated config prefix
2020-02-01 12:22:25 -08:00
Pontus Rydin
d22f38b320
Changed names of getters and removed instrumentationNames() ( #112 )
2020-01-31 10:33:24 -08:00
Trask Stalnaker
2d3132e9b8
Convert Trace Annotations and tests to use OpenTelemetry API directly ( #110 )
...
* Fix Dropwizard conversion to OpenTelemetry API
* Finish converting JDBC to use OpenTelemetry API directly
* Finish converting Servlet to use OpenTelemetry API directly
* Convert Trace Annotation to use OpenTelemetry API directly
* Convert tests to use OpenTelemetry API directly
2020-01-30 15:51:14 -08:00
Trask Stalnaker
068823c55e
Set SpanKind for servlet requests ( #88 )
2020-01-27 11:49:09 -08:00
Trask Stalnaker
819ca7c256
Simplify directory/module structure ( #77 )
...
* Move things up a directory
* Scripted mass update
find -type f -name "*.gradle" | xargs sed -i 's/:java-agent:/:/g'
* Remove plugin version now that it's in root module
* Update java-agent and instrumentation configs
* Misc
2020-01-22 13:55:47 -08:00