Age | Commit message (Collapse) | Author |
|
Also update Trace exporters and ZPages, and fix a few typos.
|
|
(#1426)" (#1432)
This reverts commit d3fa0e5c60903f95c184d7c7bafae8fdd12156ad.
|
|
|
|
The "metrics" package isn't ready to be released yet, so this commit moves it
out of the API artifact. The package can still be accessed by the stats
implementation in impl_core/. This commit can be reverted once the package is
ready to be exposed. The moved package names also contain "temporary" so that
there is no possibility of class name conflicts between different versions of
opencensus-api and opencensus-impl-core. For example,
io.opencensus.metrics.export is renamed to
io.opencensus.implcore.temporary.metrics.export.
|
|
* Remove guava dependency from the API artifact.
* Make LowerCaseBase16Encoding static and remove import control.
|
|
|
|
(#1392)
* Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}.
* Update changelog.
|
|
|
|
* Metrics: Implement ExportComponent, make ProducerManager abstract.
* Metrics: Add impl and impllite.
* Resolve two TODOs.
* Fix import path, leave a TODO for getMetricRegistry.
* Make NoopMetricProducerManager private. Add missing since tag.
|
|
|
|
* Metrics: Move to api.
* Update package-info to warn users on using metrics.
|
|
* Add Tracestate into SpanContext.
* Remove empty constructor from Tracestate.Builder
* Add info in the changelog.
|
|
|
|
* Add the initial version of the TraceState class.
* Add builder pattern.
* Clean API and add tests.
* Rename addOrUpdate to set and apply trailing rules for value.
* Apply google java format.
* Fix check framework.
|
|
* Tracing: Reduce default limit on Links to 32.
* Add this change to CHANGELOG.
|
|
|
|
* Stats: Add API MeasureMap.withAttachments() for recording exemplars.
* Add this change to CHANGELOG
* Stats: implement the new API in impl.
* Rename API and merge the string maps on multiple calls.
* Update the API to putAttachment(String, String) for simplicity.
* Fix a typo and add a TODO about making putAttachment abstract.
|
|
* Summary Span: Add encoder/decoder for Server Stats.
* Fixed build errors reported by Kokoro/Travis.
* Fixed review comments.
- Added missing javadoc annotation.
- included version in encoder/decoder.
- renamed get methods for ServerStats.
* Change version from 0.15 to 0.16
- also fixed CURRENT_VERSION for encoder/decoder and added test for it.
* Make ServerStatsEncoding public.
* Add Test ServerStatsFieldEnum.Size
replace traceOption() wiht getTraceOption()
|
|
ViewData.check methods. (#1267)
* Stats: Only include the simple class name in the error message for ViewData.check methods.
* Copy checkArgument and lazily create error message.
* Rename help methods to avoid InconsistentOverloads.
* Improve error messages in the unit tests.
|
|
This commit contains several other changes as part of the upgrade:
- Use -XepAllDisabledChecksAsWarnings to enable all available warnings so
that we don't need to enable each warning explicitly.
- Remove explicit suppression of warnings in generated code, since
-XepDisableWarningsInGeneratedCode is now sufficient to suppress all warnings
in AutoValue and Protocol Buffer generated classes.
- Remove a suppression of "ConstructorLeaksThis", since
https://github.com/google/error-prone/pull/789 was fixed.
- Fix a few occurrences of "FieldCanBeFinal".
|
|
* Add Span.Kind to the trace API.
* Add @Nullable annotation where needed.
* Add changes to changelog.
|
|
Throwing IllegalArgumentException for invalid arguments is more consistent with
the rest of the opencensus-java API. This commit also fixes a test that created
an invalid Timestamp.
|
|
Fixes #1179. Throwing IllegalArgumentException for invalid arguments is more
consistent with the rest of the opencensus-java API.
|
|
(#1055)
* Add LastValue and LastValueData
* Support LastValue and LastValueData in impl
* Use Utils instead of Precondition
* Add LastValue and remove Mean from match() method.
* Support LastValue and LastValueData in exporters and zpages.
* Update MutableLastValue, add comments on why Mean is still supported.
|
|
|
|
This PR adds null checking to classes that implement Span. Specifically,
- BlankSpan
- NoopSpan
- Span
- SpanImpl
For the latter, I had to use Preconditions.checkNotNull because io.opencensus.internal shouldn't be imported into ImplCore.
|
|
This change breaks the circular dependency between io.opencensus.internal and
io.opencensus.common.
|
|
* Improve java doc for toMillis().
* Make toMillis() non-static.
|
|
* Add toMillis() method to TimeUtils.
* Reuse toMillis() method in impl and exporters.
* Add a note about overflow and precision loss.
* Move toMillis() to Duration.
|
|
|
|
|
|
This commit replaces the most commonly used precondtion checks with methods in
a new utility class, io.opencensus.internal.Utils.
|
|
This commit adds an "s" to TimeUtil, StringUtil, and BaseMessageEventUtil, for
consistency with utility classes that have been made public, such as
ContextUtils.
|
|
|
|
|
|
|
|
This would have caught the unused variable that was fixed by #1082.
Changes in this commit:
- Enable FindBugs in tests in build.gradle.
- Fix some existing minor FindBugs issues in tests.
- Suppress some warnings in all test classes that are less important in test
code, such as requiring nested classes to be static whenever possible.
- Enable nullness-related FindBugs warnings in tests, since we don't run the
Checker Framework on test code.
|
|
* Move BaseMessageEventUtil to trace package.
* Move BaseMessageEventUtil to trace.internal. Work around findbugs.
* Update findbugs-exclude and remove since tag.
|
|
* Deprecate Window and WindowType in Stats APIs
* Window and WindowData will continue to be NonNull
* Suppress warnings for impl, exporter and zpages.
* NoopStats should continue to use old method.
|
|
PropabilitySampler#getDescription returns a string that contains the
probability formatted according to the current locale, while the test
expects a certain format.
|
|
|
|
|
|
|
|
* 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.
|
|
* Adds TextFormat and usage example.
* Remove multiple encodings support.
* Run google java formatter.
* Remove getTextFormat from PropagationComponent.
* Update comments.
* Improve javadoc.
|
|
Add NoopRunningSpanStore and NoopSampledSpanStore.
|
|
* Remove ScopedSpanHandle and make SpanInScope able to close the Span.
* Fix extra ";".
* Fix comments.
|
|
|
|
1. Returns the same NoopExportComponent and NoopSampledSpanStore.
2. Correct outdated javadoc.
3. Change visibility of getNoopRunningSpanStore().
4. Make empty Summary constant.
5. Returns immutable copy of registeredSpanNames when calling
getRegisteredSpanNamesForCollection().
|