Nikolay Martynov
7863a68a53
Fix typo
2019-06-06 09:41:36 -04:00
Tyler Benson
21c22d6985
Fix log message and add ignores
...
Also add CODEOWNERS
2019-05-24 11:44:10 -07:00
Luca Abbati
ad3401b815
Apply suggestions from CR #827
2019-05-17 10:15:03 +02:00
Luca Abbati
1d5dd5b28a
Refactor merging application root span tags with jmx base tags
2019-05-16 19:54:25 +02:00
Luca Abbati
85684f955b
Remove unused imports from test
2019-05-16 14:51:27 +02:00
Luca Abbati
2a975b31ee
Adapt test to new DDTracer constructor and unserializable field
2019-05-16 14:35:56 +02:00
Luca Abbati
10069847a3
Define the concept of applicationRootSpanTags and apply only to root
...
tags
2019-05-16 12:25:43 +02:00
Luca Abbati
0e9f9d9d02
Refactor names of DDSPan's methods to interact with root span
...
The naming of methods in DDSpan used to detect/retrieve the root span
for a fiven span were slightly misleading. Specifically 'isRootSpan()'
returned true if and only if the span is the root span of teh entire
trace(even in the context of distributed tracing), while getRootSpan()
return the root span of the trace fragment generated by the currently
traced application. I hope that trenaming such methods to
'isTraceRootSpan()' and 'getApplicationRootSpan()' respectively will
help adding some clarity.
The old method names have not been removed for backward comptibility
reasons and tests have been added, but they have been marked as
deprecated.
2019-05-16 11:31:37 +02:00
Luca Abbati
23ffcf0fce
Apply workaround to refresh configuration values during tests
2019-05-15 16:00:14 +02:00
Luca Abbati
c8a04b0a4f
Refactor hostname detection in tracer
2019-05-15 13:42:43 +02:00
Luca Abbati
7fd16d1eef
Add tests for hostname detection
2019-05-13 18:31:15 +02:00
Luca Abbati
c15ecc8026
Properly format code
2019-05-13 11:48:38 +02:00
Luca Abbati
938740569f
Set the hostname on root spans
2019-05-10 16:12:15 +02:00
Tyler Benson
03f44bd8b9
Merge pull request #807 from DataDog/tyler/exclude-config
...
Add config allowing classes to be excluded from transformation
2019-04-23 10:37:01 -07:00
Luca Abbati
0d0fa55f21
Sort decorators factory list alphabetically
2019-04-23 11:52:37 +02:00
Tyler Benson
ec91a75848
Add config allowing classes to be excluded from transformation
...
Add the following system property or corresponding environment variable:
```
dd.trace.classes.exclude=some.packagename.*,some.classname.MyClass$NestedClass
```
2019-04-19 10:41:13 -07:00
Luca Abbati
6e825afef2
Move from ForcedSampling tags to standard DDTags based tags
2019-04-19 16:21:35 +02:00
Luca Abbati
6cbdc2005e
Restore erroneously removed getTags method from span context
2019-04-19 10:42:36 +02:00
Luca Abbati
19e9fb83bb
Remove obsolete forced tracing method from span context
2019-04-19 09:20:17 +02:00
Luca Abbati
d6a5255e8f
Keep tag decorators count in tests up to date
2019-04-18 14:22:09 +02:00
Luca Abbati
fc5b72f86b
Fixed indentations based on google style rules
2019-04-18 13:17:21 +02:00
Luca Abbati
7e157e0561
Move implementation of manual sampling via tag from span to decorators
2019-04-18 13:11:33 +02:00
Luca Abbati
9b705fee2f
Fix code styles errors
2019-04-17 16:46:18 +02:00
Luca Abbati
762930bebd
Run code formatter
2019-04-17 15:19:10 +02:00
Luca Abbati
bff7ac8174
Simplify business logic to set force tracing as a tag
2019-04-17 14:39:54 +02:00
Luca Abbati
f92e2bbdf6
Rebrand priority sampling while being BC with legacy approach to set it
2019-04-17 14:31:39 +02:00
Tyler Benson
a11b888d7a
Update ratpack instrumentation and remove default disabled.
2019-04-08 18:26:08 -07:00
Nikolay Martynov
a245ec4949
Upgradle gradle
2019-04-03 12:56:15 -04:00
Nikolay Martynov
de980c2d52
Merge pull request #787 from DataDog/mar-kolya/compiler-config-fix
...
Mar kolya/compiler config fix
2019-04-01 09:15:39 -04:00
Tyler Benson
e4c0175ed0
Merge pull request #785 from DataDog/tyler/pendingtrace-init
...
Ensure that PendingTrace.SPAN_CLEANER initialized with Tracer
2019-03-29 10:22:07 -07:00
Tyler Benson
bc9b96222d
Add fixme for future testing task.
2019-03-29 10:03:53 -07:00
Nikolay Martynov
65630a702d
Make SpanCleaner initialization explicit
2019-03-29 12:21:17 -04:00
Nikolay Martynov
4c8a790c3b
DDTracer: minor javadoc fix
2019-03-29 09:42:52 -04:00
Tyler Benson
a9760f24fc
Ensure that PendingTrace.SPAN_CLEANER initialized with Tracer
...
Otherwise it might get initialized by a different classloader which would prevent that classloader from being unloaded.
2019-03-28 11:26:43 -07:00
Masayasu Yamamoto
e5c504bceb
Fix log message
2019-03-28 22:38:01 +09:00
Tyler Benson
2052647ec9
Fix content length calculation for larger trace counts
...
Failure to calculate this correctly causes the agent to drop the request.
2019-03-27 15:06:07 -07:00
Tyler Benson
f98884235f
Review changes.
2019-03-21 08:10:36 -07:00
Tyler Benson
2a49998180
Allow truncation for 128 bit B3 headers.
...
This is accepted practice in the Zipkin community, so we shouldn’t break this.
2019-03-20 16:02:32 -07:00
Nikolay Martynov
2c5d2ce70d
Create TagContext during B3 headers extration
2019-03-20 12:28:39 -07:00
Nikolay Martynov
42cc3594dc
Improve injection/extraction styles configuration
2019-03-20 12:28:39 -07:00
Nikolay Martynov
4eb7936245
Implement B3 headers extraction and injection
2019-03-20 12:28:39 -07:00
Tyler Benson
7ffcf5ad4d
Change DDAgentWriter to use Disruptor
...
Serialize payloads as they arrive, send to agent when size exceeds 5MB.
If a flood of traces fills up the RingBuffer, we still count the traces that are discarded for stats reporting.
Do we want to allow configuration of the RingBuffer size?
2019-03-19 09:44:23 -07:00
Nikolay Martynov
f3cef4a1e1
Implement HTTP timeout when sending traces to Datadog agent
...
To ensure we do not pile up traces causing memory overconsumption if agent is slow to respond.
2019-03-15 11:44:19 -07:00
Nikolay Martynov
63e0c0f032
Support Unix Domain Socket proxy to send traces
2019-03-15 11:36:44 -07:00
Tyler Benson
0f07776191
Agent doesn’t like getting floats.
...
Convert to doubles instead.
2019-03-14 14:36:14 -07:00
Tyler Benson
576e554445
Migrate Mongo to Decorator
2019-03-05 20:50:06 -05:00
Tyler Benson
50279d64fe
Span type should only be an attribute and not inherited
...
Previously we were inheriting from the parent and also often setting as a tag.
Apply default span assertion to verify the spanType is being checked properly. (Include error state too.)
2019-02-28 12:39:51 -08:00
Tyler Benson
99f2d97cd5
review fixes
2019-02-26 08:32:43 -08:00
Tyler Benson
a33b6ddaa0
Implement trace origin header and propagation support
2019-02-26 08:26:31 -08:00
Tyler Benson
db47fde8d1
Group Elasticsearch instrumentation into common folder
...
Also migrate to decorator.
2019-02-22 13:28:11 -08:00