Commit Graph

114 Commits

Author SHA1 Message Date
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
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 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