Commit Graph

5271 Commits

Author SHA1 Message Date
Anuraag Agrawal f9df981b2e
Switch publishing release target to sonatype. (#1823)
* Switch publishing targets to sonatype.

* Continue with jfrog

* typo
2020-12-04 12:41:01 +09:00
Trask Stalnaker 6154538d08
Fix matrix smoke test package name (#1827) 2020-12-03 17:24:57 -08:00
Trask Stalnaker 65f54e450b
Use Context more in HttpClientTracer (#1811)
* Use Context more in HttpClientTracer

* Better http-url-connection response object

* Follow database semantic conv for elasticsearch-rest

* Remove unnecessary CallDepth tracking
2020-12-03 11:47:08 -08:00
Nikita Salnikov-Tarnovski 54e3df3cd4
Add jsp to test matrix application (#1825)
* Add jsp to test matrix application

* Trying to fix sudden muzzle failure
2020-12-03 19:40:31 +02:00
Mateusz Rzeszutek fff6eb7004
Add HTTP attributes support for AWS lambda function wrapper (#1780) 2020-12-03 18:20:04 +02:00
Nikita Salnikov-Tarnovski 71f1a79100
Introduce test matrix (#1821)
* Introduce test matrix and proper WildFly test

* Restore test to old version until matrix is merged

* Add workflow to publish test matrix

* Satisfy checkstyle

* Polish

* Use docker build args instead of replacing tokens
2020-12-03 12:34:45 +02:00
Anuraag Agrawal 6d046bf52a
Release build can rely on master build checks instead of testing again. (#1792) 2020-12-02 13:57:21 +09:00
Nikita Salnikov-Tarnovski 41fc96d1a6
Test span context propagation (#1808) 2020-12-02 13:56:44 +09:00
Trask Stalnaker a04a0586a5
Fix mongo-common testLatestDeps (#1818) 2020-12-01 20:18:17 -08:00
Trask Stalnaker a2770c311e
Don't use ConfigUtils outside of AgentTestRunner tests (#1796)
* NetPeerUtilsTest

* RedisCommandNormalizerTest

* InstrumentationModuleTest

* HttpClientTracerTest

* Normalize test config properties

* Create ConfigBuilder in instrumentation-api

* Keep config properties compatible with SDK
2020-12-01 16:52:08 -08:00
Mateusz Rzeszutek 3c1a09109f
Use sdk-extensions/resources in the agent (#1809)
* Use sdk-extensions/resources in the agent

* Add smoke test, fix dropwizard test
2020-12-01 16:03:51 -08:00
Trask Stalnaker 0bd85d7b7f
Pass around context more instead of span (HttpServerTracer) (#1810) 2020-12-01 14:49:01 -08:00
Trask Stalnaker 01b4345742
Move MongoClientTracerTest to same module as MongoClientTracer (#1804)
* Move MongoClientTracerTest to mongo-common

* Remove multi-version support

* Use library dependency
2020-12-01 14:45:45 -08:00
Trask Stalnaker c07da390c0
Update WithSpan instrumentation to prevent multiple SERVER and CLIENT spans (#1801)
* Make WithSpan instrumentation SERVER aware

* Also CLIENT aware

* Spotless

* Don't put invalid span into scope

* Return Context from startSpan
2020-12-01 08:05:34 +02:00
Nikita Salnikov-Tarnovski 483d477e67
Fix port used for self-call (#1807) 2020-11-30 16:21:39 +02:00
Vladimir Šor 9f40f193e3
Added Struts2 to the main README. (#1636)
* Added Struts2 to the main README.

* Added Struts2 to the main README.
2020-11-30 09:38:59 +02:00
Trask Stalnaker ca76c80820
Hardcode expected values in tests (#1803)
* DEFAULT_SPAN_NAME

* TEMP_DESTINATION_NAME

* LoggingContextConstants

* Remove unnecessary dependencies

* Hardcode expected normalized queries in tests

* Spotless
2020-11-30 09:16:59 +02:00
Anuraag Agrawal 3475cbd77d
Migrate test docker images to GHCR. (#1790) 2020-11-30 09:15:42 +02:00
Trask Stalnaker e92bdb46f8
Don't dynamically change config mid-Kafka test (#1797)
* Don't dynamically change config mid-Kafka test

* Codenarc

* Spotless
2020-11-30 09:14:11 +02:00
Trask Stalnaker 573cd0b4e9
Propagate context even when no span (#1802)
* Propagate context even when no span

* Don't propagate root context
2020-11-30 08:26:50 +02:00
Trask Stalnaker 0c8d7fe73f
Miscellaneous cleanup (#1805)
* Remove outdated doc

* Remove unnecessary dependencies

* Formatting

* Rename TRACER to tracer

* Move WrappedFuture to top-level class

* Add missing shadow config

* Use simpler type

* Use simpler base class
2020-11-29 21:05:53 -08:00
Trask Stalnaker a3d11c0262
Rename auto annotations to ext annotations (#1799) 2020-11-29 21:04:55 -08:00
Trask Stalnaker 61d0af0bd5
Format scala files (#1800) 2020-11-29 21:04:34 -08:00
Trask Stalnaker 26f254b10d
Create javaagent dirs for all instrumentations, part 2 (#1794) 2020-11-28 22:26:49 -08:00
Trask Stalnaker 41bd489a77
Format groovy files (#1793) 2020-11-28 21:22:14 -08:00
Trask Stalnaker 5f263644da
Create javaagent dirs for all instrumentations (#1668)
* Create javaagent dirs for all instrumentation

* Add note about kotlin coroutine library instrumentation

* Feedback
2020-11-28 21:04:16 -08:00
Trask Stalnaker f2bb2f3e30
Split out methods and opentelemetry-annotations modules (#1787) 2020-11-28 12:25:09 -08:00
Trask Stalnaker 2b2ffa87ed
Rename defaultEnabled property to default-enabled (#1788) 2020-11-28 10:50:59 -08:00
Trask Stalnaker 083651acef
Update more config property names (#1786) 2020-11-28 10:50:51 -08:00
Trask Stalnaker b683c2ff05
Convert the last two decorators to tracers and delete BaseDecorator (#1785) 2020-11-28 10:50:41 -08:00
Trask Stalnaker 66b4088450
Remove servlet.context span attribute (#1783) 2020-11-28 10:50:26 -08:00
Anuraag Agrawal cc07597ef4
Configure maven-publish for uploading to bintray instead of bintray p… (#1789)
* Configure maven-publish for uploading to bintray instead of bintray plugin.

* Snapshots too
2020-11-28 17:23:02 +09:00
Anuraag Agrawal f9671e70af
Sign artifacts in build instead of in bintray. (#1778) 2020-11-28 15:39:52 +09:00
Nikita Salnikov-Tarnovski 2222905aa2
Preparation for e2e propagators test (#1781) 2020-11-27 21:57:21 +02:00
Nikita Salnikov-Tarnovski 56acd99cfb
Update build status badge (#1782) 2020-11-27 11:50:36 -08:00
Jakub Wach 2689653ee7
open AWS lambda wrapper for extensions (#1777) 2020-11-27 11:12:52 +09:00
Mateusz Rzeszutek 9a64a628ea
Make instrumentations non final (#1752)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-26 11:22:25 -08:00
Mateusz Rzeszutek 90ecff512a
Muzzle mismatch logs should be warnings in tests (#1754) 2020-11-26 11:21:17 -08:00
Anuraag Agrawal 31f1a73d59
Upgrade build plugin versions. (#1774) 2020-11-26 18:16:14 +09:00
Ago Allikmaa d42dccb9bd
Make ByteBuddy task deterministic by using linked sets/maps. (#1770)
* Make ByteBuddy task deterministic by using linked sets/maps.

* Add class-level comments explaining the use of Linked maps/sets.
2020-11-26 11:07:07 +02:00
Anuraag Agrawal acd0ac07e2
Use -P correctly instead of -D for specifying toolchain paths (#1775)
* Disable toolchain detection on CI

* P not D

* Reenable CI branch selection.
2020-11-26 11:04:38 +02:00
Anuraag Agrawal 91a9e1885e
Replace java test version rule with property. (#1769)
* Replace java test version rule with property.

* Fix enabled check

* Update java.gradle
2020-11-26 16:53:20 +09:00
Anuraag Agrawal 412d9991be
Inject context for aws sdk 1.11 requests too. (#1771) 2020-11-26 15:25:37 +09:00
Trask Stalnaker 7a6613ca6c
Simplify netty-4.1 AttributeKeys (#1757)
* Simplify netty-4.1 AttributeKeys

* Suggestions

* Shorten names

* Make same naming changes for netty-4.0

* Update instrumentation/netty/netty-4.0/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_0/AttributeKeys.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2020-11-26 11:49:52 +09:00
Anuraag Agrawal 6ab51c1194
Enable caching of bytebuddy cache. (#1764) 2020-11-26 10:25:28 +09:00
Trask Stalnaker 325238f128
Rename otel.trace.classes.excludes to otel.javaagent.exclude-classes (#1747)
* Rename otel.trace.classes.excludes

* Spotless
2020-11-25 16:53:49 +02:00
Trask Stalnaker 6f0c6c2f45
Change default logging exporter prefix to "" (#1758) 2020-11-25 15:01:48 +02:00
Ago Allikmaa d03c3d0d7e
Fix ByteBuddy tasks failing on daemon reuse. (#1762) 2020-11-25 15:01:32 +02:00
Mateusz Rzeszutek 46a96c09f7
Remove unnecessary additionalHelperClasses() from elasticsearch-transport (#1766) 2020-11-25 15:00:19 +02:00
Anuraag Agrawal 822be11dbc
Use Kotlin context element in agent instrumentation (#1618)
* Use SDK helper

* Revert unintended.
2020-11-25 18:45:00 +09:00