Commit Graph

273 Commits

Author SHA1 Message Date
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
Tyler Benson ab7598804e Update dropwizard and spring boot readmes. 2017-08-23 15:35:55 -07:00
Tyler Benson db2758af19 Merge branch 'master' into tyler/versions
# Conflicts:
#	dd-java-agent/src/main/java/com/datadoghq/trace/agent/InstrumentationChecker.java
2017-08-23 09:08:40 -07:00
Guillaume Polaert 1086439da8 log as info level 2017-08-22 15:32:58 +02:00
Guillaume Polaert 78c99f4574 Add more logs to debug 2017-08-21 14:58:08 +02:00
Tyler Benson aad3746c2b Fix tests 2017-08-18 11:12:06 -06:00
Tyler Benson 03ca35426c Convert InstrumentationCheckerTest to Spock 2017-08-18 11:11:37 -06:00
Guillaume Polaert 870a8e2b12 Fixing tests 2017-08-18 11:03:18 -06:00
Guillaume Polaert 6392999f97 Change Json for MsgPack 2017-08-18 10:49:49 -06:00
Guillaume Polaert 848f0e824c rebasing 2017-08-17 09:39:23 +02:00
Guillaume Polaert b602c53c84 reviews 2017-08-17 09:32:15 +02:00
Guillaume Polaert ab5926afe4 reviews 2017-08-17 09:32:15 +02:00
Guillaume Polaert 0d79f0cf08 reviews 2017-08-17 09:32:15 +02:00
Guillaume Polaert a224fd0829 fix codenarc 2017-08-17 09:28:15 +02:00
Guillaume Polaert 37cc52596a Update example 2017-08-17 09:28:15 +02:00
Guillaume Polaert e874cb2e0d Implement service endpoint support 2017-08-17 09:28:15 +02:00
Guillaume Polaert 03e1ea9014 Updating example 2017-08-17 09:25:32 +02:00
Guillaume Polaert 4072edb405 Ability to add extra service information (WIP) 2017-08-17 09:25:32 +02:00
Guillaume Polaert f1b31a661a Merge pull request #102 from DataDog/gpolaert/async-writer
Proposal for flushing writer
2017-08-17 09:01:19 +02:00
Guillaume Polaert b442302b6a Fix codenarc 2017-08-16 10:36:45 +02:00
Guillaume Polaert 4a2e12c348 Test concurrency 2017-08-14 14:00:01 +02:00
Guillaume Polaert eba8d3835f Fixing tests and coverage 2017-08-14 11:31:16 +02:00
Guillaume Polaert 9145684491 Improvements due to the review 2017-08-11 14:13:30 +02:00
Guillaume Polaert 1c4c6bd8ec Skip test coverage, need to refactor 2017-08-10 13:24:18 +02:00
Guillaume Polaert 43525025da Create a separate class + reviews 2017-08-10 10:38:11 +02:00
Guillaume Polaert a4d57d2b0c Use arraylist 2017-08-09 14:36:52 +02:00
Guillaume Polaert 9884ddf687 Adding a queue class for the writer 2017-08-09 13:29:15 +02:00
Guillaume Polaert 17fa5f63b1 Implementing random delete 2017-08-08 16:13:07 +02:00
Guillaume Polaert 114ef60e6e Proposal for flushing writer (WIP) 2017-08-08 14:53:20 +02:00
Tyler Benson 38545befbb dd-trace shouldn’t be shadow bundled 2017-08-07 14:27:40 -07:00
Emanuele Palazzetti abbb441270
[decorators] fixed URLAsResourceName when the cast fails 2017-08-04 12:45:52 +02:00
Emanuele Palazzetti f1f112ff5a Merge pull request #79 from gpolaert/resource-name
[servlet] resource name for HTTP frameworks
2017-08-03 13:03:50 +02:00
Guillaume Polaert e7d54bfd14 clean tests + comments 2017-08-03 10:50:31 +02:00
Guillaume Polaert c2f2f4fe94 adding a test for isFinal 2017-08-03 10:33:28 +02:00
Guillaume Polaert 1f85eb6260 add status code check + cleaning the class 2017-08-03 10:28:02 +02:00
Guillaume Polaert 1900bb03ca apply suggestions 2017-08-03 10:13:21 +02:00
Tyler Benson effe6e8b04 Remove pom dependencies for shadow artifacts. 2017-08-02 12:48:48 -07:00
Guillaume Polaert 6686f7bbd5 fixing little things after the review 2017-08-02 18:44:03 +02:00
Guillaume Polaert a794f3cffa format 2017-08-02 17:47:52 +02:00
Guillaume Polaert d991d5c06c allow user to set the url resource config 2017-08-02 17:45:50 +02:00
Guillaume Polaert f864e0dc60 add default rules 2017-08-02 17:35:38 +02:00
Guillaume Polaert 3703b0bf41 adding url patterns WIP 2017-08-02 16:41:23 +02:00
Guillaume Polaert aef9ebec9a change span.type value 2017-08-02 13:35:37 +02:00
Guillaume Polaert f83d18c857 remove lang tag 2017-08-02 11:57:57 +02:00
Guillaume Polaert 16aba0ac7a [servlet] change the resource name for servlet integration (404 grouping) 2017-08-02 11:17:05 +02:00
Guillaume Polaert 7430296691 [sql] removing db.statement field so Agent can set sql.query tag 2017-08-02 11:08:17 +02:00
Guillaume Polaert 402e4978e2 [core] cosmetics 2017-08-02 11:07:59 +02:00
Guillaume Polaert 90b817283a [core] tags are immutable, so at this time duplicate the db.statement 2017-08-02 11:07:12 +02:00
Guillaume Polaert e5d0e38008 [core] catch errors when decorators fail to decorate 2017-08-02 11:06:31 +02:00
Guillaume Polaert e93adf9f8f [core] compatibility for sql.query tags 2017-08-02 11:06:21 +02:00
Guillaume Polaert 2f22b98cd1 [core] adding the decorator to the agent loading 2017-08-01 12:28:28 +02:00
Guillaume Polaert 63cca28fe7 [core] override operation name using decorators 2017-08-01 12:27:56 +02:00
Guillaume Polaert b28327655e [core] renaming decorators to AbstractDecorator 2017-08-01 12:27:46 +02:00
Tyler Benson 61c3729f72 Attempt to load config files with both `yaml` and `yml` suffix 2017-07-31 13:08:58 -07:00
Tyler Benson ee42316988 Add default config values to the yaml config 2017-07-31 12:57:01 -07:00
Tyler Benson ab791179ad Generate a random trace ID instead of copying the span ID 2017-07-31 11:45:56 -07:00
Tyler Benson 43c80cf734 Use a ThreadLocalRandom generator for span IDs instead of nanoTime 2017-07-31 10:47:12 -07:00
Guillaume Polaert e830e1b7e6 fix the operation name 2017-07-28 09:20:40 +02:00
Guillaume Polaert f20ed93741 formatting 2017-07-28 09:20:40 +02:00
Guillaume Polaert b652c25242 some stuff needed 2017-07-28 09:20:38 +02:00
Guillaume Polaert 864db966f1 Close span when exception exit (#66) 2017-07-27 21:09:25 +02:00
Guillaume Polaert 9d9fdc32d9 Fix wrong date calculation (#69) 2017-07-27 21:08:54 +02:00
Kent Shultz f3e55d2d69 Update documentation (#67) 2017-07-27 21:08:35 +02:00
Guillaume Polaert 4ed46cec39 use millis precision + javadoc 2017-07-27 10:48:35 +02:00
Guillaume Polaert ebb3cde32c centralize all clock methods 2017-07-26 14:45:03 +02:00
Guillaume Polaert e8c980de20 coverage 2017-07-26 12:55:51 +02:00
Guillaume Polaert e5c119b857 formatting 2017-07-26 12:52:09 +02:00
Guillaume Polaert d3260243f5 make thread safe for nanoTime() 2017-07-26 12:47:16 +02:00
Guillaume Polaert 3239680d4a remove useless decorators 2017-07-24 16:31:30 +02:00
Guillaume Polaert 802fe8b65d By default report the db.type instead of the component for jdbc and databases 2017-07-24 16:29:55 +02:00
Guillaume Polaert 7c5fd24a14 Moving decorators config to the dd-trace project + default service name 2017-07-24 13:36:44 +02:00
Tyler Benson 8e4e9fe0ac Clean up version and include git sha in reported number
Exclude lombok from being included in the shadow jar.
2017-07-21 08:52:17 -07:00
Tyler Benson b2347f1170 Report the java vm name as the interpreter 2017-07-20 15:42:16 -07:00
Tyler Benson 8f794f8364 Merge pull request #59 from DataDog/tyler/shadow-artifacts
Fix jar uploading to use shadow jar instead of unbundled jar
2017-07-20 10:11:12 -07:00
Guillaume Polaert 861e0a7cac Format and renaming issues 2017-07-20 10:09:59 -07:00
Tyler Benson 02d8f153a6 Fix jar uploading to use shadow jar instead of default
Rename default jar to be explicit that no dependencies are embedded.
2017-07-20 09:58:22 -07:00
Guillaume Polaert de9c45f5d2 Fixing format 2017-07-20 16:47:05 +02:00
Guillaume Polaert 41ff677f4d Fixing format 2017-07-20 16:45:32 +02:00
Guillaume Polaert f67810e729 Fixing issue with the tracer factory (decorators aren't loaded) 2017-07-20 16:42:41 +02:00
Tyler Benson d6271d866e Use lombok @Slf4j annotation for declaring loggers 2017-07-19 11:24:41 -07:00
Tyler Benson 00c582acc9 use a queue 2017-07-19 08:14:13 -07:00
Tyler Benson 787fd418a4 Add JMH tooling for dd-trace 2017-07-19 08:14:13 -07:00