Commit Graph

440 Commits

Author SHA1 Message Date
Anuraag Agrawal 6063a16f54
Update to OTel 1.9 (#4634)
* Update to OTel 1.9

* Check null
2021-11-15 17:56:53 +09:00
Trask Stalnaker 37e24ec924
Sync gradle-plugins version with main project (#4248)
* Sync gradle-plugins version with main project

* More fixes

* Can rely on examples build against all branches now?

* Use common version.gradle.kts

* Update doc

* Simplify
2021-10-29 10:34:49 -07:00
Trask Stalnaker 7ae89fa3b9
Post 1.6.0 release updates (#4108) 2021-10-19 22:31:08 -07:00
Trask Stalnaker f4194e9809
Fix examples build (#4431) 2021-10-19 16:49:44 -07:00
Lauri Tulmin 17a85bbc22
Use byte-buddy-dep instead of byte-buddy (#4400)
* Use byte-buddy-dep instead of byte-buddy

* print stacktrace on examples failure

* try to fix gradle plugins

* try to fix extension build

* try to fix extension build

* try to fix extension build

* try to fix extension build

* try removing mavenLocal

* add mavenLocal plugin repository

* publish gradle-plugins to mavenLocal for examples ci build

* Fix bytebuddy exclusion
2021-10-19 13:46:48 -07:00
Trask Stalnaker 236061b8e9
Bump gradle-plugins version in examples (#4427) 2021-10-19 11:44:12 -07:00
Trask Stalnaker cfdc4ac7e5
Change the default javaagent artifact to have exporters (#4106)
* Change default javaagent to all, introduce slim

* Update release builds

* Update examples build

* Update benchmark-overhead

* Update benchmark-e2e

* Update docs where ok pre-release

* Update misc

* Fix references to fullJavaagentJar

* Fix it

* Delete doc for pre-1.0 releases

* Attach backwards compatible "all" artifact to releases

* Comment

* Comment

* guessing

* fix

* Update version

* Add otlp/grpc exporter to slim artifact

* Fix comment
2021-10-02 11:28:11 -07:00
Trask Stalnaker bbd1925b00
Bump version in examples (#4226)
* Bump version in examples

* Update examples to latest muzzle
2021-09-28 22:03:57 -07:00
Trask Stalnaker c5a8920a56
Use repo scoped ghcr package (#4166)
* smoke-test-spring-boot

* smoke-test-fake-backend

* smoke-test-grpc

* smoke-test-play

* Fix example distro build

* Fix formatting
2021-09-21 13:47:59 -07:00
Trask Stalnaker 0b9d8c37a5
Remove collector from smoke tests (#4186) 2021-09-21 12:33:01 -07:00
Trask Stalnaker 278cae4667
Don't use collector dev image (#4171)
* Update collector config

* Revert "Update collector config"

This reverts commit 4a76a944af.

* Don't use -dev collector image
2021-09-20 20:47:51 -07:00
Trask Stalnaker 28c68b91a0
Update "other" smoke tests to Java 16 (#4144)
* Update "other" smoke tests to Java 16

* Bump extraTag

* Play doesn't support Java 16 (or 17) yet

* Fix formatting
2021-09-17 11:50:21 -07:00
Anuraag Agrawal 971ca8b19c
Update to OTel 1.6 (#4120)
* Update to OTel 1.6

* Example build

* More example

* More example
2021-09-14 20:12:18 +09:00
Trask Stalnaker 62c604f2f5
Format java files in standalone projects (#4105) 2021-09-13 16:16:25 +09:00
Trask Stalnaker 2d79e6a6ef
Upgrade all gradle wrappers (#4107)
* Upgrade all gradle wrappers

* Add doc
2021-09-13 16:16:10 +09:00
Trask Stalnaker c13eb7932e
Update collector port (#4071) 2021-09-08 18:18:05 -07:00
Trask Stalnaker 1ea73278d4
Fix extension shading (#4064) 2021-09-08 07:55:44 -07:00
Trask Stalnaker d90d7c80f3
Use new HelperResourceBuilder (#3976)
* Use new HelperResourceBuilder

* Use latest to avoid merge conflict
2021-08-27 09:48:16 -07:00
Trask Stalnaker 79f4351e5c
Fix examples build again (#3983) 2021-08-26 23:57:26 -07:00
Nikita Salnikov-Tarnovski 28db0c30cd
Deprecate old extensions (#3825)
* Introduce stable property for external extensions

* Update docs to use stable extension property.

Also log a warning if deprecated otel.javaagent.experimental.exporter.jar is used.

* Format

* Format

* Polish
2021-08-25 13:59:17 -07:00
Trask Stalnaker 99de444ffc
Remove zipkin from otel collector smoke test config (#3953)
* Remove zipkin from otel collector smoke test config

* Smoke tests too
2021-08-25 12:17:23 -07:00
Trask Stalnaker 6ceeacd381
Fix examples build (#3899)
* Fix examples build

* Publish main repo artifacts locally

* Sync builds

* Fix init script?

* Fix publishing of agent-for-testing
2021-08-22 17:26:51 -07:00
Mateusz Rzeszutek d13d1cf226
Bump muzzle plugins version (#3824) 2021-08-11 23:27:17 +03:00
Mateusz Rzeszutek 421fec4cfe
Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter) (#3818)
* Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter)

* Use context class loader

* func -> action
2021-08-11 16:06:54 +02:00
Nikita Salnikov-Tarnovski 5d51f03140
Use freshly released muzzle plugins (#3770) 2021-08-05 08:48:04 +03:00
Nikita Salnikov-Tarnovski 1785db5331
Extension snapshot (#3625)
* Try to build examples against locally published snapshot

* Always build examples against latest snapshot

* Add Gradle init script to remove sonatype repo

* Build examples against locally published version only during nightly builds

* Update distro demo to the latest snapshot as well
2021-07-28 15:50:27 +03:00
Nikita Salnikov-Tarnovski 6a2ee3255a
Extract muzzle check plugin (#3657)
* Extract muzzle check plugin
2021-07-26 12:37:14 +03:00
Fabrizio Ferri-Benedetti c24da7bdd7
Improve extension sample documentation and add it to the README file (#3656)
* First commit

* Update examples/extension/README.md

Co-authored-by: John Watson <jkwatson@gmail.com>

* Update README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update docs/agent-config.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update examples/extension/README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update examples/extension/README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update examples/extension/README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Edits

* Readme update

Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-07-26 12:34:53 +03:00
Nikita Salnikov-Tarnovski 672cfb9a6c
Upgrade extensions to latest release (#3655) 2021-07-22 16:27:12 +03:00
Nikita Salnikov-Tarnovski c6f9bef90e
Use published muzzle generation plugin (#3639)
* Use published muzzle generation plugin
2021-07-22 11:46:49 +03:00
Nikita Salnikov-Tarnovski 73ed96ab82
Document the possibility to embed extension into agent jar (#3624) 2021-07-19 12:11:21 -07:00
Nikita Salnikov-Tarnovski cbfd7e1a02
Trying to extract codegen plugin (#3521)
* Muzzle code generation moved to a separate plugin
* Restored old MuzzleCodeGenerationPlugin to use until the new one is published
* The simplest dependency management possible

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-07-14 17:08:47 +03:00
Nikita Salnikov-Tarnovski 901bae57b4
Make HelperInjector's dependency on Instrumentation instance more visible (#3491)
* Make HelperInjector's dependency on Instrumentation instance more visible

* Polish

* Polish

* Fix docs
2021-07-06 07:44:26 +03:00
Mateusz Rzeszutek 0125a17ef2
Update distro and extension examples to 1.3.0 (#3355) 2021-06-18 11:09:42 -07:00
Anuraag Agrawal e9244e6398
Directly initialize OkHttp without using test util. (#3304)
* Directly initialize OkHttp without using test util.

* Consistent version with smoke test
2021-06-15 18:42:55 +09:00
Nikita Salnikov-Tarnovski b9eac531ea
Embedded extension (#3237)
* Support for multiple extension jars by scanning the given folder

* Support to embed extension jar right inside agent jar

* Support for multiple embedded extensions

* Create temp folder for embedded extensions only if they found

* ExtensionClassLoader skips agent jar when scanning folder

* Apply suggestions from code review

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

* Update examples/extension/build.gradle

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-14 16:24:25 -07:00
Trask Stalnaker f1beb2397f
Intellij cleanup of markdown and yaml (#3284)
* Intellij cleanup of markdown and yaml

* Revert required yaml param
2021-06-14 13:13:01 +03:00
Trask Stalnaker bec9966e30
Fix failing test (#3269) 2021-06-12 11:37:04 +03:00
Nikita Salnikov-Tarnovski aa4f07db6e
Support for multiple extension jars by scanning the given folder (#3226) 2021-06-11 11:32:52 -07:00
Trask Stalnaker fb0d047fce
Last type instrumentations to top-level classes (#3123) 2021-05-30 16:05:31 -07:00
Lauri Tulmin 6706dbfe53
Change smoketests to use testcontainers httpclient5 transport (#3112)
* Change smoketest to use testcontainers httpclient5 transport

* Update smoke-tests/src/test/resources/testcontainers.properties

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-27 12:40:52 -07:00
Nikita Salnikov-Tarnovski 3cfd58c268
Extensions example (#3071)
* Simplify extensions example project

* Add external dependency and fat jar support

* spotless

* Apply suggestions from code review

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

* Apply suggestions from code review

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-25 14:57:43 +03:00
Nikita Salnikov-Tarnovski 51b2f31c3c
Fix broken link (#3034)
* Fix broken link

* Update examples/distro/README.md

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-05-19 09:54:35 -07:00
Nikita Salnikov-Tarnovski e3cf8ecf18
First POC for external extension loading (#2881)
* First POC for external extension loading

* Fix NPE

* Urlhandler

* Fix

* Polish

* Polish

* Urlhandler

* Trying Urlhandler

* Alternative way to load extensions

* Polish

* Add example extensions and smoke test for their usage

* Support for system property

* Polish

* Avoid doing remapping twice

* Polish after merge

* Update to latest changes in extentions api

* Polish

* No need for tooling

* Simplify

* Cleanup

* Better error handling

* Update to the latest API
2021-05-18 22:59:39 +03:00
Mateusz Rzeszutek 8be4148dea
Update examples/distro to 1.2.0 (#3020) 2021-05-17 12:12:17 -07:00
Anuraag Agrawal fe41885ee6
Switch to colon notation for dependencies. (#2994)
* Switch to colon notation for dependencies.

* Even more cleanup

* Revert mistake
2021-05-15 15:31:06 +09:00
Lauri Tulmin 2df0bb4b51
Pass jvm arguments from env var on windows payara (#2874)
* Pass jvm arguments from env var on windows payara

* enable more debug logging

* capture test output

* use the same fake backend as regular smoke test
2021-04-27 11:22:19 +03:00
Trask Stalnaker 3bc058b10b
Don't create duplicate headers (#2727)
* Test infra

* Update examples

* Update instrumentation

* Update tests

* jaxrs-client fixes

* Remove doRequest/doReusedRequest

* Fix muzzle

* some fixes

* fix test

* doc

* not private

* Apply to doRequestWithCallback also

* Update doc

* groovy

* better

* Don't hardcode traceparent

* Reuse request in SpringRestTemplateTest
2021-04-12 12:21:16 +03:00
jack-berg 035b3f42f7
Fix build and documentation typos related to autoconfigure SPI. (#2719) 2021-04-05 18:22:34 -07:00
Mateusz Rzeszutek 1406855bb7
Revert "Prevent duplicate telemetry when using both library and auto instrumentation (#2661)" (#2689) 2021-04-01 16:11:15 -07:00
Mateusz Rzeszutek 30434696ae
Prevent duplicate telemetry when using both library and auto instrumentation (#2661)
* Prevent duplicate telemetry when using both library and auto instrumentation

* Add unit test

* Fix Oshi tests

* Fix couchbase 3.1 tests
2021-03-31 10:57:04 -07:00
Trask Stalnaker e8ebf4b8a2
Update example distro to 1.0.0 (#2507) 2021-03-07 20:12:00 -08:00
Jakub Wach 9a5bc66329
AWS SDK - SNS to SQS tracing propagation test (#2483) 2021-03-04 13:33:22 -08:00
Trask Stalnaker 4c816105d2
Fix grpc smoke build (#2439) 2021-03-01 16:54:18 +09: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 90350ba6d5
Remove unnecessary muzzle log configuration in tests (#2411) 2021-02-25 18:57:35 +01:00
Mateusz Rzeszutek 9e535827e4
Add custom distro instrumentation unit test example (#2373) 2021-02-24 12:33:44 -08:00
Mateusz Rzeszutek 5490e5b4c5
Update distro example to 0.17.0 (#2371) 2021-02-22 11:41:12 -08: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 e98da2a3a2
Fix VerifyError in examples/distro servlet instrumentation (#2319) 2021-02-17 21:55:00 +02:00
Christian Neumüller 39e194a61f
examples/distro: Update to newest released versions, fix build. (#2290)
* Fix build of examples/distro.

* examples/distro: Fix smoke test.
2021-02-16 09:08:02 +09:00
Trask Stalnaker c91bff41cb
Add comment about extension shading (#2235) 2021-02-10 09:39:33 +02: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
Gábor Lipták 5bf9f34caa
Bring org.testcontainers to 1.15.1 (#2178)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2021-02-03 08:01:04 +02:00
Nikita Salnikov-Tarnovski 6c76ebf99d
Add documentation for available instrumentation customisation options (#2112)
* Add documentation for available instrumentation customisation options

* Add link to existing example
2021-01-25 22:01:56 +02:00
Nikita Salnikov-Tarnovski 746898da04
Update vendor distribution customization demo with new SDK and agent configurations (#2088)
* Update vendor distribution customization demo with new SDK and agent configurations

* Update doc
2021-01-22 15:51:10 +09:00
Anuraag Agrawal 78ef219f74
Remove queued_retry from repo (#2095) 2021-01-22 14:06:07 +09:00
jason plumb 9336bf0ecb
updates the examples to use latest otel (#2081) 2021-01-19 10:13:43 -08: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
jason plumb 7957293038
update auto-service from rc3 to rc7 (a 3 year difference!) (#2053) 2021-01-15 08:52:49 +09: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
Nikita Salnikov-Tarnovski 52cecb5209
Update to 0.13 (#1961) 2020-12-26 10:28:47 +02:00
Nikita Salnikov-Tarnovski 9556992cbc
Update vendor distro example to 0.12 (#1875) 2020-12-10 10:25:33 +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
Nikita Salnikov-Tarnovski 3e4bb25e96
Update README.md (#1743)
Fix link
2020-11-23 20:17:43 +02:00
Nikita Salnikov-Tarnovski 3185abac10
Add example of creating custom vendor distribution (#1621) 2020-11-21 11:00:53 -08:00
Tyler Benson 2526d30532 Remove examples and cleanup ignores 2018-05-24 11:13:00 +10:00
Tyler Benson 9a52303376 Apply jacoco to every java project
Some projects have ignores/whitelists, but generally coverage is pretty high.

AFAIK, this doesn’t really capture instrumentation test coverage though.
2018-05-04 16:23:32 +10:00
Tyler Benson f35e2e6ebe Remove various warnings and other cleanup
Also upgrade some plugins.
2018-05-04 14:05:06 +10:00
Andrew Kent a34d8f7876
Merge pull request #293 from DataDog/tyler/upgrade
Upgrade Byte-buddy to 1.8.8
2018-04-30 15:42:21 -07:00
Tyler Benson 8abbccc09c Upgrade shadow plugin version. 2018-04-30 16:18:48 +10:00
Tyler Benson 252fa92200 Upgrade gradle version. 2018-04-27 12:42:51 +10:00
Tyler Benson e6179f6555 Use hardcoded operation names for integrations
Backend has issues with variable operation names.

Also reduce dependencies on OT-contribs.
2018-04-27 12:37:19 +10:00
Tyler Benson 57eade612f Upgrade Byte-buddy to 1.8.8
Also remove some erronously checked in files.
2018-04-26 22:53:45 +10:00
Tyler Benson 6c756afe7a Misc upgrades. 2018-03-27 11:26:46 +08:00
Gihad Murad cef86291e3 Added Redis instrumentation via Jedis client 2.9 and changed spring-boot-jdbc to spring-boot-jdbc-redis 2018-02-05 12:59:42 -05:00
Tyler Benson 64d39030e5 Use workflows in Circle to test Java 7 and 8
Java 9 is commented out because there are some test failures that will be investigated later.

Some tests had to be excluded from Java 7 because they don’t have a Java 7 compatible version.
2018-01-22 13:46:50 -05:00
Tyler Benson b2b61e0c8c Changes required for supporting OT 0.31.0
Also updates all the contrib versions that we currently depend on to their 0.31.0 supporting versions.
2018-01-16 09:52:28 -05:00
Tyler Benson 6d3d88987b Rename dd-trace-annotations to dd-trace-api
And move DDTags over to it.
Move some `datadog.trace.api` classes over to `datadog.trace.common`.
Other misc renaming.
2018-01-09 10:07:36 +10:00
Tyler Benson becf2a5862 Lots of renaming
Module:
dd-trace -> dd-trace-ot

Packages:
Standardize on `datadog.trace` and `datadog.opentracing` as the package prefixes.
2018-01-09 10:02:06 +10:00