aboutsummaryrefslogtreecommitdiffstats
path: root/api
Commit message (Collapse)AuthorAgeFilesLines
* Tracing: Reduce default limit on Links to 32. (#1315)Yang Song2018-07-162-2/+2
| | | | | | * Tracing: Reduce default limit on Links to 32. * Add this change to CHANGELOG.
* Mention that SampledSpanStore.getRegisteredSpanNamesForCollection is for ↵Kristen Kozak2018-07-092-42/+5
| | | | | | | | | | | testing. This commit fixes the last part of #977. getRegisteredSpanNamesForCollection was originally public and annotated with VisibleForTesting because it was meant for testing code that uses OpenCensus. However, VisibleForTesting is not ideal because it adds a dependency on Guava and it does not appear in Javadocs. This commit instead describes the purpose of the method in the Javadocs. It also removes the temporary PublicForTesting annotation.
* Stats: Add Exemplar class to DistributionData. (#1287)Yang Song2018-06-292-3/+179
|
* Stats: Add API MeasureMap.putAttachment() for recording exemplars. (#1285)Yang Song2018-06-282-0/+37
| | | | | | | | | | | | | | * 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.
* Clarify Javadoc for Tagger.withTagContext.Kristen Kozak2018-06-261-3/+3
| | | | See census-instrumentation/opencensus-specs#99.
* Summary Span: Add encoder/decoder for Server Stats. (#1272)rghetia2018-06-217-0/+704
| | | | | | | | | | | | | | | | | | | * 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()
* Start 0.16.0 development cycleKristen Kozak2018-06-201-1/+1
|
* Stats: Only include the simple class name in the error message for ↵Yang Song2018-06-202-39/+57
| | | | | | | | | | | | 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.
* Error Prone: 2.2.0 -> 2.3.1sebright2018-06-133-5/+2
|\
| * Error Prone: 2.2.0 -> 2.3.1Kristen Kozak2018-06-133-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* | Tracing: fix typos in Tracer Javadoc. (#1256)Yang Song2018-06-131-5/+5
|/
* Add package-info for all main packages in opencensus-api. (#1245)Bogdan Drutu2018-06-083-0/+71
| | | | | | * Add package-info for all main packages in opencensus-api. * Fix format.
* Metrics: Move Metrics to a separate artifact. (#1216)Yang Song2018-06-051-31/+0
| | | | | | | | * Move Metrics to a separate artifact. * Fix review comments. * Update one TODO about the naming of the artifact.
* Start 0.15.0 development cyclesongy232018-06-041-1/+1
|
* Add since for Span.Kind constants and make SpanBuilder.setSpanKind not ↵Bogdan Drutu2018-06-012-3/+8
| | | | abstract. (#1226)
* Add Span.Kind to the trace API. (#1223)Bogdan Drutu2018-05-315-5/+112
| | | | | | | | * Add Span.Kind to the trace API. * Add @Nullable annotation where needed. * Add changes to changelog.
* Starts adding a metrics package. (#1211)Yang Song2018-05-281-0/+31
| | | | | | * Start adding a metrics package. * Add ExperimentalApi annotation to the package.
* Throw IllegalArgumentException when Timestamp.create receives invalid arguments.Kristen Kozak2018-05-152-16/+75
| | | | | | 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.
* Merge pull request #1198 from sebright/duration-error-handlingsebright2018-05-152-17/+78
|\ | | | | Throw IllegalArgumentException when Duration.create receives invalid arguments.
| * Throw IllegalArgumentException when Duration.create receives invalid arguments.Kristen Kozak2018-05-152-17/+78
| | | | | | | | | | Fixes #1179. Throwing IllegalArgumentException for invalid arguments is more consistent with the rest of the opencensus-java API.
* | Remove PublicForTesting from Status.CanonicalCode.toStatus() (fixes #976).Kristen Kozak2018-05-141-2/+0
|/ | | | | This method is already used by the Stackdriver stats exporter to convert status types, so it should be part of the API.
* Update a @since tag for the next release.Kristen Kozak2018-05-111-1/+1
|
* Adds Tracing.getExportComponent().flushAndShutdown() for use within ↵Chris K Wensel2018-05-111-0/+7
| | | | | | | | | | | 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.
* Merge pull request #1176 from sebright/upgrade-checker-frameworksebright2018-05-021-4/+7
|\ | | | | Checker Framework: 2.5.0 -> 2.5.1
| * Checker Framework: 2.5.0 -> 2.5.1Kristen Kozak2018-05-021-4/+7
| | | | | | | | | | | | 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.
* | Add missing Nullable annotation to Functions.returnNull().Kristen Kozak2018-05-021-4/+9
|/ | | | | | | The Checker Framework didn't detect this error, because the method used @SuppressWarnings("unchecked") for a different reason. This commit also fixes a potential NPE in ZipkinExporterHandler.
* Start 0.14.0 development cycle (#1157)Yang Song2018-04-271-1/+1
|
* Add Aggregation.LastValue and AggregationData.LastValueData to support Gauge ↵Yang Song2018-04-276-160/+223
| | | | | | | | | | | | | | | | (#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.
* Check for null in more public methods in Span and its subclasses.Kristen Kozak2018-04-272-3/+7
|
* Added null checking to Span implementations (#1150)dvfeinblum2018-04-243-12/+47
| | | | | | | | | | 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.
* Move utils used by Duration and Timestamp from i.o.internal.Utils to TimeUtils.Kristen Kozak2018-04-176-68/+98
| | | | | This change breaks the circular dependency between io.opencensus.internal and io.opencensus.common.
* Remove java doc about overflow cases in Duration.toMillis() (#1134)Yang Song2018-04-161-3/+0
|
* Improve Duration.toMillis() (#1132)Yang Song2018-04-162-13/+12
| | | | | | * Improve java doc for toMillis(). * Make toMillis() non-static.
* Move toMillis(Duration) to Utils so that it can be reused. (#1114)Yang Song2018-04-162-0/+26
| | | | | | | | | | * Add toMillis() method to TimeUtils. * Reuse toMillis() method in impl and exporters. * Add a note about overflow and precision loss. * Move toMillis() to Duration.
* Clarifies implementation details on BinaryFormat (#1119)Adrian Cole2018-04-091-1/+1
|
* Remove usages of Guava Objects/MoreObjects from opencensus-api (issue #1081).Kristen Kozak2018-04-047-29/+53
|
* Remove usages of Guava Throwables from opencensus-api (issue #1081).Kristen Kozak2018-04-041-3/+8
|
* Replace Guava VisibleForTesting in opencensus-api (issue #1081).Kristen Kozak2018-04-0410-16/+91
| | | | | | | | | | | | | | This commit adds two annotations to replace the uses of Guava's VisibleForTesting annotation in opencensus-api. Each annotation has a more specific meaning than VisibleForTesting, to make the uses of the annotations more informative. DefaultVisibilityForTesting - This annotation replaces the main use of @VisibleForTesting, indicating that an element was changed from private to package-private for testing. PublicForTesting - This annotation is temporary and should be removed as part of issue #977.
* Remove usages of Guava LongMath from opencensus-api (issue #1081).Kristen Kozak2018-04-044-11/+72
|
* Remove usages of Guava Precondtions from opencensus-api (issue #1081).Kristen Kozak2018-04-0431-162/+308
| | | | | This commit replaces the most commonly used precondtion checks with methods in a new utility class, io.opencensus.internal.Utils.
* Add nullness annotations to Preconditions.checkNotNull.Kristen Kozak2018-04-041-5/+11
| | | | | This commit also adds annotations to TextFormat that were required after the change in checkNotNull.
* Rename "Util" classes to "Utils", for consistency with public "Utils" classes.Kristen Kozak2018-04-0413-40/+40
| | | | | | This commit adds an "s" to TimeUtil, StringUtil, and BaseMessageEventUtil, for consistency with utility classes that have been made public, such as ContextUtils.
* Sort TagKeys in View.create(...) (fixes #1080).Kristen Kozak2018-03-302-16/+32
|
* Remove some uses of deprecated AggregationWindow in ViewTest.java.Kristen Kozak2018-03-301-3/+3
|
* Clean up ViewTest.java.Kristen Kozak2018-03-301-21/+17
|
* Deprecate Mean and MeanData (#1101)Yang Song2018-03-283-9/+126
| | | | | | | | | | * Deprecate Mean and MeanData * Suppress deprecation warnings. * Suppress warning InconsistentOverloads * CopyAnnotations for AutoValue Mean and MeanData
* Remove @SuppressWarnings("nullness") from all AutoValue classes.Kristen Kozak2018-03-2723-147/+29
| | | | | | This change allows the Checker Framework to check the classes annotated with @AutoValue, even though their generated subclasses are skipped. This commit also fixes some previously suppressed warnings in the ViewData class.
* Update Guava and Jmh versions (#1095)Yang Song2018-03-261-2/+2
|
* Enable FindBugs in tests.Kristen Kozak2018-03-231-3/+0
| | | | | | | | | | | | | | | | 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. (#1076)Yang Song2018-03-214-18/+20
| | | | | | | | * Move BaseMessageEventUtil to trace package. * Move BaseMessageEventUtil to trace.internal. Work around findbugs. * Update findbugs-exclude and remove since tag.