Commit Graph

1401 Commits

Author SHA1 Message Date
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
Anuraag Agrawal cf5b582c5b
Replace AttributeConsumer with BiConsumer (#2174)
* Replace AttributeConsumer with BiConsumer

* Forgot to delete
2020-12-02 16:52:06 +09:00
Prashant Srivastava 6f5a9dc72a
Adding micro-benchmarks for inject and extract methods of AwsXRayPropagator (#2173) 2020-12-01 22:22:29 -08:00
Mateusz Rzeszutek 8bcfaa46bc
Add support for AWS Lambda resource attributes (#2142)
* Add support for AWS Lambda resource attributes

* Fix after rebase

* Minor refactor

* Minor refactor

* Minor refactor
2020-12-02 13:36:44 +09:00
John Watson de76614974
Changelog updates from Nov 25 (#2135)
* Changelog updates

* add a note about the change to the aws extension module

* Add the ReadableSpan change.

* Add a couple more changelog entries.

* move things into the right release.

* update with several more pre-release items

* more updates to the changelog

* a few more updates

* Add Attributes to the list of changes
2020-12-01 18:28:58 -08:00
John Watson 4d73431a96
cleanup work (#2172)
* remove 3 classes that got left behind in a repackaging

* actually disable the stress test
2020-12-01 17:03:32 -08:00
Prashant Srivastava 6bbe8d47dc
Adding micro-benchmarks for traceId and spanId generation (#2170) 2020-12-02 09:41:47 +09:00
John Watson e90a6a886b
Convert Attributes to an interface (#2134)
* Convert Attributes to an interface

* Add javadoc explaining Attributes implementation requirements.

* Convert the AttributesBuilder into an interface.

* update from upstream changes

* move the implementation class out of the interface

* clean up some javadoc that referenced non-public classes
2020-12-01 15:54:07 -08:00
John Watson ed2cbf75f8
change the default timeouts for otlp and jaeger to 10s (#2171) 2020-12-01 15:45:58 -08:00
Mateusz Rzeszutek dc91c95e63
Fix buildscripts/semantic-convention/generate.sh script (#2144)
* Fix buildscripts/semantic-convention/generate.sh script

Including:
* update spec version to latest commit
* regenerate SemanticAttributes

* Code review comments

* Reference spec date
2020-12-01 11:18:32 -08:00
Anuraag Agrawal 18355e9683
Remove Guava dependencies from SDK (#2148)
* Remove Guava from SDK

* Clean
2020-12-01 11:10:38 -08:00
Anuraag Agrawal 0163a8c121
Split SpanContext into interface / impl (#1935)
* Split SpanContext into interface / impl

* Remove javadoc from impl to reduce drift change.

* Add warning

* More
2020-12-01 11:06:48 -08:00
Anuraag Agrawal d31995f75d
Add code coverage for OS resources. (#2167)
* Add code coverage for OS resources.

* Fix assertion
2020-12-01 11:04:01 -08:00