Commit Graph

4633 Commits

Author SHA1 Message Date
Nikita Salnikov-Tarnovski 3418ebf6f7
More module renames (#610) 2020-06-29 13:28:39 -07:00
Trask Stalnaker 2b674dba57
Update Spring Web MVC name in README.md (#607) 2020-06-29 08:21:14 +03:00
Trask Stalnaker f37c1abe11
Fix JerseyClient sporadic test failure (#603) 2020-06-29 08:07:29 +03: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
Trask Stalnaker 1411c38ba4
Fix khttp sporadic test failure (#591) 2020-06-28 12:08:06 -07:00
Trask Stalnaker a4083c49aa
Update approvers list in CONTRIBUTING (#587) 2020-06-27 23:16:29 -07: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 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
Trask Stalnaker 68cd141e00
Add new approver @anuraaga (#585) 2020-06-26 13:10:36 -07: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
Trask Stalnaker 091a829c37
Parallelize check build (#577)
* Parallelize check build

* Require check for test jobs

* Consolidate check into build job

* Consolidate check into build job

* intentionally break formatting

* Revert "intentionally break formatting"

This reverts commit 58ce89ebdf.

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-26 08:19:11 +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
Trask Stalnaker 7b923be87f
Fix CircleCI job name (#582) 2020-06-26 07:27:14 +03:00
Anuraag Agrawal 874b157fe5
Newline between license and package. (#581) 2020-06-25 13:31:16 -07:00
Trask Stalnaker 680e3ee3d2
Support metric reader config (#576) 2020-06-25 07:39:47 +03:00
Nikita Salnikov-Tarnovski 2292d9a98a
Restore accidentally deleted snapshot publishing job (#574) 2020-06-24 09:46:06 -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
Tyler Benson 83753d6ed0
Merge pull request #553 from trask/dd-merge 2020-06-23 17:26:26 -04:00
Nikolay Martynov 84d4e24989 Upgradle gradle to 6.5 (DataDog/dd-trace-java#1589) 2020-06-23 14:08:46 -07: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 2af04f792f BaseDecorator shouldn't rely on $ in class names (DataDog/dd-trace-java#1585) 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
Richard Startin bc7a3626ed Iterate type interfaces without materialising a list during super type matching (DataDog/dd-trace-java#1578) 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
Laplie Anderson f628f02de6 Do not attempt to instrument websocket upgrade handlers (DataDog/dd-trace-java#1567) 2020-06-23 14:08:45 -07:00
Richard Startin d668b07ae6 Create context store map at most once (DataDog/dd-trace-java#1570) 2020-06-23 14:08:45 -07:00
Laplie Anderson cbf04b0b15 Circleci config cleanup (DataDog/dd-trace-java#1564) 2020-06-23 14:08:45 -07:00
Lev Priima 3dbbbda4a8 Disable agent if we may append wrong jar to bootclasspath (DataDog/dd-trace-java#1561) 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
Nikolay Martynov cbbf870c2e Fix future cancelation (DataDog/dd-trace-java#1555) 2020-06-23 14:08:44 -07:00
Brian Devins-Suresh 07c64f15e1 Update play-2.6 instrumentation to support Play version 2.8.x (DataDog/dd-trace-java#1521) 2020-06-23 14:08:44 -07:00
Laplie Anderson 74cd2fdd3d Split muzzle across multiple executors (DataDog/dd-trace-java#1549) 2020-06-23 14:08:44 -07:00
Jaroslav Bachorik 459c291bca Allow the mock http server get assigned a transient port (DataDog/dd-trace-java#1540)
This change should eradicate the spurious test failures due to port conflicts - at least for the profiling smoke tests.
2020-06-23 14:08:44 -07:00
Lev Priima da15d0de64 ApacheHttpClientRedirectInstrumentation copy headers from original request to redirect if original redirect headers were empty (DataDog/dd-trace-java#1539) 2020-06-23 14:08:44 -07:00
Tyler Benson 88c14dcab2 Add some tests for Java CompletableFuture (DataDog/dd-trace-java#1546) 2020-06-23 14:08:44 -07:00
Nikita Salnikov-Tarnovski d08a1a9c5c
When loading exporter factories via SPI from an external jar, look only inside that jar, and not any parent classloader. (#569) 2020-06-23 12:35:12 -07:00
Anuraag Agrawal 918d3913e3
Populate user-agent in HTTP clients. (#540) 2020-06-22 21:13:12 -07:00
Trask Stalnaker 126c972864
Optimization for expensive type matcher (#558) 2020-06-22 19:17:34 -07:00
Trask Stalnaker 8b0813c3b9
Fix FieldBackedProvider not getting applied (#550)
* Fix FieldBackedProvider not getting applied

* Remove unhelpful comment

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-22 18:48:08 +03:00
Trask Stalnaker 82a1b35828
Update otel api instrumentation module name (#551)
* Update otel api instrumentation module name

* Remove vbeta subpackage

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-22 16:42:55 +03:00
Trask Stalnaker 9dcb079aa6
Fix duplicate log capture, part 2 (#554) 2020-06-22 11:13:36 +03:00
Trask Stalnaker 7b06e2fb7a
Remove unnecessary exclusion (#539) 2020-06-20 17:53:32 -07:00
Trask Stalnaker f61b316b67
Make Cassandra instrumentation Java 7 compatible (#543) 2020-06-20 16:52:02 -07:00
Trask Stalnaker 9cf0cb6b1e
Fix duplicate log capture (#544) 2020-06-19 08:45:34 +03:00
Anuraag Agrawal 9a2a0b5de9
Add lettuce 5.2 instrumentation that uses lettuce's native tracing functionality. (#535)
* Copy Lettuce 5.0 to start 5.1 instrumentation

* Begin tracing adapter implementation

Co-authored-by: Dustin Neray <dustin.neray@gmail.com>

* Set floor to 5.2 instead

* Move around

* Finish

* Cleanups

* Instrument 5.1+ instead

* Cleanup

* 5.1

* Remove latestDepTest from lettuce-5.0 since we have a newer lettuce-5.1.

* Remove

* Remove package check

* Spotless

Co-authored-by: Dustin Neray <dustin.neray@gmail.com>
2020-06-18 18:22:45 +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 4635f6ff46
Add iNikem as a maintainer (#537) 2020-06-17 10:05:17 -07:00
Trask Stalnaker 64e39f064d
Simplify getting started (#533) 2020-06-16 11:44:07 -07:00
John Watson a59bb19192
rename the root project to match the current project name (#524)
* rename the root project to match the current project name

* rename the root gradle file to be more standard.
2020-06-15 20:36:23 -07:00