-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Update OpenCensus version to 0.17.0 (#4494)
- Loading branch information
1 parent
4064123
commit 09b13fe
Showing
7 changed files
with
287 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
core/src/main/java/io/grpc/internal/DeprecatedCensusConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* Copyright 2018 The gRPC Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.grpc.internal; | ||
|
||
import com.google.common.annotations.VisibleForTesting; | ||
import io.opencensus.contrib.grpc.metrics.RpcMeasureConstants; | ||
import io.opencensus.stats.Measure.MeasureDouble; | ||
import io.opencensus.stats.Measure.MeasureLong; | ||
import io.opencensus.tags.TagKey; | ||
|
||
/** Holder class for the deprecated OpenCensus constants. */ | ||
@SuppressWarnings("deprecation") | ||
@VisibleForTesting | ||
public final class DeprecatedCensusConstants { | ||
|
||
public static final TagKey RPC_STATUS = RpcMeasureConstants.RPC_STATUS; | ||
public static final TagKey RPC_METHOD = RpcMeasureConstants.RPC_METHOD; | ||
|
||
public static final MeasureLong RPC_CLIENT_ERROR_COUNT = | ||
RpcMeasureConstants.RPC_CLIENT_ERROR_COUNT; | ||
public static final MeasureDouble RPC_CLIENT_REQUEST_BYTES = | ||
RpcMeasureConstants.RPC_CLIENT_REQUEST_BYTES; | ||
public static final MeasureDouble RPC_CLIENT_RESPONSE_BYTES = | ||
RpcMeasureConstants.RPC_CLIENT_RESPONSE_BYTES; | ||
public static final MeasureDouble RPC_CLIENT_ROUNDTRIP_LATENCY = | ||
RpcMeasureConstants.RPC_CLIENT_ROUNDTRIP_LATENCY; | ||
public static final MeasureDouble RPC_CLIENT_SERVER_ELAPSED_TIME = | ||
RpcMeasureConstants.RPC_CLIENT_SERVER_ELAPSED_TIME; | ||
public static final MeasureDouble RPC_CLIENT_UNCOMPRESSED_REQUEST_BYTES = | ||
RpcMeasureConstants.RPC_CLIENT_UNCOMPRESSED_REQUEST_BYTES; | ||
public static final MeasureDouble RPC_CLIENT_UNCOMPRESSED_RESPONSE_BYTES = | ||
RpcMeasureConstants.RPC_CLIENT_UNCOMPRESSED_RESPONSE_BYTES; | ||
public static final MeasureLong RPC_CLIENT_STARTED_COUNT = | ||
RpcMeasureConstants.RPC_CLIENT_STARTED_COUNT; | ||
public static final MeasureLong RPC_CLIENT_FINISHED_COUNT = | ||
RpcMeasureConstants.RPC_CLIENT_FINISHED_COUNT; | ||
public static final MeasureLong RPC_CLIENT_REQUEST_COUNT = | ||
RpcMeasureConstants.RPC_CLIENT_REQUEST_COUNT; | ||
public static final MeasureLong RPC_CLIENT_RESPONSE_COUNT = | ||
RpcMeasureConstants.RPC_CLIENT_RESPONSE_COUNT; | ||
|
||
public static final MeasureLong RPC_SERVER_ERROR_COUNT = | ||
RpcMeasureConstants.RPC_SERVER_ERROR_COUNT; | ||
public static final MeasureDouble RPC_SERVER_REQUEST_BYTES = | ||
RpcMeasureConstants.RPC_SERVER_REQUEST_BYTES; | ||
public static final MeasureDouble RPC_SERVER_RESPONSE_BYTES = | ||
RpcMeasureConstants.RPC_SERVER_RESPONSE_BYTES; | ||
public static final MeasureDouble RPC_SERVER_SERVER_ELAPSED_TIME = | ||
RpcMeasureConstants.RPC_SERVER_SERVER_ELAPSED_TIME; | ||
public static final MeasureDouble RPC_SERVER_SERVER_LATENCY = | ||
RpcMeasureConstants.RPC_SERVER_SERVER_LATENCY; | ||
public static final MeasureDouble RPC_SERVER_UNCOMPRESSED_REQUEST_BYTES = | ||
RpcMeasureConstants.RPC_SERVER_UNCOMPRESSED_REQUEST_BYTES; | ||
public static final MeasureDouble RPC_SERVER_UNCOMPRESSED_RESPONSE_BYTES = | ||
RpcMeasureConstants.RPC_SERVER_UNCOMPRESSED_RESPONSE_BYTES; | ||
public static final MeasureLong RPC_SERVER_STARTED_COUNT = | ||
RpcMeasureConstants.RPC_SERVER_STARTED_COUNT; | ||
public static final MeasureLong RPC_SERVER_FINISHED_COUNT = | ||
RpcMeasureConstants.RPC_SERVER_FINISHED_COUNT; | ||
public static final MeasureLong RPC_SERVER_REQUEST_COUNT = | ||
RpcMeasureConstants.RPC_SERVER_REQUEST_COUNT; | ||
public static final MeasureLong RPC_SERVER_RESPONSE_COUNT = | ||
RpcMeasureConstants.RPC_SERVER_RESPONSE_COUNT; | ||
|
||
private DeprecatedCensusConstants() {} | ||
} |
Oops, something went wrong.