Tyler Benson
03bcdc97cc
Move awaitGC to common utility package
2019-01-25 10:32:09 -08:00
Tyler Benson
68d93ce969
Merge pull request #640 from DataDog/tyler/event-sampling
...
Initial support for setting Event Sample Rate via tags
2019-01-22 08:22:46 -08:00
Nikolay Martynov
28e1749c2a
Merge pull request #662 from DataDog/mar-kolya/partial-trace-flush
...
Add support for partial trace flush
2019-01-22 10:16:43 -05:00
Nikolay Martynov
2a7cebc311
Add support for partial trace flush
...
Add a configuration option and logic to flush purtial traces to the
agent if ongoing trace becomes too large.
2019-01-17 09:09:50 -05:00
Tyler Benson
a411f7cc5e
Upgrade jackson-dataformat-msgpack to 0.8.16
2019-01-16 13:46:20 -05:00
Tyler Benson
bbfcb26cd1
Implement support for setting Event Sample Rate via tags
...
This only adds the API, no changes to the integrations.
2019-01-04 15:26:12 -08:00
Tyler Benson
82dcc3ce6c
Merge pull request #629 from DataDog/ark/jmx-tagging
...
Add languages tag to jmx/runtime tags
2018-12-28 09:34:20 -08:00
Tyler Benson
761ea7042a
Fix size calculations and improve DDTracerTest
2018-12-27 17:08:46 -08:00
Tyler Benson
8b910b46d1
Update tests for `language` tag in root span
2018-12-27 16:00:47 -08:00
Andrew Kent
e9f1436522
Additional continuable-scope tests
2018-12-19 17:12:58 -08:00
Andrew Kent
1ed64da10e
Add internal scope listener api
2018-12-19 13:21:07 -08:00
Andrew Kent
5132f0da4b
wip: Add languages tag to jmx/runtime tags
2018-12-17 13:32:50 -08:00
Andrew Kent
2dfc3ed465
Do not set the sampler rate for RateByServiceSampler
2018-12-13 08:24:09 -08:00
Andrew Kent
52eaacc929
Enable priority sampling by default
2018-12-12 18:29:08 -08:00
Nikolay Martynov
7728f9918e
Remove shutdown hook when DDTracer is shutdown
...
This is similar to the problem with weak map supplier and may lead to
a memory leak if we created/estroy many DDTracer objects.
2018-12-05 15:02:44 -05:00
Tyler Benson
983077d150
Move mock/assert deps out of common dependencies
2018-11-30 10:02:26 -08:00
Nikolay Martynov
2e8dc9d08f
Fix Ratpack tests that got broken by ExecutorInstrumentation refactoring
...
It turns out closing continuation also closes parent span. This is not
very good in cases when we end up not using continuation if
continuation in a state has already been setup.
This patch provides way to close continuation in a way that doesn't
affect parent scope.
2018-11-29 15:21:46 -08:00
Andrew Kent
cf033baf7e
Merge pull request #591 from henry-megarry/master
...
implementing add reference to work with opentracing-spring-cloud-starter
2018-11-26 20:06:06 +00:00
Nikolay Martynov
80cd7cd500
Do testAnnotationProcessor deps.autoservice in modules with services in tests
...
Otherwise sometimes tests cannod discover services
2018-11-23 09:44:49 -05:00
henry-megarry
001c5f7349
implementing add reference to work with opentracing-spring-cloud-starter
2018-11-21 14:27:13 -06:00
Tyler Benson
e888b170c4
Merge pull request #582 from DataDog/tyler/servlet-dispatch
...
Fix servlet async dispatch
2018-11-16 15:06:38 -08:00
Tyler Benson
93c046a664
Add support for DD_TRACE_AGENT_PORT setting
...
Makes this more consistent with other apm language clients.
2018-11-16 11:09:26 -08:00
Tyler Benson
cde02e1ae5
Fix servlet async dispatch
...
Finish existing trace and propagate to the next request.
Improve dispatch testing.
2018-11-16 08:55:11 -08:00
Andrew Kent
d2a8b7fb28
Ensure tracer traceCounter is always shared with DDApi
2018-11-16 08:16:18 -08:00
Nikolay Martynov
1b43a18eb4
Put back DDTracer constructor that got removed
2018-11-15 11:57:42 -05:00
Tyler Benson
188bdf498f
Add comments and remove unneeded code.
2018-10-23 16:40:39 +10:00
Tyler Benson
a603eee841
Fix issue with saving tags when not propagating trace.
...
Previously, when setting headers as tags, the tags would only be saved if the request was propagated from another trace.
2018-10-23 16:37:22 +10:00
Nikolay Martynov
34372533c1
Add config for tags that propagate to JMXFetch and spans
...
Also add runtime-id tag to root span and JMXFetch metrics
2018-10-22 15:51:20 -04:00
Tyler Benson
78c6f881ed
Merge pull request #535 from DataDog/tyler/rabbit
...
Add instrumentation for RabbitMQ’s AMQP library
2018-10-19 23:26:50 +10:00
Isak W
57f021c631
Add test case for trace/span id serialization
2018-10-18 00:45:23 +02:00
Tyler Benson
8ffeb5bedf
Add instrumentation for RabbitMQ’s AMQP library
2018-10-17 16:32:24 +10:00
Isak W
484d54d796
Parse trace/span id as BigInteger rather than letting msgpack parse it
2018-10-16 23:07:50 +02:00
Tyler Benson
432ce89a07
Add assertTraces to AgentTestRunner with implied argument
...
This will also help with auto complete when writing tests.
2018-10-15 10:19:00 +10:00
Doug Roper
2aa7ffbcbf
Fix a couple typos.
2018-10-02 21:51:04 -04:00
Tyler Benson
8b822ff26d
Fix AWS tests and change span type to http-client
...
There seems to be a bug. I would expect the aws span to be the parent of the apache http span, but that is not the case.
Removed the now unused HTTPComponent decorator.
2018-09-28 21:23:30 -04:00
Tyler Benson
4eb0cd4097
Refactor Apache HttpClient Instrumentation.
...
Removes the need for DDTracingClientExec.
Reduces extra spans.
Does not include a span for each redirect.
Compatible with 4.0+ instead of just 4.3+.
2018-09-28 17:52:39 -04:00
Nikolay Martynov
caa799ddc1
Refactor DDTraceConfig to a Config we can use globally
...
This would allow us to use same configuration ingrastructure in
different modules. E.g. upcoming JMX.
2018-09-12 17:14:58 -04:00
Andrew Kent
7154b54e10
Rename TracerBridge and Provider
2018-08-27 12:04:26 -07:00
Andrew Kent
9f1d22ea6b
Register TracerBridge in TracerInstaller instead of DDTracer init
2018-08-27 12:04:26 -07:00
Andrew Kent
e565205d77
TraceInterceptor registration api
2018-08-27 12:04:26 -07:00
Andrew Kent
ab14c85fcf
Merge pull request #459 from DataDog/ark/gc-span-closing
...
gc span closing
2018-08-27 11:57:37 -07:00
Andrew Kent
bc105af06f
Doc PendingTrace's root span.
2018-08-27 11:33:21 -07:00
Andrew Kent
29b9da5fb1
Add getRootSpan() to MutableSpan
2018-08-27 11:02:29 -07:00
Andrew Kent
e0837efb5b
Fix remove PendingTrace from span cleaner bug
2018-08-27 10:58:07 -07:00
Andrew Kent
9d4933011e
Fix flickering PendingTraceTest
2018-08-27 10:58:07 -07:00
Andrew Kent
a6b2e1f27c
Don't report traces closed by garbage collection.
2018-08-24 10:13:32 -07:00
Nikolay Martynov
c95baef487
Wait for given reference to get GCed in `waitGC`
...
This should help to make sure that object we are interested in
actually gets GCed.
This change also improves tests for PendingTrace and ScopeManager to
make sure that trace gets cleaned up.
2018-08-21 10:05:10 -04:00
Nikolay Martynov
a0036a76cc
Add `runFinalization` to `waitForGC`
2018-08-19 00:49:27 -04:00
Tyler Benson
20993e7e16
Allow tests to run on all JDKs
2018-08-16 14:23:58 +10:00
Tyler Benson
e07dfffe5f
Migrate tests to new TestHttpServer
2018-08-16 14:23:58 +10:00