Commit Graph

254 Commits

Author SHA1 Message Date
Nikolay Martynov 2bf359d2dc Add LogRateLimiter
Some helper code to limit log entiries in client logs
2019-01-07 19:16:51 -05:00
Nikolay Martynov dcb2713f72 New api: Make Clock class package-private since it is an implementation detail 2019-01-07 13:52:16 -05:00
Nikolay Martynov eaafb5fa5d New API: remove `reportWarning` from tracer and use logger instead 2019-01-07 13:52:16 -05:00
Nikolay Martynov ed29969cb8 Initial support for JSON rendering in new API 2019-01-07 13:52:16 -05:00
Nikolay Martynov 8f79538067 New API: use full 64bit random ID range 2019-01-03 20:56:52 -05:00
Nikolay Martynov 3fb98ea51a Wrap finalizers into try/catch 2018-12-21 10:15:19 -05:00
Nikolay Martynov 9674e9f61a Start implementation of the new tracer API
This mainly implements Span, Trace and Continuation logic.
2018-12-21 10:15:15 -05:00
Andrew Kent f498a3ac5a Changes from sync 2018-12-06 17:10:17 -08:00
Andrew Kent 9cc2e58a26 Require all span and trace creation through Tracer 2018-12-06 09:45:29 -08:00
Andrew Kent 3ad6a4b382 First draft of datadog-api 2018-12-06 08:51:25 -08:00
Andrew Kent 0e6a416b57 Initial gradle projects 2018-12-03 11:45:29 -08: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
Tyler Benson d95309b9cd Allow setting host/port without specifying writer type. 2018-01-08 17:02:05 +10:00
Tyler Benson 177478bb25 Remove deprecated yaml config
In favor of configuration via env vars and sys props.
2018-01-04 15:07:33 +10:00
Tyler Benson ff1a91214a Add ignores for soon to be removed code. 2017-12-22 07:39:25 -08:00
Tyler Benson e17660203f Missed one…
Also don’t need DDTracerFactoryTest anymore…
2017-12-21 16:47:41 -08:00
Tyler Benson 02460060bc Misc cleanup
Remove out of date “async-tracing” example since it’s more about byteman and no longer relevant.

Minor changes to improve the code test coverage…
2017-12-21 16:31:03 -08:00
Tyler Benson 4822c19c5d Remove legacy config references. 2017-12-21 16:28:18 -08:00
Tyler Benson 0fb057dbcc Allow config to pull from env vars and sys props 2017-12-21 15:31:14 -08:00
Andrew Kent 922b3012e6 Support for eclipse + buildship (#173) 2017-12-14 10:20:27 +01:00
Tyler Benson d933a4049a Move OkHttp instrumentation to byte buddy 2017-12-06 18:07:17 -08:00
Tyler Benson dc89cd174e Name agent writer threadpools and set to daemon
This allows a clean shutdown, instead of keeping the vm running.
2017-12-05 16:25:47 -08:00
Andrew Kent 47b1eec6da Mongo Async Instrumentation and embedded mongo tests. 2017-11-27 09:18:49 -08:00
Andrew Kent b4ba6d8955
Merge pull request #156 from DataDog/tyler/jms
Migrate JMS to Byte Buddy and add JMS 1 support
2017-11-27 08:53:38 -08:00
Andrew Kent 42e08a4a04 Add error reporting documentation. 2017-11-22 13:23:44 -08:00
Tyler Benson 9ba647a2ac Add instrumentation for MessageListener 2017-11-17 16:02:09 -08:00
Tyler Benson 871ce37f80 Migrate JMS to Byte Buddy and add JMS 1 support
This does not yet include instrumentation for MessageListener.
I think there is actually no difference between the instrumentation so we should combine them.
I also added TEXT_MAP as a format that maps to the HTTP Codec.  There is some remapping inside the instrumentation to remove dashes before setting as a property.  This should also be changed when an official format is defined.

This also currently has a problem with Spring Boot applications as the JMS Util references classes not on the system classpath (it needs to be injected into the child classpath)
2017-11-17 12:06:30 -08:00
Tyler Benson 9e53841429 Null tags are intended for “deletion”
This was not well tested and misunderstood.
2017-11-10 16:52:57 -05:00
Tyler Benson ff4f39779e Fix transitive dependencies
New instrumentation was bringing in their dependencies into the jar, resulting in a much larger jar file.  This should resolve that.
2017-11-10 11:45:00 -05:00
Tyler Benson 66355feddb
Merge pull request #148 from DataDog/tyler/remove-super-matchers
Migrate expensive integrations using super matchers to byte buddy.
2017-11-10 09:42:48 -05:00
Tyler Benson 215397b1fd Include more details in the span context toString.
Specifically error flag and tags.
2017-11-09 19:00:02 -05:00
Tyler Benson 3d83473b5e Add some tests. 2017-11-09 16:52:27 -05:00
Tyler Benson 294320acb5 Add exception handling and supression for advice.
Also centralize classloader matching.
2017-11-09 14:45:03 -05:00
Tyler Benson f61935452b Handle case where SQL is not saved in map properly.
Otherwise this could result in an NPE.
2017-11-08 14:54:32 -05:00
Tyler Benson a8a5e2cdd4 Adjust log levels and rate limit logging.
If we’re not able to connect and send data to the agent, we don’t want to fill up their logs.
2017-11-01 13:57:21 -07:00
Tyler Benson 7e9d2f2d09 Ensure that headers are read case insensitive. 2017-10-30 11:09:53 -07:00
Tyler Benson 526d7def3b Hardcode tag names, improve formatting 2017-10-13 16:32:13 +02:00
Tyler Benson f2d1f0c209 Capture and report errors and stacktraces 2017-10-13 16:32:13 +02:00
Tyler Benson 2775dd988e Hardcode additional tag names 2017-10-13 16:03:19 +02:00
Tyler Benson 4ab32b0b95 Add test for setting service/resource name via tag. 2017-10-13 15:52:44 +02:00
Tyler Benson aac945747b Rename “service-name” to “my-service-name” to reduce confusion.
same for resource-name
2017-10-13 14:16:26 +02:00
Tyler Benson 7f8b81457e Adjust tag naming for better consistency 2017-10-12 17:46:33 +02:00
Tyler Benson 33308eff80 Change visibility to protected
This should bypass an issue with the parent class being loaded on a different classloader, resulting in an IllegalAccessError.
2017-10-10 16:02:43 -04:00
Tyler Benson cfe36d03a8 Fix headers to match standard DD trace headers
Also prevent NullPointerExceptions in servlet handler if active span somehow missing.
2017-09-27 07:44:43 -07:00
Tyler Benson fb133c8905 Update servlet operation name. 2017-09-21 08:12:44 -07:00
Tyler Benson 9c39bb64ae Fix aws version in readme, add finals and reformatting 2017-09-18 10:49:08 -07:00
Tyler Benson 4b26b787b8 Improve error logging for defineClass 2017-09-18 10:33:25 -07:00
Tyler Benson 3bc153241b Abstract core dependencies for central management 2017-09-07 16:38:21 -07:00
Tyler Benson ed6729cda2 Prevent traces from finishing with 0 duration
Ensure a minimum duration of 1.

Also improve logging a bit.
2017-09-06 12:56:43 -07:00
Tyler Benson a0d4f2ca76 Report version from main
This allows running the agent as an executable jar to report the version number.

Also repot version scan errors better.
2017-08-28 13:39:19 -07:00