Commit Graph

74 Commits

Author SHA1 Message Date
Pavol Loffay 22e2bdd34c
Fix typo in readme (#1240)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-23 15:28:29 +03:00
Nikita Salnikov-Tarnovski 7e41b516ee
Review semantic convention for Http Server spans (#1207)
* Review semantic convention for Http Server spans

* Polish
2020-09-16 09:52:11 +03:00
Anuraag Agrawal 912a159c19
Update to latest SDK snapshot. (#1202) 2020-09-15 17:49:10 +09:00
Nikita Salnikov-Tarnovski fd07525744
Reactor bugs (#1189)
* Demonstrating bugs with Project Reactor and Reactor Netty support

* Intermediate kinda working state

* Seems to work

* Format

* Always use context active during subscription

* Fix muzzle

* Format

* Test fix

* Ignore failing test for now

* Add attribution and links to borrowed code

* Fix hook reset

* Polish

* Revert "Ignore failing test for now"

This reverts commit 1867995a

* Polish

* Fixes #1103
2020-09-15 09:57:03 +09:00
dengliming 037949633f
Update README.md in instrumentation-core (#1126) 2020-08-29 22:05:18 -07:00
Nikita Salnikov-Tarnovski bc98955176
Update to latest otel-java snapshot (#1057)
* Update to latest otel-java snapshot

* Upgrade to working otel-java snapshot

* Update to latest otel-java snapshot

* Update to latest otel-java snapshot
2020-08-26 22:03:28 +03:00
Munir Abdinur d58eca23f8
move instrumentation-core:spring project to instrumentation (#1092) 2020-08-25 15:32:01 +09:00
Munir Abdinur b8c58894b4
update tracer name (#1091) 2020-08-24 21:25:32 +03:00
Munir Abdinur 51a6e8b1e7
Add documentation for spring starters (#1035) 2020-08-21 10:13:14 -07:00
Trask Stalnaker 5d2ae07797
Use startScope() on all HttpClientTracers (#971) 2020-08-18 16:59:30 -07:00
Anuraag Agrawal bbfdbb39c0
Create abstraction for library dependencies for instrumentation. (#977)
* Create abstraction for library dependencies for instrumentation.

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-19 08:57:31 +09:00
Trask Stalnaker d9dca25402
Remove unused javaSubPackage config (#1020) 2020-08-16 21:18:10 -07:00
Trask Stalnaker 5bce79df36
Remove unnecessary getVersion overrides (#1004) 2020-08-16 10:13:35 -07:00
Trask Stalnaker 7159d04b8d
Change groovy import order (#1013)
* Update docs

* Format all groovy code

* Organize imports
2020-08-15 23:19:27 -07:00
Trask Stalnaker 414213f2d1
Remove final from parameters (#1003) 2020-08-15 22:35:51 -07:00
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