Tyler Benson
e7604bfd3f
Report X-Datadog-Trace-Count header with traces
...
Also remove unused services endpoint code.
2018-04-18 10:27:51 +08:00
Andrew Kent
c7cf1cf36d
Merge pull request #282 from DataDog/ark/async-refactor
...
Toggleable Async Propgation on the trace context
2018-04-17 09:44:41 -07:00
Andrew Kent
5f5d654a4c
Merge pull request #288 from DataDog/ark/agent_priority_sampling
...
Move PrioritySampling flags to dd-trace-api project
2018-04-17 09:26:45 -07:00
Andrew Kent
9bcd5677ed
Merge pull request #287 from DataDog/ark/logging
...
Logging
2018-04-17 09:26:32 -07:00
Tyler Benson
c796260a39
Merge pull request #285 from DataDog/tyler/build-workspace
...
Build with Java 8, but run tests with other JDKs
2018-04-17 13:14:54 +08:00
Andrew Kent
32272a4aa7
Move PrioritySampling flags to dd-trace-api project.
2018-04-16 12:46:26 -07:00
Andrew Kent
364b3e999a
Remove warning from mongo listener. Add injection debug logging.
2018-04-16 10:34:46 -07:00
Tyler Benson
001e59e0cc
Build with Java 8, but run tests with other JDKs
...
Use workspaces to persist build between jobs.
2018-04-16 14:36:38 +08:00
Andrew Kent
03b96ca567
Increase agent writer max trace limit
2018-04-11 14:35:30 -07:00
Andrew Kent
d594d6e8db
Don't create continuations when async propagation is off
2018-04-11 13:32:58 -07:00
Andrew Kent
a0a11a51d0
Use ScopeManager to enable/disable low level async instrumentation.
2018-04-11 13:32:58 -07:00
Andrew Kent
0d7aa022db
Refactor ContinuableScope
2018-04-11 13:32:58 -07:00
Andrew Kent
01c707787f
Fix name: timestampMillis -> timestampMicroseconds
2018-04-10 16:53:58 -07:00
Tyler Benson
f05ddaa19d
Merge pull request #283 from DataDog/tyler/span-times
...
Add startTime and Duration methods to MutableSpan interface
2018-04-09 23:46:23 +08:00
Tyler Benson
fcb1e1c564
Add startTime and Duration methods to MutableSpan interface
2018-04-09 23:25:35 +08:00
Tyler Benson
79a9826863
Add the errorprone compiler.
2018-04-04 20:48:28 +08:00
Tyler Benson
5a61124cae
Add tests against an actual trace agent.
2018-03-28 22:31:15 +08:00
Tyler Benson
19b94da7bb
JAX-RS Client Tracing
2018-03-20 08:54:09 +08:00
Andrew Kent
783a6d88e2
Increase Test timeouts
2018-03-15 13:23:57 -07:00
Andrew Kent
10e12a666a
Use builtin decorators for every DDTracer
2018-03-13 12:46:48 -07:00
Andrew Kent
b5b38ee4b1
Mark all http status codes 5xx as an error.
2018-03-13 12:46:48 -07:00
Tyler Benson
0fbec69b6d
Merge pull request #253 from DataDog/tyler/traceinterceptor
...
Implement the TraceInterceptor API
2018-03-13 08:30:01 +10:00
Andrew Kent
428e304164
Rename ContextPropagator to TraceScope
2018-03-12 10:29:50 -07:00
Andrew Kent
21180530ea
Remove opentracing from dd-trace-api
2018-03-09 11:50:39 -08:00
Andrew Kent
9a83413141
Executor Instrumentation for Scala
2018-03-09 11:50:39 -08:00
Tyler Benson
286e9d2d00
Add instrumentation to catch additional classloaders.
...
Still doesn’t work with Spring Boot because the way they structure their Jars.
2018-03-09 14:32:41 +10:00
Tyler Benson
d073cd8a17
Initial pass at TraceInterceptor API
2018-03-09 14:32:41 +10:00
Tyler Benson
f57faba5db
Allow closing of continuation explicitly
...
to allow a completed trace to be reported more timely.
Continuation is closed when the returned scope is closed, but can also be closed directly.
2018-03-09 14:31:48 +10:00
Tyler Benson
087b2e7298
Fix tests
2018-03-09 14:31:48 +10:00
Tyler Benson
5c3e4c91fd
Rename to PendingTrace
2018-03-09 14:31:48 +10:00
Tyler Benson
2b1c9aabfb
Force traces to wait Continuation dereferencing before reporting
...
If all the current spans on a trace complete before a continuation can be activated, previously the trace could have been reported, not allowing additional spans to be added.
This PR changes it so any created continuations must be dereferenced (GC’d) before allowing the trace to be reported.
2018-03-09 14:31:48 +10:00
Tyler Benson
c99f10c0d2
Decouple trace flush from collection
...
Wait until all spans are finished or garbage collected before reporting trace.
2018-03-09 14:31:48 +10:00
Tyler Benson
5cbc11415d
Move SpanFactory to correct package.
2018-03-09 14:31:48 +10:00
Tyler Benson
f31632be33
Remove deprecated usage.
2018-03-09 14:31:48 +10:00
Tyler Benson
5d1297f125
Extract a trace out to a specific class
...
Rather than it just be a list of spans…
This allows for tracking of if the trace was reported or not, and in the future to do so independently of finishing the span.
2018-03-09 14:31:48 +10:00
Tyler Benson
8da3a0492d
Improve threadsafety and organization
2018-03-09 14:31:48 +10:00
Tyler Benson
9b1d454eb9
Combine Threadlocal and RefCounting into single Scope
...
Also added additional tests.
2018-03-09 14:31:48 +10:00
Tyler Benson
27c1d71504
Introduce ScopeContext and ReferenceCountingScopes
2018-03-09 14:31:48 +10:00
Jon Mort
f78c290b40
Closes #222 : Introduce a ScopeManager property
2018-03-09 14:31:48 +10:00
Andrew Kent
5ffd2142e9
Set max stack size in bytebuddy exception handler
2018-03-07 13:14:41 -05:00
Tyler Benson
759fb4e815
Configure tags to be added to every span
2018-03-01 17:19:52 +10:00
Tyler Benson
ac1b57d7a2
Fix test for v0.4 endpoint
...
Agent returns an error if no content sent, so test was failing. Need to send empty content for test to succeed.
2018-02-26 13:50:32 +10:00
Tyler Benson
4c66bc8ed2
Use nanotime for additional clock resolution
...
If a start or stop timestamp on a span is provided, the nanotime is ignored.
2018-02-23 13:13:34 +10:00
Tyler Benson
163b285868
Rename to jedis-1.4 since that’s the earliest working version
...
Also change instrumentation binding for better coverage.
2018-02-23 13:04:46 +10:00
Tyler Benson
903248ddf2
Set timeouts on all the tests.
2018-02-21 12:09:57 +10:00
Tyler Benson
c1224eaa9f
Set short timeouts for api test to prevent startup delays
...
Since endpointAvailable is called on construct, this can happen in premain when running with the agent. I included a simple retry just in case…
Not sure in what case the trace agent would respond so slowly…
2018-02-20 17:43:26 +10:00
Andrew Kent
0864f81e45
whitelist ConfigUtils from jacoco
2018-02-15 18:50:18 -08:00
Tyler Benson
c9da16f334
Add resource naming instrumentation for jax-rs
2018-02-14 19:18:01 +10:00
Tyler Benson
0299a7b9ae
Remove unused config utils file.
2018-02-13 09:07:53 +10:00
Tyler Benson
9fc5cf6a4b
Add exception for version segments in URLs
...
This seems like a common enough segment and useful to not remove.
2018-02-09 12:54:13 +10:00