Commit Graph

128 Commits

Author SHA1 Message Date
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 2c786ab1a1
Fix WithSpan annotation instrumentation (#929) 2020-08-09 21:46:50 -07:00
Helen Y 1fcb807590
Refactor HttpClient typed Decorators to Tracers (#893)
* initial work

* Change OkHttp decorators to tracers

* Change AkkaHttpClient decorator to tracer

* Change ClientDecorator to GrizzlyClientTracer

* Change NettyClientDecorator to Tracer

* Change netty3.8 client decorator to tracer

* Update netty4.1 client decorator to tracer

* Override startScope in child tracers when applicable

* Change KHttpDecorator to tracer

* Change HttpUrlConnectionDecorator to tracer

* Fix muzzle validation failure for grizzly client

* Fix a ratpack client test failure

* Address feedback

* Update delegate for setPeer

* Remove nested try

* Remove unnecessary null check

* Remove asserts

* Add a comment for overriding startSpan(String spanName)

* Remove an irrelevant comment

* Throw an exception when getSetter is null

* Change onPeerConnection to static

* Change getSetter() to be abstract
2020-08-06 17:14:19 -07:00
Nikita Salnikov-Tarnovski 46dfa263af
Remove HttpServerTestAdvice (#897)
* Remove HttpServerTestAdvice

* Trying to fix
2020-08-06 13:05:55 +03:00
Trask Stalnaker dce9d6db47
Remove ExceptionLogger refs from instrumentation (#883) 2020-08-03 19:04:27 -07:00
Trask Stalnaker 303d8f427f
Add response generic parameter to HttpServerTracer (#870) 2020-08-03 12:52:55 -07:00
Trask Stalnaker 4fd062c656
Add thread propagation debugger (#860) 2020-08-02 12:03:21 -07:00
Giovanni Liva 2e89206a75
FaaS Typed Spans (#856) 2020-07-31 15:33:14 -07:00
Giovanni Liva c89b9b2a26
Messaging Typed Spans (#855) 2020-07-31 15:32:52 -07:00
Giovanni Liva 6b21942f86
General Attributes Typed Spans (#854) 2020-07-31 15:32:24 -07:00
Giovanni Liva a7ce0146f1
RPC Typed Spans (#853) 2020-07-31 15:31:57 -07:00
Giovanni Liva bf27428d65
HTTP Typed Spans (#852) 2020-07-31 15:31:37 -07:00
Trask Stalnaker 2af43dbf26
Rename trace.methods.exclude config (#842) 2020-07-31 12:30:08 -07:00
Giovanni Liva 35745d8707
Better documentation. No public in interface (#851) 2020-07-31 18:56:59 +09: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
Helen Y b659ee8223
Apply new database semantic attributes (#823) 2020-07-28 17:31:33 -07:00
Trask Stalnaker d107fe5016
Fix build (#824) 2020-07-28 16:49:46 -07:00
Giovanni Liva dcbfecd2c6
Add Database Typed Spans (#781) 2020-07-28 12:08:57 -07:00
Helen Y 44fcf8115b
Update database semantic conventions (#785) 2020-07-28 11:55:55 -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
Nikita Salnikov-Tarnovski e9215c739f
Temporary workaround for https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/787 (#814) 2020-07-27 20:41:58 +03:00
Anuraag Agrawal c3299fac30
Add instrumentation for Armeria (server) (#756)
* Add instrumentation for Armeria (server)

* Spotless

* Use end timestamp too and fix auto test by not using ClassRule

* Reduce number of less useful lambdas and add reference to useful lambda.

* Cleanup

* README

* Move package to v1_0

* No storage
2020-07-27 15:54:07 +09:00
Trask Stalnaker 010252ce47
Deprecate SpanWithScope (#795)
* Deprecate SpanWithScope

* feedback

* feedback
2020-07-27 08:53:58 +03:00
Trask Stalnaker d1015a41af
Simplify javaconcurrent instrumentation (#792)
* Remove unnecessary SpanWithScope

* Inline method
2020-07-26 11:30:14 +03:00
Nikita Salnikov-Tarnovski 91fde9a915
Update server span (#774)
* Change name on SERVER spans

* Change name on SERVER spans

* Fixes

* Fixes

* Update instrumentation/spring-webmvc-3.1/src/main/java/io/opentelemetry/auto/instrumentation/springwebmvc/DispatcherServletInstrumentation.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-24 07:46:50 +03:00
Helen Y 509a234ee3
Refactor net.peer.name and net.peer.ip (#742) 2020-07-22 20:29:12 -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 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