Lauri Tulmin
7013376030
Add support for Grails ( #2512 )
...
* Add support for Grails
* exclude bad version from muzzle
* Review fixes
* review fixes
* rebase
* Trigger Build
2021-03-09 08:56:33 +02:00
Mateusz Rzeszutek
3dff44874f
Fix RestTemplateInterceptor so that it calls endExceptionally() on exception ( #2516 )
2021-03-08 09:36:47 -08:00
Mateusz Rzeszutek
fe4d95a689
Refactor BaseTracer#onError() method (and unwrapThrowable()) ( #2513 )
...
* Refactor BaseTracer#onError() method (and unwrapThrowable())
Also remove the deprecated BaseTracer(Tracer) constructor.
* Update BaseTracer javadoc
* fix tests
* Code review comments
2021-03-08 15:08:26 +02:00
Mateusz Rzeszutek
72ffb3b7c5
Make BaseTracer fields private ( #2492 )
...
* Make BaseTracer fields private
By making `tracer` private we're forcing all tracer implementation to use the `spanBuilder()` utility method and pass the parent context manually.
2021-03-05 10:54:00 -08:00
Mateusz Rzeszutek
ce39c55c0f
Remove tracer name configuration from spring-boot-autoconfigure ( #2478 )
...
* Remove tracer name configuration from spring-boot-autoconfigure
* Use OpenTelemetry wherever it makes sense
* Refactor @WithSpan advice since it made no sense before
* Rename @EnableOpenTelemetryTracing to @EnableOpenTelemetry (it won't be just tracing in the future)
* And add a getOpenTelemetry() method to InstrumentationExtension & InstrumentationSpecification
* Update instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/WithSpanAspectTracer.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Code review comments
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-05 10:50:14 +01:00
Anuraag Agrawal
264e03f6ea
Fix spring-ws test post-merge ( #2503 )
2021-03-04 18:38:28 -08:00
Lauri Tulmin
29790d8472
Low cardinality name for servlet span ( #2417 )
2021-03-04 12:39:37 -08:00
Trask Stalnaker
0abc492bc3
Rename more properties ( #2486 )
...
* Rename more props to experimental
* Rename more properties
* Rename .internal to .testing
* Revert changes to examples distro
* Move chunk.new-trace to experimental
* Fix unrelated build issue
2021-03-04 11:20:47 -08:00
Mateusz Rzeszutek
8242a01b3a
Clean up and document BaseTracer ( #2482 )
2021-03-04 11:21:46 +01:00
Mateusz Rzeszutek
04d6fb67ff
Move SERVER and CLIENT span context keys out of BaseTracer ( #2468 )
...
* Move SERVER and CLIENT span context keys out of BaseTracer
Inspired by https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/1726#issuecomment-731890267
* Rename context keys
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-03 16:12:42 +01:00
Trask Stalnaker
62f2611486
Update instrumentation names ( #2433 )
2021-03-01 19:34:25 -08:00
Trask Stalnaker
5c1a432c54
Update old name ( #2440 )
2021-03-01 15:43:49 -08:00
Trask Stalnaker
475830789c
Update to otel-java 1.0.0 ( #2431 )
...
* Update to otel-java 1.0.0
* Fix test
* Fix another test
* Fix another test
* Fix hibernate tests
* Fix spring-data tests
* Spotless
2021-02-28 11:15:27 -08:00
Mateusz Rzeszutek
e87cf37f63
Remove some deprecated BaseTracer#end(Span) usages (part 1) ( #2401 )
2021-02-25 11:35:37 +01:00
Nikita Salnikov-Tarnovski
74bbb27fca
Fix Spring WebFlux test ( #2397 )
2021-02-24 17:19:36 +09:00
Lauri Tulmin
c8ca7e8d07
Make http.flavor spec compliant ( #2370 )
2021-02-22 13:12:05 -08:00
Lauri Tulmin
1ca7276593
Remove HttpServerTest.testExceptionBody and redirectHasBody ( #2346 )
2021-02-19 15:57:11 +02:00
Anuraag Agrawal
000df967ce
Update to SDK 0.17.0 ( #2338 )
...
* Update to SDK 0.17.0
* Finish
* ottrace
2021-02-19 15:51:55 +09:00
Mateusz Rzeszutek
ee090aee1e
Support library instrumentations with HttpServerTest & HttpClientTest ( #2299 )
2021-02-16 09:05:23 -08:00
Lauri Tulmin
e76d3b19d1
Fix ServletContextPath.prepend for app server spans ( #2089 )
...
* ServletContextPath.prepend doesn't work when server span is created from app server integration
* move ServletContextPath context creation to servlet-common, make servlet2&3 depend on servlet-common so that it would be used in tests that depend on servlet3
* fix failing test
* add servlet-common dependency to modules that depend on servlet3
* add servlet-common dependency to mojarra and myfaces
* run context path instrumentation after servlet instrumentation
* add servlet-common dependency to wicket
* move servlet context path handling
* enable jetty instrumentation for all handlers
* run springmvc tests with tomcat integration, fix peer port and peer ip reporting on tomcat
* jetty integration is now enabled for all handlers
* update expected span name
* Revert "jetty integration is now enabled for all handlers"
This reverts commit 82cbb663f5
.
* Revert "update expected span name"
This reverts commit c034496fc5
.
* Revert "enable jetty instrumentation for all handlers"
This reverts commit 8a3d077600
.
* Trigger Build
2021-02-15 23:34:15 -08:00
Mateusz Rzeszutek
0adeb85f43
Refactor InMemoryExporter and move some of its methods … ( #2264 )
...
* Refactor InMemoryExporter and move some of its methods to spock base class & junit extension
* codenarc
* spotless
* Apply suggestions from code review
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* fix armeria library tests
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-15 17:36:14 +01:00
Mateusz Rzeszutek
0fbdcad1dd
Make BaseTracer#startSpan() return Context ( #2232 )
...
* Make BaseTracer#startSpan() return Context
* Update instrumentation/apache-camel-2.20/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/apachecamel/CamelEventNotifier.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* spotless
* Add Javadocs to BaseTracer
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-12 12:12:40 +01:00
Anuraag Agrawal
fc410706d0
Update to Sdk 0.16.0 ( #2221 )
...
* Update to 0.16.0-SNAPSHOT
* Finish
* Finish
* Update to 0.16.0
* Finish
2021-02-09 18:00:54 +09:00
Mateusz Rzeszutek
7a3f345c18
Clean up BaseTracer, part 1 ( #2159 )
...
* Move context leak debugging to ContextPropagationDebug
* Remove getCurrentSpan()
* Add end(Context, ...) & endExceptionally(Context, ...) methods - they're supposed to replace the ones that accept Spans in the future
2021-02-02 10:12:46 +02:00
Mateusz Rzeszutek
93b3a3b289
testing-common refactoring: replace direct AgentTestRunner usage with… ( #2134 )
...
* testing-common refactoring: replace direct AgentTestRunner usage with spock spec
* Updated instrumentation docs
* Fix reactor-core library tests
ReactorCoreTest was getting a tracer from GlobalOpenTelemetry before LibraryTestTrait had a change to initialize the SDK
2021-02-01 11:32:25 +01:00
Anuraag Agrawal
1ebb58a596
Update to SDK 0.15.0 ( #2137 )
...
* Update to SDK 0.15.0
* Fix lightstep test
2021-01-29 21:30:22 +09:00
Mateusz Rzeszutek
b13ef2d809
Instrument spring-batch: tests for parallel steps ( #2121 )
2021-01-28 16:09:42 +09:00
Lauri Tulmin
87ddfb8d0e
Add instrumentation for spring-ws ( #2111 )
...
* Add instrumentation for spring-ws
* add spring-ws to supported frameworks
* Add class loader optimization
* Remov unnecessary latestDepTestLibrary
* review fixes
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-27 17:24:59 +09:00
John Watson
df801dc2c3
Clean up some spring-boot auto-configuration to get rid of deprecations ( #2115 )
2021-01-25 22:00:54 -08:00
Mateusz Rzeszutek
b78a38f859
Instrument spring-batch: item-level spans ( #2047 )
2021-01-25 21:38:13 -08:00
John Watson
588f8847ed
Hide the context keys in the BaseTracer. ( #2105 )
...
* Hide the context keys in the BaseTracer.
Provide the appropriate methods to get access.
* key needs to be static
* fix formatting
* more formatting, sigh
* remove an errant semicolon
2021-01-25 09:49:16 +02:00
Anuraag Agrawal
8b470bf378
Add Netty instrumentation handlers after matched handler rather than at end of pipeline. ( #2100 )
...
* Support latest webflux version.
* Add Netty instrumentation handlers after matched handler rather than at end of pipeline.
* Drift
* Fix
* Raise smoke tests timeout
2021-01-25 16:06:57 +09:00
Mateusz Rzeszutek
660f0e5225
Remove testing-common dependency on guava ( #2062 )
...
* Remove testing-common dependency on guava
* Use nano time
* Add guava dep to opentelemetry-api-metrics
2021-01-19 12:07:27 +09:00
Anuraag Agrawal
afdde0355b
Update to OTel 0.14.1 ( #2059 )
...
* Update SDK dependency to 0.14.1
* WIP
* Finish
* Cleanup
2021-01-18 13:02:04 +09:00
Mateusz Rzeszutek
99bcf7dcf2
Instrument spring-batch: partitioning ( #2034 )
2021-01-14 09:33:59 -08:00
Mateusz Rzeszutek
269378e929
Spring Batch instrumentation tests: decisions ( #2024 )
...
* Spring Batch instrumentation tests: decisions
* spotless
2021-01-13 16:17:15 +09:00
Lauri Tulmin
640a7d624b
Correct some spelling mistakes ( #2025 )
2021-01-12 11:10:45 -08:00
Mateusz Rzeszutek
56dd13bfc1
Spring Batch instrumentation tests: splits ( #2017 )
2021-01-12 14:32:21 +09:00
Pavol Loffay
077d8b64f6
Move common matchers to tooling/bytebuddy/matcher and ignore matchers to tooling/matcher ( #1965 )
2021-01-10 12:35:53 -08:00
Anuraag Agrawal
8d74baa2e4
Run tests with javaagent. ( #1643 )
...
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-04 13:13:24 -08:00
Mateusz Rzeszutek
8baa897e8b
Spring Batch instrumentation tests: flows ( #1944 )
2020-12-21 12:46:55 +09:00
Mateusz Rzeszutek
5ef9158791
Instrument spring-batch: chunk ( #1850 )
2020-12-18 13:11:54 +02:00
Anuraag Agrawal
76d1f07423
Update to released SDK 0.13.1 ( #1936 )
2020-12-18 14:12:30 +09:00
Anuraag Agrawal
f0a6c6d772
Update SDK dependency to 0.13.0-SNAPSHOT. ( #1924 )
...
* Update SDK dependency to 0.13.0-SNAPSHOT.
* Update smoke tests
* Fix formatting
* Spot
2020-12-17 18:20:59 +09:00
Mateusz Rzeszutek
627a7ae6de
Instrument spring-batch: JSR-352 & Spring Batch XML tests ( #1852 )
2020-12-17 18:15:03 +09:00
Mateusz Rzeszutek
f82e9107d6
Instrument spring-batch ( #1843 )
...
* Instrument spring-batch: job & step
* Instrument spring-batch: job & step - code review comments
* Instrument spring-batch: job & step - code review comments
* Instrument spring-batch: job & step - code review comments
* spotless
* Apply suggestions from code review
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Instrument spring-batch: job & step - code review comments
* spotless
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-12-16 13:27:23 +02:00
Lauri Tulmin
d8f7886903
Move setup from static initializer to setupSpec to ensure that property is set for both SpringWebfluxTest and SingleThreadedSpringWebfluxTest not only the one that runs first. ( #1915 )
2020-12-15 10:10:23 -08:00
Mateusz Rzeszutek
a7cad4b36f
Propagate context in Spring SimpleAsyncTaskExecutor ( #1897 )
...
* Propagate context in Spring SimpleAsyncTaskExecutor
* Propagate context in Spring SimpleAsyncTaskExecutor: code review comments
2020-12-15 15:30:25 +01:00
Trask Stalnaker
8235b345eb
Hide spring non-spec'd attributes behind flag ( #1906 )
...
* Hide spring non-spec'd attributes behind flag
* Spotless
* Don't cache configuration :(
2020-12-15 08:50:00 +02:00
jason plumb
67371ecfc9
Fix import for @WithSpan in docs. ( #1900 )
2020-12-14 13:03:53 -08:00