Age | Commit message (Collapse) | Author |
|
|
|
all time. (#1468)
* Split SpanImpl into record/notrecord span impl to avoid checks of recording all time.
* Remove one extra SuppressWarnings.
|
|
|
|
(#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.
|
|
(#1392)
* Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}.
* Update changelog.
|
|
|
|
|
|
|
|
* Implement CurrentStatsState using atomic variables.
* Ignore findbugs warning and add changelog comments.
|
|
* Make an internal function static.
* Make other functions static too.
|
|
* Remove match pattern from MutableAggregation.
* Update comments in MutableAggregation.
|
|
|
|
* Fix stats to metrics implementation.
* Fix imports and logic to handle gauges.
* Fix checker framework
* fix style.
|
|
* Stats: Implement MetricProducer in Stats.
* Add unit tests.
* Remove MetricProduce from Stats API. Register it statically in the impl.
|
|
* Add implementation for gauges.
* Remove usage of internal class in implcore tests.
|
|
* 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.
|
|
* Add Tracestate into SpanContext.
* Remove empty constructor from Tracestate.Builder
* Add info in the changelog.
|
|
Support recording `Metric`s in stats impl. This works as the following:
- When a `View` is registered, convert that `View` to a `MetricDescriptor` and register it;
- When a `Measurement` along with a `TagContext` are recorded, convert them into a data row consisting of `LabelValue`s and `Point`s;
- If `getMetrics()` is called, convert the `MetricDescriptor`s and data rows into `Metric`s. Then flush all data rows.
This PR only contains internal support in the impl. None of these changes are user-visible yet.
|
|
|
|
709d97aa321d5729988fd63b960bbece04cfba10 modified the -AskipDefs argument to the
Checker Framework (a regular expression) in a way that caused it to skip
checking all files. This commit fixes the regular expression and the new
Checker Framework warnings.
|
|
* Cleanup: Move static util methods to util class.
* Fix checker framework.
|
|
* Stats: Support recording Exemplars in the impl.
* Add more comments and tests.
* Exemplar array will be null with no histogram.
|
|
* 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.
|
|
* Add Span.Kind to the trace API.
* Add @Nullable annotation where needed.
* Add changes to changelog.
|
|
application shutdown hooks. (#1141)
Adds the ability to flush pending spans via a call to Tracing.getExportComponent().shutdown()
This allows a developer to force a flush from within a shutdown hook or other means.
Unfortunately the underlying Disruptor instance only provides a #shutdown() call, not a flush, or a public method
for testing for backlog. Thus shutdown has propagated up to the above api call.
|
|
2.5.1 includes a fix for
https://github.com/typetools/checker-framework/issues/1838. This commit also
adds a few more @Nullable annotations that are required now.
|
|
(#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.
|
|
io.opencensus.internal should only be accessed by the API library.
|
|
* 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 also adds annotations to TextFormat that were required after the
change in checkNotNull.
|
|
* Deprecate Mean and MeanData
* Suppress deprecation warnings.
* Suppress warning InconsistentOverloads
* CopyAnnotations for AutoValue Mean and MeanData
|
|
|
|
* 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.
|
|
|
|
|
|
(#964)
|
|
The new version fixes
https://github.com/typetools/checker-framework/issues/1712, so this commit also
removes the workaround.
|
|
* Add http propagation APIs.
* Add an API in `PropagationComponent` for B3 format access.
* Add contrib-http-util, with initial SD format support.
|
|
|
|
|
|
Putting the annotations in comments allows us to use Java 8 syntax and avoid
depending on the Checker Framework library. Note that we need to use
org.checkerframework.checker.nullness.qual.Nullable for marking types nullable,
because javax.annotation.Nullable can't be applied to types.
|
|
Fixing these warnings will require significant refactoring.
|
|
The issue https://github.com/typetools/checker-framework/issues/1712 affects all
uses of the visitor pattern in this project. This commit adds utility methods
for working around the issue and calls them from all "match" methods.
|
|
|
|
This commit shouldn't change any behavior. It just allows the Checker Framework
to determine that there are no NPEs.
|