Commit Graph

1378 Commits

Author SHA1 Message Date
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
Anuraag Agrawal 2aeaf1a392
Increase test coverage of logging extension. (#2166)
* Increase test coverage of logging extension.

* More

* More
2020-12-01 11:01:33 -08:00
Anuraag Agrawal b8a868f7db
Have Node itself implement Context to remove wrapper object. (#2165) 2020-12-01 11:00:01 -08:00
Anuraag Agrawal ca3714053f
Replace SpanData.hasRemoteParent/getParentSpanId with getParentSpanContext (#2146)
* Remove SpanData.hasRemoteParent

* Replace parentSpanId with parentSpanContext

* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java

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

* Keep parentId

Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-12-01 09:50:11 -08:00
John Watson 6be633701f
Convert Labels to be an interface. (#2137)
* Convert Labels to be an interface.

* Convert the LabelsBuilder into an interface.
2020-12-01 08:46:34 -08:00
John Watson 036f7f1477
Convert TraceState to be an interface (#2138)
* convert TraceState to an interface

* don't expose the impl

* Remove the un-needed TraceState Entry objects.

* Add additional javadoc documenting requirements for interface implementors.

* make the implementation non-public

* remove un-needed test docs

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* formatting fix

* Convert the TraceStateBuilder into an interface.

* Introduce an intermediate class to get around classloading cycles.

* extract a method to remove an entry from the builder

* add a comment about the possible inefficiency in the implementation

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-12-01 08:21:36 -08:00
Anuraag Agrawal a0b3f33ef9
Remove coveralls plugin (#2169) 2020-12-01 18:45:03 +09:00
Sergei Malafeev 49b3e68b92
handle case insensitive logic for keys on context extraction in OpenTracing TracerShim (#2133)
* #2122 handle case insensitive logic for keys on context extraction in OpenTracing TracerShim

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* #2122 fix test

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* #2122 remove sort

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-12-01 16:14:45 +09:00
Anuraag Agrawal af77508af7
Remove Guava from zpages (#2150)
* Remove Guava from zpages

* Clean
2020-12-01 14:14:36 +09:00
Anuraag Agrawal 7ed6d8d4e4
Remove Status.value (#2147)
* Remove Status.value

* Deprecate for now
2020-12-01 13:46:26 +09:00
Anuraag Agrawal 052b17f9b1
Add asMap for Attributes. (#2145)
* Add asMap for Attributes.

* AttributesMap too

* Test empty too.

* checkstyle
2020-12-01 13:27:14 +09:00
Anuraag Agrawal c3261b427e
Replace git submodules for protos with download of archive file. (#2160)
* Replace git submodules for protos with download of archive file.

* Add docs for proto and remove junk
2020-12-01 13:23:03 +09:00
Anuraag Agrawal 09d371ba09
Enable tooling for mrjar and use it to get epoch time in best way for Java 8 or 9+. (#2154) 2020-12-01 09:30:05 +09:00
Anuraag Agrawal ed57751d00
Remove Guava from SDK extensions, except zpages (#2149)
* Remove Guava from SDK extensions, except zpages

* Fix
2020-12-01 09:12:58 +09:00
Chris Burns e0989d75e7
Changes return type from List to Collection (#2156)
- changes the return type of the fields() method in TextMapPropagator from List<String> to Collection<String>
and updated all implementations for consistency
2020-11-30 14:26:24 -08:00
John Watson 73bad773dd
Move the AsynchronousInstrument callbacks to the builders. (#2120)
Deprecate the existing setCallback method.
Update the code in the SDK to use the new API.
2020-11-30 14:12:49 -08:00
Mateusz Rzeszutek 2130644667
Support process.runtime.* resource attributes (#2143)
* Support process.runtime.* resource attributes

* Code review comments

* Add process.runtime.* attributes to README.md
2020-11-30 10:12:15 -08:00
Vladimir Šor ee0dac1a97
Add getKind to the ReadableSpan interface in SDK. (#2162) 2020-11-30 09:48:02 -08:00
Anuraag Agrawal 7d6a62b204
Migrate docker image mirroring to ghcr. (#2161) 2020-11-30 09:04:53 -08:00
Anuraag Agrawal 0da7eeca66
Remove Java 8 animalsniffer because we use -release flag (#2153) 2020-11-30 08:53:41 -08:00
Nikita Salnikov-Tarnovski ebb68da04c
Update CONTRIBUTING.md (#2157)
Fixes #2155
2020-11-30 13:24:27 +09:00
Anuraag Agrawal 14d23dcd46
Some more test coverage for OpenTelemetrySDK. (#2130)
* Some more test coverage for OpenTelemetrySDK.

* Fix assertion

* Update OpenTelemetrySdk.java
2020-11-25 18:12:56 -08:00
Anuraag Agrawal 883267423e
Rename opentelemetry-sdk-extension-aws-v1-support to opentelemetry-sdk-extension-aws. (#2129) 2020-11-25 11:18:33 -08:00
Anuraag Agrawal 8b1c4c50d1
Shutdown BSP in benchmarks (#2127) 2020-11-25 11:13:17 -08:00