Skip to content

Commit

Permalink
docs: clean up BetaApi annotations from built in metrics API (#1741)
Browse files Browse the repository at this point in the history
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/java-bigtable/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the [samples format](
https://togithub.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
  • Loading branch information
mutianf committed May 9, 2023
1 parent 83bcdd0 commit c2fbd04
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,7 @@ public static void enableGfeOpenCensusStats() {
com.google.cloud.bigtable.data.v2.stub.metrics.RpcViews.registerBigtableClientGfeViews();
}

/**
* Register built in metrics.
*
* <p>This is an experimental feature. Please fill up this form to have your project allow listed
* for the private preview: https://forms.gle/xuhu6vCunn2MjV2m9
*/
@BetaApi("Built in metric is not currently stable and may change in the future")
/** Register built in metrics. */
public static void enableBuiltinMetrics() throws IOException {
if (BUILTIN_METRICS_REGISTERED.compareAndSet(false, true)) {
BuiltinViews.registerBigtableBuiltinViews();
Expand All @@ -214,11 +208,7 @@ public static void enableBuiltinMetrics() throws IOException {
/**
* Register built in metrics with credentials. The credentials need to have metric write access
* for all the projects you're publishing to.
*
* <p>This is an experimental feature. Please fill up this form to have your project allow listed
* for the private preview: https://forms.gle/xuhu6vCunn2MjV2m9
*/
@BetaApi("Built in metric is not currently stable and may change in the future")
public static void enableBuiltinMetrics(Credentials credentials) throws IOException {
if (BUILTIN_METRICS_REGISTERED.compareAndSet(false, true)) {
BuiltinViews.registerBigtableBuiltinViews();
Expand Down

0 comments on commit c2fbd04

Please sign in to comment.