Commit Graph

59 Commits

Author SHA1 Message Date
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
Helen Y 09c597e8e0
Change the rest of decorators to tracers (#922) 2020-08-13 11:55:08 -07:00
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
Munir Abdinur 56e1549378
Add spring webflux documentation (#916)
* add readme and rename springwebflux package

* add readme and rename springwebflux package

* fix bean type

* fix readme

* format

* fix gradle

* fix gradle

* fix gradle

* updated package name

* clean up readme

* Update README.md

* Update instrumentation-core/spring/spring-webflux-5.0/README.md

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

* Update instrumentation-core/spring/spring-webflux-5.0/README.md

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

* format, clean up comments

* clean ups

* Update README.md

* fix conflict

* fix helper class names

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-12 09:27:17 +09:00
Munir Abdinur fe45515536
Add spring webmvc documentation (#915)
* add readme and rename WebMvcFilter

* Update README.md

* format

* clean up readme

* clean up readme

* clean up readme

* Update README.md

* fix web mvc naming

* format, clean up comments

* format, clean up comments
2020-08-11 11:53:18 +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
Trask Stalnaker f9f6d1f6b3
Change library shading approach (#930) 2020-08-09 11:16:34 -07:00
Munir Abdinur 1d80e19812
Add @Withspan functionality using spring-aop (#902) 2020-08-07 20:22:30 -07:00
Munir Abdinur bbd63f7485
Add spring web documentation (#914)
* instrumentation-core spring-web-3.1 README first draft

* clean up formatting

* more clean ups

* fix incorrect reference

* Update README.md

* format

* clean up readme

* Update instrumentation-core/spring/spring-web-3.1/README.md

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-08 10:45:00 +09:00
Munir Abdinur 138128e251
Fix instrumentation core artifact names (#885) 2020-08-03 23:12:14 -07:00
Anuraag Agrawal 515fdac34c
Don't mix JUnit4 with JUunit5 in spring tests (#888) 2020-08-04 14:58:08 +09:00
Munir Abdinur 906d80be12
clean up spring dependencies (#878) 2020-08-03 19:07:36 -07:00
Trask Stalnaker 303d8f427f
Add response generic parameter to HttpServerTracer (#870) 2020-08-03 12:52:55 -07:00
Munir Abdinur 49017cf864
Use assertJ in tests (#876) 2020-08-03 12:09:42 -07:00
Munir Abdinur 6a61bc824d
Bug fix for tracer reference in try block (#877) 2020-08-03 12:04:27 -07:00
Trask Stalnaker bb65682798
Simplify Spring Boot starter auto config (#868)
* Simplify Spring Boot starter auto config

* spotless
2020-08-02 10:18:51 +09:00
dengliming d362691100
Use new exporter public constants in spring boot starters (#863) 2020-08-01 10:01:09 -07:00
Munir Abdinur d8ba6e3d51
Tests for spring-boot-autoconfigure (#825) 2020-07-31 11:52:17 -07:00
Frank Spitulski adab0efcd6
feat(tags): http (#827)
flavour, user agent, client ip
2020-07-29 23:57:12 -07:00
Trask Stalnaker d107fe5016
Fix build (#824) 2020-07-28 16:49:46 -07:00
Munir Abdinur fbfa062694
Add tests to spring-boot-autoconfigure (#763) 2020-07-28 12:09:56 -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
Munir Abdinur 03dce2ab2a
Create exporter starters (#815) 2020-07-27 22:19:30 -07: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
Munir Abdinur 72c36b40b4
add exporter configurations to springboot autoconfigure (#729)
* add exporter configurations to springboot autoconfigure

* clean up javadoc and jaegerspanexporter name

* format

* fix javadoc

* Update spring-boot-autoconfigure.gradle

* format and clean up java docs

* review changes

* edit host name

* Update TracerProperties.java

* Update instrumentation-core/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/jaeger/JaegerSpanExporterProperties.java

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

* Update instrumentation-core/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpGrpcSpanExporterProperties.java

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

* format

* Update instrumentation-core/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpGrpcSpanExporterProperties.java

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

* Update instrumentation-core/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/jaeger/JaegerSpanExporterProperties.java

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

* Update instrumentation-core/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/zipkin/ZipkinSpanExporterProperties.java

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

* Update instrumentation-core/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/zipkin/ZipkinSpanExporterProperties.java

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

* fixed properties

* update active tracer config with sampling probability and clean up host/port property javadocs

* fix duration property name to align with docs

* Update spring-boot-autoconfigure.gradle

* Update spring-boot-autoconfigure.gradle

* Update spring-boot-autoconfigure.gradle

* add conditional on managed channel

* conditional on managed channel

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-27 11:55:03 +09: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
Munir Abdinur 6d47692cd0
Add spring-autoconfigure project (#661) 2020-07-17 22:36:58 -07:00
Munir Abdinur 3662cee7ec
Create instrumentation-core apache-httpclient-4.0 (#694) 2020-07-16 20:00:26 -07:00
Nikita Salnikov-Tarnovski 9f1ffbe38c
Remove attribute `span.origin.type` (#712) 2020-07-16 10:00:45 -07:00
Munir Abdinur 5bab5b9d7d
Move webflux context injection to the decorator (#686)
* move webflux context injection to the decorator

* add if statement
2020-07-16 12:12:40 +03:00
Munir Abdinur 53eca7bccc
[2] Create instrumentation-core:spring:spring-webflux-5.0-core (#639) 2020-07-13 09:44:41 -07:00
Trask Stalnaker 7fd607617b
Fix reactor manual instrumentation publish (#670) 2020-07-12 14:07:29 -07: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
Anuraag Agrawal 2ef6aac61c
Separate out core reactor instrumentation (#650)
* Separate out core reactor instrumentation
2020-07-09 14:48:15 +09:00
Munir Abdinur c79be44de2
[1] Create spring-core project in instrumentation-core/spring (#640) 2020-07-08 20:48:54 -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
Anuraag Agrawal 8f3b7565b0
Shade AWS instrumentation library when using in agent (#644)
* Shade AWS instrumentation library when using in agent

* Cleanup and doc

* spotless
2020-07-08 12:36:55 +09: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
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
Tyler Benson 4a943c8411 Use Spotless for formatting (DataDog/dd-trace-java#1619) 2020-06-30 11:15:48 -07:00
Trask Stalnaker 40b96c54e6
Update to new formatting (#613) 2020-06-29 15:44:49 -07:00
Munir Abdinur f1a17e168e
Tutorial Section 2 [2/3] (#548) 2020-06-29 14:40:00 -07:00
Nikita Salnikov-Tarnovski 3418ebf6f7
More module renames (#610) 2020-06-29 13:28:39 -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