Commit Graph

1413 Commits

Author SHA1 Message Date
Bogdan Drutu d9260d0656
Rename batcher to instrumentaccumulator, remove active batcher (not used) (#2245)
* Rename batcher to instrumentaccumulator, remove active batcher (not used)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix tests, add back check for has records

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-09 11:27:20 -08:00
dependabot[bot] 681579c30b
Bump burrunan/gradle-cache-action from v1.5 to v1.6 (#2240)
Bumps [burrunan/gradle-cache-action](https://github.com/burrunan/gradle-cache-action) from v1.5 to v1.6.
- [Release notes](https://github.com/burrunan/gradle-cache-action/releases)
- [Changelog](https://github.com/burrunan/gradle-cache-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/burrunan/gradle-cache-action/compare/v1.5...feb985ecf49f57f54f31920821a50d0394faf122)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-09 07:19:42 -08:00
Anuraag Agrawal 9d9c88a78b
Remove Obfuscated marker interface. (#2221)
* Remove Obfuscated marker interface.

* Drift

* Update OpenTelemetrySdk.java
2020-12-08 20:59:04 -08:00
Bogdan Drutu a439ca6da1
Move small internal package under common (#2219)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-09 13:45:10 +09:00
Anuraag Agrawal b9d62d2f08
Hide ResourcesConfig.Builder (#2222) 2020-12-09 11:23:28 +09:00
Bogdan Drutu 57d68f228a
Fix Jaeger example to use the artifacts from the bom (#2237)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-08 17:06:20 -08:00
Bogdan Drutu 087f58da1d
Remove references to TracingContextUtils (#2238)
* Remove references to TracingContextUtils

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update api/trace/src/main/java/io/opentelemetry/api/trace/Tracer.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-12-08 16:56:49 -08:00
Bogdan Drutu 3341c37701
Remove deprecated code from trace propagation extension (#2234)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-08 16:52:40 -08:00
John Watson 546296d158
Changelog entries, Dec 8 edition. (#2230)
* add an entry for the Link.getContext deprecation

* Add entries for the removed extension modules.
2020-12-09 09:30:00 +09:00
Bogdan Drutu bcd5720c49
Revert "Explicitly bump CI to Java 8.0.275. (#2072)" (#2236)
This reverts commit 1e1a016b9a.
2020-12-09 09:29:25 +09:00
John Watson a511af4b85
Add a section to the TracerSdkManagement.shutdown javadoc to make it clear it is a terminal operation. (#2229) 2020-12-08 12:54:05 -08:00
Anuraag Agrawal eda9518052
Remove deprecated runtime-metrics and trace-utils packages. (#2226)
* Remove deprecated runtime-metrics and trace-utils packages.

* Remove from all

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-08 12:53:08 -08:00
John Watson 704dfe270b
add some basic benchmarks for various baggage operations (#2197)
* add some basic benchmarks for various baggage operations

* update for changes from upstream; pre-allocate the strings in the benchmark.

* allocate the strings statically because we can
2020-12-08 11:00:54 -08:00
Anuraag Agrawal e4e3dfbdb0
Rename Link.getContext -> Link.getSpanContext (#2224) 2020-12-08 10:43:26 -08:00
Anuraag Agrawal 8cd1c08dba
Update coverage merging to follow Gradle example. (#2225)
* Update coverage merging to follow Gradle example.

* Use standard task naming scheme to reduce codecov detection drift.

* Restore coverage of internal package, actually it does need tests.
2020-12-08 09:54:37 -08:00
Bogdan Drutu efd6b9f3e4
Remove deprecated setCallback, change SDK to avoid volatile (#2216)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 18:37:45 -08:00
Bogdan Drutu 5732395b83
Mark as package protected deprecated Multi classes in SDK (#2217)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 18:16:57 -08:00
Bogdan Drutu 67b6339c70
Small nits in api packages (#2220)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 18:10:58 -08:00
John Watson 33239c2c49
pending changelog updates (#2210) 2020-12-08 09:23:23 +09:00
Bogdan Drutu 65acc09c46
Add unit tests for isValidMetricName (#2218)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-08 09:22:20 +09:00
Bogdan Drutu be9c31ecad
Remove internal public validateLabelPairs, move to the class that uses it (#2215)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 14:42:23 -08:00
Bogdan Drutu 69208f8f79
Remove version of checkArgument not used (#2213)
This PR fixes an inconsistency that MaxLengthOfAttributeValues was allowed to be set to 0, then thrown internal exception.
We should check for arguments only at public APIs.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 13:39:33 -08:00
Bogdan Drutu 50c8f1f5c6
Move obfuscated to sdk, make it package protected (#2208)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 12:47:01 -08:00
Bogdan Drutu 7460f92bc8
Remove deprecated methods/classes before 1.0 release (#2205)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 11:33:17 -08:00
Bogdan Drutu 57263bf44a
Move TemporaryBuffers to be a package protected class, no need to expose this class (#2206)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 11:31:03 -08:00
Bogdan Drutu 3a7c0086c2
Remove deadcode from internal package (#2209)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-07 11:30:39 -08:00
Zoe b4784931ec
OpenCensus to OpenTelemetry metric exporter (#2085)
* OpenCensus to OpenTelemetry metric exporter

* Add export interval configuration and tests

* Review changes

* Review change

* Review changes & Add test for unsupported type

* Update README.md

* Fix test maybe?

* Review changes
2020-12-07 08:30:22 -08:00
Anuraag Agrawal 2770d46191
Add array implementation of Context. (#2191)
* Add array implementation of Context.

* More test
2020-12-07 12:39:35 +09:00
Anuraag Agrawal 469900eb34
Add a system property that can enable strict context checking for staging environments. (#2195) 2020-12-07 12:38:27 +09:00
Anuraag Agrawal f51332bd25
Add Labels.asMap and hide the builder implementation. (#2189)
* Add Labels.asMap and hide the builder implementation.

* Not public

* Spot

* More merge
2020-12-07 11:35:41 +09:00
Bogdan Drutu 26124ad075
Split API packages, move context in the same directory (#2199)
There are some things left to be done:
* Decide if context package should also be opentelemetry-api-context.
* Cleanup internal packages, things that are used by only one artifact should be moved there.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-05 08:33:20 -08:00
John Watson a3615b9d91
have the zpages README reference a released version (#2201) 2020-12-05 14:52:03 +09:00
John Watson 596b4ba894
Update the examples for the 0.12.0 release. (#2198) 2020-12-04 12:28:35 -08:00
Anuraag Agrawal 658d23ee1d
Update README + Changelog for 0.12.0 release. (#2196) 2020-12-04 10:36:36 -08:00
Anuraag Agrawal c37e6e1d6e
Use hyphen for thread name prefix. (#2194) 2020-12-04 07:37:51 -08:00
John Watson c03efbcc13
Add an option to the SDK builder to specify an initial TraceConfig (#2192)
* Add an option to set the initial TraceConfig when building an SDK, and a TracerSdkProvider.

* add the missing javadoc
2020-12-04 14:12:48 +09:00
John Watson b3bf869c54
changelog updates starting 12/2 (#2184)
* changelog updates starting 12/2

* entry for the deprecation of trace-utils

* add an item about the IdGenerator option

* Add an item about the removal of ReadableAttributes

* Update CHANGELOG.md

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-12-04 14:04:10 +09:00
Anuraag Agrawal 8697de9afa
Detect GC leaks of scopes in StrictContextStorage. (#2164)
* Detect GC leaks of scopes in StrictContextStorage.

* More

* Finish

* Force GC more aggressively

* Cleanup

* Vendor code directly

* Copy test too

* Try waiting more

* ep

* oops

* Remove from build.gradle

* Drift

* Log on multiple

* Cleaner ourselves.

* EP

* Move into if

* Revert accidental
2020-12-04 13:04:27 +09:00
Anuraag Agrawal 643b697106
Add TraceState.asMap (#2190)
* Add TraceState.asMap

* Javadoc

* Spot
2020-12-04 12:40:11 +09:00
Prashant Srivastava efe5fbf0aa
Refactoring span benchmarking as per the spec (#2186)
* Refactoring SpanBenchmark to span configuration by the spec

* Some style check changes
2020-12-03 12:12:38 -08:00
John Watson a5d261c9ae
correct a bit of bad javadoc (#2193) 2020-12-03 12:11:11 -08:00
Anuraag Agrawal 4762c6a25d
Remove ReadableAttributes (#2187)
* Remove ReadableAttributes

* Don't rewrite history

* Drift
2020-12-03 11:26:24 -08:00
Anuraag Agrawal cd1f882ed2
Pass sonatype keys in release builds. (#2188) 2020-12-03 09:46:44 -08:00
Anuraag Agrawal c2861b4dd6
Don't automatically push docs in release since not allowed by branch … (#2178)
* Don't automatically push docs in release since not allowed by branch protection.

* Fix readme
2020-12-03 11:48:03 +09:00
John Watson d7ab0addfa
Add an option to set an IdGenerator when building an SDK. (#2185)
rename a few lingering pluralized idGenerator symbols.
2020-12-03 09:18:05 +09:00
John Watson 27260a2d2c
Move Carlos from maintainer to approver, at his request (#2183) 2020-12-02 11:16:47 -08:00
Anuraag Agrawal 5cb2057992
Deprecate trace-utils (#2168)
* Deprecate trace-utils

* Suppress deprecation

* Update extensions/trace-utils/src/main/java/io/opentelemetry/extension/trace/CurrentSpanUtils.java

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>

* Reference SA

* README

* error prone sigh

* Spot

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-12-02 11:05:01 -08:00
Anuraag Agrawal f8b9f0ac6a
Expose BaggageEntry / Metadata as interfaces and add asMap (#2177)
* Expose BaggageEntry / Metadata as interfaces and add asMap

* Disclaimer
2020-12-02 10:40:46 -08:00
Armin Ruech 5585e73611
Remove "semver" prefix from instrumentation library version (#2180) 2020-12-02 10:29:11 -08:00
John Watson ba9f9c09a2
Fix a bug with all tracers & meters being delegated to the global tracer. (#2176) 2020-12-02 18:06:28 +09:00