Age | Commit message (Collapse) | Author |
|
This commit adds some Nullable annotations that are required by the Checker
Framework, but it doesn't change any other code. It also suppresses some Error
Prone and FindBugs warnings that conflict with the Checker Framework, since the
three tools use different algorithms.
|
|
|
|
This commit splits some of the existing tests in order to test different
operations separately. It also updates variable names and the implementation of
TagContextBuilder.put after the removal of tag types.
|
|
|
|
|
|
* Add methods to wrap Runnable and Callbacks and to run them.
* Fix more comments.
* Fix use of Assert.fail().
* Improve javadocs for the start and wrap methods.
* Remove startSpanAndWrap API for the moment.
* Change wrap to withSpan.
* Fix examples in SpanBuilders.
|
|
|
|
* Add initial support for b3-propagation headers.
* Update tests and throw exception when missing span_id or trace_id.
* Cleanup and add more tests.
* Update comments. Update tests.
|
|
* Use continue when skip a value in a while-loop.
* Cleanup test code.
|
|
Use AppEngine compatible way to create threads. (fixes #707 and #777)
|
|
|
|
|
|
* Only apply size limit to the bytes representing tag keys and values.
* Reword error message when size exceeds limit
* Add a note about chars == bytes
|
|
|
|
|
|
|
|
This method currently returns all registered cumulative views. We could add a
way to specify which views should be exported later. The API is currently
needed for the StackDriver exporter.
The NoopViewManager also returns all cumulative views. However, the exporter
could choose to not export data when stats collection isn't enabled.
|
|
Update lists of enabled Error Prone warnings with the latest bug patterns.
|
|
I used the latest list of bug patterns from http://errorprone.info/bugpatterns.
I had to turn off FieldMissingNullable because of an Error Prone bug and
suppress two instances of other warnings in the code.
I removed NonRuntimeAnnotation and ProtocolBufferOrdinal from the list because
they were promoted to errors. I also enabled two previously disabled warnings
because they seemed to no longer cause any problems in this project.
|
|
This commit also fixes two occurrences.
|
|
I also added some missing Nullable annotations.
|
|
getState. (#792)
* Throw IllegalStateException if setState is called after getState
* Deprecate Stats.setState
* Remove a test that has potential race condition.
* Remove Deprecated from impl
|
|
Deprecate Tags.setState, and throw an exception when it is called after getState.
|
|
Other changes:
- Remove references to warnings that were removed from Error Prone.
- Suppress occurrences of a new warning, JdkObsolete. All of the warnings are
about uses of LinkedList. We need to decide whether to use a different class
or continue suppressing the warnings. I left TODOs, since each occurrence may
need to be handled differently.
|
|
|
|
getState.
This commit is related to #608. It deprecates Tags.setState and
TagsComponent.setState and makes NoopTagsComponent.setState and
TagsComponentImplBase.setState throw IllegalStateException when they are called
after getState.
|
|
* Move directories: core_impl to impl_core, core_impl_java to impl, core_impl_android to impl_lite.
|
|
* Add a setStatus method in the Span.
* Update after feedback.
* Run ./gradlew goJF
* Update comment in EndSpanOptions.
|
|
|
|
(#771)
* Add gradle plugin for google java format. Enforce all files to be formatted.
* Fix javadoc comments.
* update to google-java-formatter 1.5
* Fix comments and run formatter only for java8.
* Formatter works only on java8.
|
|
names. (#729)
* Remove contention between threads and worker thread when register span names.
* Mark getRegisteredSpanNamesForCollection as test only.
|
|
(#703)
* Add an option in SpanBuilder to register the span name for sampled store.
* Change to LocalSpanStore name the SpanBuilder.
* Move the option to EndSpanOptions.
* Fix comments.
|
|
The tagging implementation was using NoopScope from the API library, even though
it was in an "internal" package. This commit adds a NoopScope class to
io.opencensus.implcore.internal.
|
|
* Fix probability sampler and sampling.
* Add more tests and fix comments.
|
|
* Change when we check the sampler.
* Fix comments.
* Deprecate setIsSampled without an argument.
|
|
* Add a new SpanContextParseException and use it in BinaryFormat
* Fix review comments.
|
|
anywhere else. (#633)
* Implement deprecated method addAttributes in the Span and remove it from anywhere else.
* Fix tests and add warning to override putAttributes.
|
|
* Add a method to list all registered span names.
* Change the name to getRegisteredSpanNamesForCollection
|
|
|
|
TraceComponent. (#575)
|
|
* Add new api that is easier to use for user to add only one Attribute.
* Rename addAttribute[s] to putAttribute[s] and deprecate the old API.
* Update tests to use putAttributes.
|
|
|
|
This commit uses the following package name prefixes in each artifact, in order
to ensure that no package is split across artifacts:
opencensus-api: io.opencensus
opencensus-impl-core: io.opencensus.implcore
opencensus-impl: io.opencensus.impl
opencensus-impl-lite: io.opencensus.impllite
|
|
This is part of #379. The package name may still need to be changed again, but
this commit includes all of the changes necessary to put the API and
implementation in separate packages. Other changes in this commit:
- Make TraceComponent's constructor public.
- Leave deprecated copies of the TraceComponent subclasses in the io.opencensus.trace
package so that they can be loaded by opencensus-api 0.5.
- Move internal classes to io.opencensus.impl.internal.
- Make TraceComponentImplBase and BinaryFormatImpl public.
|
|
options to also be exported. (#458)
* Fix a bug in the implementation that causes all Spans with RECORD_EVENTS options to also be exported.
* Make startEndHandler final
|
|
|
|
was running. (#426)
|
|
* Get rid of base directory and move everything on level up.
* Remove unused imports in tests.
|
|
|
|
|