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
9b6b5e621f
Remove http server decorator ( #701 )
...
* Ratpack migrated from ServerDecorator
* Finatra migrated from ServerDecorator
* Play 2.3 migrated from ServerDecorator
* Play 2.4 migrated from ServerDecorator
* Play 2.6 migrated from ServerDecorator
* Polish
* Polish
* Organize imports
* Relax muzzle checks
* Ratpack version 1.4 is now supported
* Fix muzzle failures on Play
2020-07-17 20:14:19 +03:00
Nikita Salnikov-Tarnovski
9f1ffbe38c
Remove attribute `span.origin.type` ( #712 )
2020-07-16 10:00:45 -07:00
Nikita Salnikov-Tarnovski
23ae6980d5
Lettuce and Cassandra migrated from deprecated Decarator to new Tracer ( #681 )
...
* Lettuce and Cassandra migrated from deprecated Decarator to new Tracer
* Polish
* Polish
* Split a connection specific handling out of Lettuce database client tracers.
This eliminates the need of awkward method override in the common DatabaseClientTracer.
* Muzzle fix
* Format
2020-07-15 13:37:22 +03:00
Nikita Salnikov-Tarnovski
ac200720c8
Allows actually consume published instrumentation artifacts ( #692 )
2020-07-14 15:09:17 +03:00
Trask Stalnaker
87c268cfb3
Remove unnecessary shadow ( #667 )
2020-07-11 23:49:31 -07:00
Nikita Salnikov-Tarnovski
d96a771dd0
Update to otel-java 0.6.0 ( #662 )
...
* Working against otel-java 0.6.0-SNAPSHOT
* Muzzle fix
* Better comment
* Now works with otel-java 0.6.0
* Fix muzzle
2020-07-11 09:10:28 +03:00
Munir Abdinur
556baecd55
[3.2] Create spring-webmvc-3.1-core project ( #648 )
...
* [3.2] create spring-webmvc-3.1-core project
* rebase and fix conflicts
* renamed project and removed instrumentation:spring-webmv-3.1 -> instrumentation-core:spring-webmvc-3.1 dependency
* update tracer
* ws
* Update instrumentation-core/spring/spring-webmvc-3.1/src/main/java/io/opentelemetry/instrumentation/springwebmvc/SpringWebMvcServerTracer.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Update spring-webmvc-3.1.gradle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-10 19:45:40 +03:00
Sergei Malafeev
b78abac82c
#598 Rename "tags" to "attributes" ( #645 )
2020-07-07 21:03:41 -07: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
Nikita Salnikov-Tarnovski
d09fa8a943
propagate context across thread pools ( #638 )
...
* propagate context across thread pools
* Revert spotbugs plugin version bump
2020-07-07 07:23:45 +03:00
Anuraag Agrawal
a56630762d
Update test for HTTP client conflict. ( #631 )
2020-07-03 09:12:03 +09:00
Anuraag Agrawal
a0b0db5d3a
Map peer service in HttpClientDecorator. ( #622 )
...
* Map peer service in HttpClientDecorator.
2020-07-03 07:46:39 +09:00
Anuraag Agrawal
1aae2bd7f0
Add extension point for HTTP client decorators to return headers gene… ( #623 )
...
* Add extension point for HTTP client decorators to return headers generically instead of only user agent.
2020-07-02 14:29:21 +09:00
Anuraag Agrawal
be7841ca33
Use gRPC Status for thrown exceptions too and remove redundant legacy… ( #615 )
...
* Use gRPC Status for thrown exceptions too and remove redundant legacy status attributes.
2020-07-01 12:22:09 +09:00
Laplie Anderson
de1aa4bf9b
Remove noisy logging in InternalJarURLHandler ( DataDog/dd-trace-java#1609 )
2020-06-30 11:13:21 -07:00
Richard Startin
dfa000d92c
Do not eagerly load classfiles at startup ( DataDog/dd-trace-java#1606 )
2020-06-30 11:13:20 -07:00
Richard Startin
abd9744acc
Route classloads to classloader by package ( DataDog/dd-trace-java#1598 )
2020-06-30 11:13:20 -07:00
Richard Startin
6d04a48ca1
Shorten jar names (prefixes of runtime classnames) ( DataDog/dd-trace-java#1592 )
2020-06-30 11:13:20 -07:00
Anuraag Agrawal
77654a44bc
Always translate HTTP status code to Status ( #606 )
...
* Translate HTTP status code to Status
2020-06-30 08:27:52 +09:00
Anuraag Agrawal
ca0d6767ae
Add endpoint.peer.service.mapping property to allow a user to specify… ( #562 )
...
* Add endpoint.peer.service.mapping property to allow a user to specify mappings from an endpoint to a service name.
* Map endpoints to peer.service based on user mapping.
* Move to decorator
* Remove unnused
* WIP
* Groovy...
* Unused import
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-29 10:34:54 +09:00
Anuraag Agrawal
b0237a8981
Don't set IP address for net.peer.name and set name for failed DNS lo… ( #584 )
...
* Don't set IP address for net.peer.name and set name for failed DNS lookup
* Private
* Don't require IPv6 to run unit test
* PR suggestion (#1 )
* PR suggestion
* Make test pass on Windows
* final
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-28 12:32:40 +09: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
Nikita Salnikov-Tarnovski
fc2d679259
Propagate context ( #572 )
...
* First cut on propagating full Context instead of just Span
* First cut on propagating full Context instead of just Span
* Polish
* Polish
* Format
2020-06-26 08:18:14 +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
Anuraag Agrawal
6f5f67327f
Provide an SPI that an agent distribution or intiializer can use to c… ( #561 )
2020-06-23 20:21:00 -07:00
Richard Startin
2af04f792f
BaseDecorator shouldn't rely on $ in class names ( DataDog/dd-trace-java#1585 )
2020-06-23 14:08:45 -07:00
Richard Startin
c072bcd1fa
Avoid creating new strings prior to jar lookup ( DataDog/dd-trace-java#1580 )
2020-06-23 14:08:45 -07:00
Richard Startin
a252985562
Cache span names derived from class and method names ( DataDog/dd-trace-java#1562 )
2020-06-23 14:08:44 -07:00
Anuraag Agrawal
918d3913e3
Populate user-agent in HTTP clients. ( #540 )
2020-06-22 21:13:12 -07:00
Trask Stalnaker
9cf0cb6b1e
Fix duplicate log capture ( #544 )
2020-06-19 08:45:34 +03:00
Nikita Salnikov-Tarnovski
c1c02ac949
Next attempt to extract common logic from instrumentations. ( #523 )
...
* Next attempt to extract common logic from instrumentations.
I tried to reduce code repetition in DB client instrumentations, jdbc and mongo ones. This time I experimented with another approach, different from HttpServerTracer. Namely, I have extracted that common `startSpan` method into `DatabaseClientDecorator` itself. The idea is still the same as before, but I wanted to see if we can migrate by smaller steps, reusing much of the existing code and just incrementally reducing public API.
* Extracted separate Tracer after all
* More explicit call depth handling
* Fix format
* More reusable method overloads
2020-06-17 12:08:52 -07:00
Trask Stalnaker
4b665dcbe2
Changed instrumentation tracer" TRACER.startSpan() to never return `null` ( #499 )
2020-06-12 16:15:38 -07:00
Richard Startin
57c0aed1fa
Use ClassValue to store ThreadLocal call depth ( DataDog/dd-trace-java#1528 )
2020-06-11 10:14:07 -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
9f44348217
Embed exporters into agent jar ( #491 )
...
* Embed all exporters into agent jar
* Publish agent with exporters and without
* Polish
2020-06-11 09:41:11 +03:00
Anuraag Agrawal
f13a9c4932
Move client span creation to decorator and automatically suppress creation of neste… ( #460 )
...
* Move client span creation to decorator and suppress creation of nested client spans.
* Store subtree client span in context.
* Apply new pattern to AWS V1 SDK instrumentation too, cleanup, and javadoc
2020-06-08 12:01:43 -07:00
Anuraag Agrawal
5792ec3ada
Allow specifying a JAR to control OTel SDK SPI. ( #449 )
...
* Allow specifying a JAR to control OTel SDK SPI.
* Update README.md
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-08 19:33:27 +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
Trask Stalnaker
96fa7b8c31
Merge changes from dd-trace-java 0.53.0 ( #456 )
...
* Add time in queue (DataDog/dd-trace-java#1481 )
* Minor upgrades (DataDog/dd-trace-java#1495 )
* Allow user to disable kafka time in queue tag (DataDog/dd-trace-java#1487 )
* Replace Set<Integer> with BitSet for HTTP statuses (DataDog/dd-trace-java#1496 )
* Register WeakMapProvider earlier in AgentInstaller (DataDog/dd-trace-java#1480 )
* Update codenarc (DataDog/dd-trace-java#1500 )
Co-authored-by: Tyler Benson <tyler.benson@datadoghq.com>
Co-authored-by: Nikolay Martynov <mar.kolya@gmail.com>
Co-authored-by: Richard Startin <richard.startin@datadoghq.com>
2020-06-02 18:20:54 +03:00
Richard Startin
d8c9639fbb
Grizzly-http and grizzly-client instrumentation ( DataDog/dd-trace-java#1365 )
2020-05-26 11:54:59 -07:00
Tyler Benson
ebebbc7dae
Wrap log statements using varargs to avoid object allocation ( DataDog/dd-trace-java#1466 )
2020-05-26 11:54:57 -07:00
Tyler Benson
dbe1c00ac1
Adding an option to manually disable Kafka headers ( DataDog/dd-trace-java#1448 )
2020-05-26 11:54:56 -07:00
Trask Stalnaker
49a077065b
Remove unused config ( #424 )
2020-05-24 18:16:21 +03:00
Trask Stalnaker
2d60dc2c45
Fix sqlNormalizerEnabled initialization ( #432 )
2020-05-24 18:15:31 +03:00
Rashmi
29a18bdf20
Used BatchSpansProcessor instead of SimpleSpansProcessor ( #393 )
...
BatchSpansProcessor won't get blocked by the exporter.
Fixes #368
2020-05-16 13:18:43 -07:00
Carlos Alberto Cortez
009cc6ad1e
Initial Propagators support. ( #389 )
2020-05-14 16:57:52 -07:00