Adds tracing sample for cloud spanner#1002
Adds tracing sample for cloud spanner#1002kurtisvg merged 10 commits intoGoogleCloudPlatform:masterfrom
Conversation
spanner/cloud-client/pom.xml
Outdated
| <dependency> | ||
| <groupId>io.opencensus</groupId> | ||
| <artifactId>opencensus-api</artifactId> | ||
| <version>0.11.0</version> |
There was a problem hiding this comment.
Make it a variable because it is used in few places?
spanner/cloud-client/pom.xml
Outdated
| <dependency> | ||
| <groupId>io.opencensus</groupId> | ||
| <artifactId>opencensus-impl</artifactId> | ||
| <version>0.11.0</version> |
| ZPageHandlers.startHttpServerAndRegisterAll(8080); | ||
| // Installs an exporter for stack driver. | ||
| StackdriverExporter.createAndRegister(); | ||
| Tracing.getExportComponent().getSampledSpanStore().registerSpanNamesForCollection(Arrays.asList("CloudSpannerSample")); |
There was a problem hiding this comment.
private static final String CLOUD_SPANNER_SAMPLE_SPAN_NAME = "CloudSpannerSample";
Not necessary the long suggested variable name but that will ensure that the string is the same here and 10 lines below.
|
Also you can install the StackdriverStatsExporter as well to push grpc stats to monitoring, here are instructions: |
|
You might wish to add something about this to the README.md |
|
@rakyll Once they make the changes you've asked for, add the |
|
If you link the stats you also need to define the views (or what data to export), to do that do the following:
|
|
Addressed all the comments. PTALA. |
|
Enabling SD premium made it work. |
|
@lesv Can you please approve. |
|
Waiting on Kokoro. |
|
Thanks! |
🤖 I have created a release *beep* *boop* --- ## [0.124.15](https://github.com/googleapis/java-errorreporting/compare/v0.124.14...v0.124.15) (2022-10-10) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.21 ([#1001](https://github.com/googleapis/java-errorreporting/issues/1001)) ([b3722f8](https://github.com/googleapis/java-errorreporting/commit/b3722f8ea2dde68869b824e80da3583d312c83cb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [0.124.15](https://github.com/googleapis/java-errorreporting/compare/v0.124.14...v0.124.15) (2022-10-10) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.21 ([#1001](https://github.com/googleapis/java-errorreporting/issues/1001)) ([b3722f8](https://github.com/googleapis/java-errorreporting/commit/b3722f8ea2dde68869b824e80da3583d312c83cb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [0.124.15](https://github.com/googleapis/java-errorreporting/compare/v0.124.14...v0.124.15) (2022-10-10) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.21 ([#1001](https://github.com/googleapis/java-errorreporting/issues/1001)) ([b3722f8](https://github.com/googleapis/java-errorreporting/commit/b3722f8ea2dde68869b824e80da3583d312c83cb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…1.2 (#1002) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://github.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dialogflow). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTguMSIsInVwZGF0ZWRJblZlciI6IjMyLjE5OC4xIn0=-->
…1.2 (#1002) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://github.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dialogflow). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTguMSIsInVwZGF0ZWRJblZlciI6IjMyLjE5OC4xIn0=-->
cc @bogdandrutu