From 7ad99265f0d555c66a8833889576bb6a8f24ec1a Mon Sep 17 00:00:00 2001 From: Yang Song Date: Fri, 15 Feb 2019 18:26:39 -0800 Subject: [PATCH] Update all versions. --- RELEASING.md | 2 ++ exporters/metrics/ocagent/README.md | 12 ++++---- .../ocagent/OcAgentMetricsExporter.java | 4 +-- .../OcAgentMetricsExporterConfiguration.java | 28 +++++++++---------- .../metrics/ocagent/OcAgentNodeUtils.java | 2 +- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 2444b5ac13..bd2a79877a 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -65,6 +65,7 @@ token](https://help.github.com/articles/creating-a-personal-access-token-for-the examples/build.gradle examples/pom.xml api/src/main/java/io/opencensus/common/OpenCensusLibraryInformation.java + exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentNodeUtils.java exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/OcAgentNodeUtils.java ) $ git checkout -b v$MAJOR.$MINOR.x master @@ -217,6 +218,7 @@ $ README_FILES=( contrib/spring/README.md contrib/spring_sleuth_v1x/README.md contrib/zpages/README.md + exporters/metrics/ocagent/README.md exporters/stats/prometheus/README.md exporters/stats/signalfx/README.md exporters/stats/stackdriver/README.md diff --git a/exporters/metrics/ocagent/README.md b/exporters/metrics/ocagent/README.md index 514b3a3c29..606cb51e84 100644 --- a/exporters/metrics/ocagent/README.md +++ b/exporters/metrics/ocagent/README.md @@ -13,17 +13,17 @@ For Maven add to your `pom.xml`: io.opencensus opencensus-api - 0.19.0 + 0.20.0 io.opencensus opencensus-exporter-metrics-ocagent - 0.19.0 + 0.20.0 io.opencensus opencensus-impl - 0.19.0 + 0.20.0 runtime @@ -31,9 +31,9 @@ For Maven add to your `pom.xml`: For Gradle add to your dependencies: ```groovy -compile 'io.opencensus:opencensus-api:0.19.0' -compile 'io.opencensus:opencensus-exporter-metrics-ocagent:0.19.0' -runtime 'io.opencensus:opencensus-impl:0.19.0' +compile 'io.opencensus:opencensus-api:0.20.0' +compile 'io.opencensus:opencensus-exporter-metrics-ocagent:0.20.0' +runtime 'io.opencensus:opencensus-impl:0.20.0' ``` ### Register the exporter diff --git a/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporter.java b/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporter.java index 2c1e461ff3..03eea02d1b 100644 --- a/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporter.java +++ b/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporter.java @@ -41,7 +41,7 @@ * } * } * - * @since 0.19 + * @since 0.20 */ @ThreadSafe public final class OcAgentMetricsExporter { @@ -65,7 +65,7 @@ public final class OcAgentMetricsExporter { * to the OpenCensus library. * * @param configuration the {@code OcAgentMetricsExporterConfiguration}. - * @since 0.19 + * @since 0.20 */ public static void createAndRegister(OcAgentMetricsExporterConfiguration configuration) { checkNotNull(configuration, "configuration"); diff --git a/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporterConfiguration.java b/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporterConfiguration.java index 3cda0bd869..716c0b1516 100644 --- a/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporterConfiguration.java +++ b/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentMetricsExporterConfiguration.java @@ -25,7 +25,7 @@ /** * Configurations for {@code OcAgentMetricsExporter}. * - * @since 0.19 + * @since 0.20 */ @AutoValue @Immutable @@ -37,7 +37,7 @@ public abstract class OcAgentMetricsExporterConfiguration { * Returns the end point of OC-Agent. The end point can be dns, ip:port, etc. * * @return the end point of OC-Agent. - * @since 0.19 + * @since 0.20 */ @Nullable public abstract String getEndPoint(); @@ -46,7 +46,7 @@ public abstract class OcAgentMetricsExporterConfiguration { * Returns whether to disable client transport security for the exporter's gRPC connection or not. * * @return whether to disable client transport security for the exporter's gRPC connection or not. - * @since 0.19 + * @since 0.20 */ @Nullable public abstract Boolean getUseInsecure(); @@ -64,7 +64,7 @@ public abstract class OcAgentMetricsExporterConfiguration { * Returns the service name to be used for the {@code OcAgentMetricsExporter}. * * @return the service name. - * @since 0.19 + * @since 0.20 */ @Nullable public abstract String getServiceName(); @@ -73,7 +73,7 @@ public abstract class OcAgentMetricsExporterConfiguration { * Returns the retry time interval when trying to connect to Agent. * * @return the retry time interval. - * @since 0.19 + * @since 0.20 */ @Nullable public abstract Duration getRetryInterval(); @@ -82,7 +82,7 @@ public abstract class OcAgentMetricsExporterConfiguration { * Returns the export interval between pushes to Agent. * * @return the export interval. - * @since 0.19 + * @since 0.20 */ @Nullable public abstract Duration getExportInterval(); @@ -91,7 +91,7 @@ public abstract class OcAgentMetricsExporterConfiguration { * Returns a new {@link Builder}. * * @return a {@code Builder}. - * @since 0.19 + * @since 0.20 */ public static Builder builder() { return new AutoValue_OcAgentMetricsExporterConfiguration.Builder().setUseInsecure(true); @@ -100,7 +100,7 @@ public static Builder builder() { /** * Builder for {@link OcAgentMetricsExporterConfiguration}. * - * @since 0.19 + * @since 0.20 */ @AutoValue.Builder public abstract static class Builder { @@ -112,7 +112,7 @@ public abstract static class Builder { * * @param endPoint the end point of OC-Agent. * @return this. - * @since 0.19 + * @since 0.20 */ public abstract Builder setEndPoint(String endPoint); @@ -122,7 +122,7 @@ public abstract static class Builder { * @param useInsecure whether disable client transport security for the exporter's gRPC * connection. * @return this. - * @since 0.19 + * @since 0.20 */ public abstract Builder setUseInsecure(Boolean useInsecure); @@ -140,7 +140,7 @@ public abstract static class Builder { * * @param serviceName the service name. * @return this. - * @since 0.19 + * @since 0.20 */ public abstract Builder setServiceName(String serviceName); @@ -149,7 +149,7 @@ public abstract static class Builder { * * @param retryInterval the retry time interval. * @return this. - * @since 0.19 + * @since 0.20 */ public abstract Builder setRetryInterval(Duration retryInterval); @@ -158,7 +158,7 @@ public abstract static class Builder { * * @param exportInterval the export time interval. * @return this. - * @since 0.19 + * @since 0.20 */ public abstract Builder setExportInterval(Duration exportInterval); @@ -168,7 +168,7 @@ public abstract static class Builder { * Builds a {@link OcAgentMetricsExporterConfiguration}. * * @return a {@code OcAgentMetricsExporterConfiguration}. - * @since 0.19 + * @since 0.20 */ public abstract OcAgentMetricsExporterConfiguration build(); } diff --git a/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentNodeUtils.java b/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentNodeUtils.java index 60bcb3c5f6..52b0e9f368 100644 --- a/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentNodeUtils.java +++ b/exporters/metrics/ocagent/src/main/java/io/opencensus/exporter/metrics/ocagent/OcAgentNodeUtils.java @@ -39,7 +39,7 @@ final class OcAgentNodeUtils { // The current version of the OpenCensus OC-Agent Exporter. @VisibleForTesting - static final String OC_AGENT_EXPORTER_VERSION = "0.18.0-SNAPSHOT"; // CURRENT_OPENCENSUS_VERSION + static final String OC_AGENT_EXPORTER_VERSION = "0.20.0-SNAPSHOT"; // CURRENT_OPENCENSUS_VERSION @Nullable private static final io.opencensus.resource.Resource AUTO_DETECTED_RESOURCE =