John Watson
ee0d438147
Change the usage of MMSC aggregations to always be deltas. ( #1368 )
2020-07-01 10:28:20 -07:00
Lei Wang
241017bd4e
support container id in AWS ECS plugin ( #1384 )
...
* support container id in AWS ECS plugin
* fix comments; change apache common to guava
2020-07-01 10:26:52 -07:00
Giovanni Liva
0da293d929
Add SDK Telemetry resources ( #1366 )
...
* Add SDK Telemetry resources
* Address feedback
* Generate version.properties
* Use unknown when version not available
2020-06-29 11:25:47 -07:00
John Watson
24b4be90c3
Convert CorrelationContext entry keys and values to simple Strings ( #1363 )
...
* convert CC entry keys and values to simple Strings
* fix broken javadoc
2020-06-22 14:37:21 -07:00
Bogdan Drutu
d02667929b
Change instrument operations to use immutable Labels ( #1358 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 13:48:39 -07:00
Bogdan Drutu
4633676593
Use lambda references where possible ( #1355 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 11:54:14 -07:00
Bogdan Drutu
42cdd7ed3d
Use the new immutable Labels for Bind ( #1354 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 11:53:41 -07:00
Bogdan Drutu
76ef38955a
Start using real java8 in tests. ( #1352 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 09:09:28 -07:00
Giovanni Liva
f4c175d5df
Moved ResourceTest into 'resources' package ( #1353 )
2020-06-18 08:16:09 -07:00
Bogdan Drutu
aaec09d68d
Change samplers to use the new Attributes class ( #1347 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 17:23:09 -07:00
Bogdan Drutu
b734e366ec
Change to use labels for async instruments ( #1349 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 17:22:32 -07:00
Bogdan Drutu
589adc0531
Fix race condition between merged PRs ( #1348 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 15:38:45 -07:00
Bogdan Drutu
b5520ee14c
Change resource to use the new Attributes class ( #1345 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 14:20:23 -07:00
Bogdan Drutu
2312932a76
Add a ReadableKeyValuePairs and make ReadableAttribute a simple sub-interface ( #1340 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-17 11:05:43 -07:00
John Watson
fccc6d9bc3
Convert the usages of the LabelSetSdk to use the Labels class. ( #1338 )
2020-06-17 10:43:11 -07:00
John Watson
f1f5975d5c
Introduce an ReadableAttributes interface, with 2 implementations ( #1336 )
...
* Introduce an Attributes interface and have ImmutableAttributes and the AttributesMap implement it.
* make the attribute limiting a little clearer.
* tiny javadoc fix
* Rework to restore the Attributes class, and introduce a ReadableAttributes interface
* polish the javadoc a bit
* fix some broken javadoc
* revert example change; revert test name change
* javadoc de-escalation
* fix bad merge
2020-06-17 09:29:52 -07:00
John Watson
7644ef4d56
Convert SpanData to use immutable Attributes ( #1330 )
2020-06-15 17:51:49 +02:00
John Watson
c877295796
If an exporter throws an exception, log it, rather than having the IMR stop altogether. ( #1333 )
2020-06-11 15:44:20 -07:00
Anuraag Agrawal
04eb87b307
Apply platforms to resolved classpaths instead of dependency containe… ( #1288 )
...
* Apply platforms to resolved classpaths instead of dependency containers and have maven publication use resolution result for all variants.
* Revert unintended
2020-06-11 08:37:14 -07:00
John Watson
d80bd1ad67
Convert Link and Event types to use the new immutable Attributes ( #1325 )
...
* Convert Link and Event types to use the new immutable Attributes
update from the upstream branch
update from parent branch changes
* move the limiting of attributes to a custom consumer class
2020-06-10 12:13:57 -07:00
John Watson
0a921a6343
Make sure that null points aren't propagated to exporters ( #1329 )
...
* make sure that null MetricData Points are not propagated to exporters
* add a test for the double value recorder, as well
2020-06-10 08:39:07 -07:00
John Watson
6c99a09f1d
remove some junk code that snuck in ( #1327 )
2020-06-09 16:08:23 -07:00
Bogdan Drutu
afabbd1e06
Remove duplicate Result interfaces ( #1312 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-05 14:37:50 -07:00
Bogdan Drutu
643d25d244
Avoid mockito magic for span processors test, test with empty configmap ( #1309 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-04 11:20:34 -07:00
Bogdan Drutu
37b64df70b
Test flush method for multispan exporter ( #1308 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-04 09:32:12 -07:00
Giovanni Liva
4808387afb
Cleanup and additional tests for ConfigBuilder ( #1296 )
...
* Cleanup and tests for ConfigBuilder
* Add more tests
* Document mockito extension
* Reformat after rebase
2020-06-02 11:33:21 -07:00
Bogdan Drutu
a1bae308db
Add implementation for value observers ( #1300 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-01 21:11:02 -07:00
Bogdan Drutu
b633bf9d21
Refactor batchers to make it more explicit what is used. ( #1299 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-01 15:08:35 -07:00
Bogdan Drutu
f04ddd8f2a
Cleanup metrics SDK. Rename variables, allow different aggregation for async ( #1298 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-01 13:02:18 -07:00
Rashmi
322b661e37
Support env vars for TraceConfig initialization ( #1255 )
2020-06-01 20:51:13 +02:00
Brandon Kimberly
a392120914
Renamed SpanDataImpl to TestSpanData and moved to subdir test ( #1291 ) ( #1293 )
2020-05-30 14:47:25 -07:00
Nikita Salnikov-Tarnovski
7aca0d9192
Apply bom imports only if needed ( #1281 )
2020-05-29 12:35:15 -07:00
Anuraag Agrawal
a9c7c7237d
Update config / deps to allow building on Java 14. ( #1287 )
...
* Update config / deps to allow building on Java 14.
* Finish comment
2020-05-29 08:55:38 -07:00
Paulo Janotti
7fb0d4da98
Remove SpanID from sampling parameters ( #1286 )
...
* Remove SpanID from sampling parameters
* Generate SpanId only for sampled spans
* Revert "Generate SpanId only for sampled spans"
This reverts commit 5b51eaed88 .
2020-05-29 08:52:46 -07:00
Giovanni Liva
b30790c97e
Configuration for Disruptor and Zipkin ( #1254 )
...
* add configuration for Disruptor and Zipkin
* Fix checkstyle violation
* Address feedback
* Update Javadoc
* Add missing config test for Zipkin Exporter
2020-05-28 07:15:54 -07:00
Christian Neumüller
f137182fe9
Add public Samplers.emptyDecision(boolean) and decision(boolean, Map). ( #1256 )
...
* Add public Samplers.emptyDecision(boolean).
This is meant for use by custom Sampler implementations. As of now, you have to use an anonymous inner class or otherwise derive a new class because there is no publicly accessible implementation of Decision.
* Fix build, add unit test.
* Add Samplers.decision(boolean, Map).
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Copy decision attributes, fix comment.
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-27 21:01:08 -07:00
John Watson
192137e775
Convert the exportable Event to an interface ( #1277 )
...
* change Event to an interface with an impl to match
* make TimedEvent implement the Event interface
* don't make copies of already immutable event data
* copy the wrapped event, so as not to hold to user's data
2020-05-26 13:55:33 -07:00
Bogdan Drutu
833c30af98
Do not allow adding attributes, links after startSpan. ( #1266 )
...
* Do not allow adding attributes, links after startSpan.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Add tests for edge cases
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-26 06:47:24 -07:00
Anuraag Agrawal
adc02dad4f
Expose RandomIdsGenerator so it can be delegated to. ( #1268 )
...
* Expose RandomIdsGenerator for delegation and allow customizing Random.
* Unit tests
* checkNotNull
* More interesting test
* format
* Checkstyle
* requireNonNull
* Revert RandomSupplier
* Format and fuzz
2020-05-25 20:25:24 -07:00
Bogdan Drutu
791d8d5d33
Update InstrumentType to reflect the current types ( #1267 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-25 14:56:17 -07:00
Bogdan Drutu
84f5a3eab0
Add API for ValueObserver ( #1265 )
...
* Add API for ValueObserver
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Address feedback
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-22 06:32:06 -07:00
John Watson
ccb99f1c4c
change the naming of the SPI provider classes to be less confusing and line up with the auto-instrumentation project ( #1261 )
2020-05-21 14:05:01 -07:00
John Watson
17cb2c7407
Add a few missing unit tests ( #1264 )
...
* add tests for configuration of the SSP
* add tests for the EnvVarResource
2020-05-21 14:02:37 -07:00
Bogdan Drutu
aa77435a9e
Copy map attributes always to avoid unexpected changes ( #1259 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-21 12:26:34 -07:00
Bogdan Drutu
5cf9f5a625
Refactor the logic to get immutable attributes, links and events ( #1260 )
...
* Refactor the logic to get immutable attributes, links and events
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Remove support for null links, never happens
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-21 07:52:04 -07:00
John Watson
b85e7365b3
Add tests to verify immutability of the SpanData representation ( #1257 )
...
* Add tests to verify immutability of the SpanData representation, and remove an extra wrapping of links.
* Add an additional mutability test, and fix a bug with a span that hasn't ended.
* fix a tiny typo
2020-05-20 15:35:55 -07:00
John Watson
5fdc3d4848
Return a wrapped span for SpanData so only the mutable data is copied. ( #1231 )
...
* Return a wrapped span so only the mutable data is copied.
* Add a benchmark for the span pipeline
* tweak the benchmark a bit
* use unmodifiable wrappers around the collections in the wrapper.
2020-05-20 12:26:17 -07:00
Bogdan Drutu
c9fe822c13
Cleanup Samplers ( #1233 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-20 10:02:35 -07:00
Giovanni Liva
590be57734
Update javadoc ( #1238 )
...
* Update javadoc
* typos
* Formatting
* Update links in javadoc
* Polish documentation
2020-05-20 07:14:11 -07:00
Bogdan Drutu
33b33c17f9
Add more tests for the metrics API ( #1251 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-20 06:30:24 -07:00