aboutsummaryrefslogtreecommitdiff
path: root/api/src/test/java/io
AgeCommit message (Collapse)Author
2018-09-17Tracing: Add AttributeValueDouble. (#1442)Yang Song
Also update Trace exporters and ZPages, and fix a few typos.
2018-09-14Revert "Temporarily move "metrics" package into impl_core/ for release. ↵Yang Song
(#1426)" (#1432) This reverts commit d3fa0e5c60903f95c184d7c7bafae8fdd12156ad.
2018-09-12Make LowerCaseBase16Encoding package protected. (#1427)Bogdan Drutu
2018-09-12Temporarily move "metrics" package into impl_core/ for release. (#1426)sebright
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.
2018-08-28Remove guava dependency from the API artifact. (#1393)Bogdan Drutu
* Remove guava dependency from the API artifact. * Make LowerCaseBase16Encoding static and remove import control.
2018-08-28Avoid doing string formatting when calling checkArgument. (#1394)Bogdan Drutu
2018-08-27Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}. ↵Bogdan Drutu
(#1392) * Add get/from{Byte} methods on TraceOptions and deprecate get/from{Bytes}. * Update changelog.
2018-08-21Metrics: Combine TimeSeriesCumulative and TimeSeriesGauge. (#1380)Yang Song
2018-08-13 Metrics: Implement ExportComponent, make ProducerManager abstract. (#1347)Yang Song
* 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.
2018-08-11Fix metrics tests by adding the RunWith annotation. (#1364)Bogdan Drutu
2018-08-10Metrics: Move metrics to opencensus-api. (#1346)Yang Song
* Metrics: Move to api. * Update package-info to warn users on using metrics.
2018-08-09Add Tracestate into SpanContext. (#1359)Bogdan Drutu
* Add Tracestate into SpanContext. * Remove empty constructor from Tracestate.Builder * Add info in the changelog.
2018-08-03Minor improvements for Tracestate. (#1358)Bogdan Drutu
2018-08-02Add the initial version of the TraceState class. (#1300)Bogdan Drutu
* 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.
2018-07-16Tracing: Reduce default limit on Links to 32. (#1315)Yang Song
* Tracing: Reduce default limit on Links to 32. * Add this change to CHANGELOG.
2018-06-29Stats: Add Exemplar class to DistributionData. (#1287)Yang Song
2018-06-28Stats: Add API MeasureMap.putAttachment() for recording exemplars. (#1285)Yang Song
* 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.
2018-06-21Summary Span: Add encoder/decoder for Server Stats. (#1272)rghetia
* 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()
2018-06-20Stats: Only include the simple class name in the error message for ↵Yang Song
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.
2018-06-13Error Prone: 2.2.0 -> 2.3.1Kristen Kozak
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".
2018-05-31Add Span.Kind to the trace API. (#1223)Bogdan Drutu
* Add Span.Kind to the trace API. * Add @Nullable annotation where needed. * Add changes to changelog.
2018-05-15Throw IllegalArgumentException when Timestamp.create receives invalid arguments.Kristen Kozak
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.
2018-05-15Throw IllegalArgumentException when Duration.create receives invalid arguments.Kristen Kozak
Fixes #1179. Throwing IllegalArgumentException for invalid arguments is more consistent with the rest of the opencensus-java API.
2018-04-27Add Aggregation.LastValue and AggregationData.LastValueData to support Gauge ↵Yang Song
(#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.
2018-04-27Check for null in more public methods in Span and its subclasses.Kristen Kozak
2018-04-24Added null checking to Span implementations (#1150)dvfeinblum
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.
2018-04-17Move utils used by Duration and Timestamp from i.o.internal.Utils to TimeUtils.Kristen Kozak
This change breaks the circular dependency between io.opencensus.internal and io.opencensus.common.
2018-04-16Improve Duration.toMillis() (#1132)Yang Song
* Improve java doc for toMillis(). * Make toMillis() non-static.
2018-04-16 Move toMillis(Duration) to Utils so that it can be reused. (#1114)Yang Song
* Add toMillis() method to TimeUtils. * Reuse toMillis() method in impl and exporters. * Add a note about overflow and precision loss. * Move toMillis() to Duration.
2018-04-04Remove usages of Guava Objects/MoreObjects from opencensus-api (issue #1081).Kristen Kozak
2018-04-04Remove usages of Guava LongMath from opencensus-api (issue #1081).Kristen Kozak
2018-04-04Remove usages of Guava Precondtions from opencensus-api (issue #1081).Kristen Kozak
This commit replaces the most commonly used precondtion checks with methods in a new utility class, io.opencensus.internal.Utils.
2018-04-04Rename "Util" classes to "Utils", for consistency with public "Utils" classes.Kristen Kozak
This commit adds an "s" to TimeUtil, StringUtil, and BaseMessageEventUtil, for consistency with utility classes that have been made public, such as ContextUtils.
2018-03-30Sort TagKeys in View.create(...) (fixes #1080).Kristen Kozak
2018-03-30Remove some uses of deprecated AggregationWindow in ViewTest.java.Kristen Kozak
2018-03-30Clean up ViewTest.java.Kristen Kozak
2018-03-23Enable FindBugs in tests.Kristen Kozak
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.
2018-03-21Move BaseMessageEventUtil to trace package. (#1076)Yang Song
* Move BaseMessageEventUtil to trace package. * Move BaseMessageEventUtil to trace.internal. Work around findbugs. * Update findbugs-exclude and remove since tag.
2018-03-07Deprecate Window and WindowData. (#1018)Yang Song
* 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.
2018-03-02Fix probabilitySampler_getDescription for all locales. (#1040)Stefan Schmidt
PropabilitySampler#getDescription returns a string that contains the probability formatted according to the current locale, while the test expects a certain format.
2018-02-16Add MessageEvent and deprecate NetworkEvent. (closes #858) (#894)Hailong Wen
2018-01-17Update errorprone, google cloud java, grpc versions. (#931)Bogdan Drutu
2017-12-19Validate types of Aggregation and AggregationData when creating ViewData (#839)Yang Song
2017-12-13Add methods to wrap Runnable and Callbacks and to run them. (#778)Bogdan Drutu
* 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.
2017-12-11Add initial support for b3-propagation headers. (#889)Bogdan Drutu
* 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.
2017-12-06Adds TextFormat and usage example. (#724)Bogdan Drutu
* Adds TextFormat and usage example. * Remove multiple encodings support. * Run google java formatter. * Remove getTextFormat from PropagationComponent. * Update comments. * Improve javadoc.
2017-12-02Merge pull request #826 from HailongWen/noop-span-storeHailong Wen
Add NoopRunningSpanStore and NoopSampledSpanStore.
2017-11-29Remove ScopedSpanHandle and make SpanInScope able to close the Span. (#848)Bogdan Drutu
* Remove ScopedSpanHandle and make SpanInScope able to close the Span. * Fix extra ";". * Fix comments.
2017-11-21Update length limit for View.Name (#834)Yang Song
2017-11-20Addressing sebright's comments.Hailong Wen
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().