GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Adds tracing sample for cloud spanner by vkedia · Pull Request #1002 · GoogleCloudPlatform/java-docs-samples

Conversation

@vkedia

@vkedia vkedia commented Jan 23, 2018

Copy link
Copy Markdown
Contributor

cc @bogdandrutu

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
vkedia added 7 commits December 1, 2017 16:25
@vkedia
Add tracing
f65f72b
@vkedia
Fixes
d576ca0
@vkedia
tracing
d7e9520
@vkedia
Merge branch 'master' into tracing
1d1738f
@vkedia
Add tracing sample
4d755ab
@vkedia
Revert Quickstart
2f86625
@vkedia
Revert Spanner sample
74050b6
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2018
bogdandrutu
bogdandrutu approved these changes Jan 23, 2018
View reviewed changes
Comment thread spanner/cloud-client/pom.xml Outdated
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-api</artifactId>
<version>0.11.0</version>

@bogdandrutu bogdandrutu Jan 23, 2018

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it a variable because it is used in few places?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread spanner/cloud-client/pom.xml Outdated
<dependency>
<groupId>io.opencensus</groupId>
<artifactId>opencensus-impl</artifactId>
<version>0.11.0</version>

@bogdandrutu bogdandrutu Jan 23, 2018

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<scope>runtime</scope>

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread spanner/cloud-client/src/main/java/com/example/spanner/TracingSample.java Outdated
ZPageHandlers.startHttpServerAndRegisterAll(8080);
// Installs an exporter for stack driver.
StackdriverExporter.createAndRegister();
Tracing.getExportComponent().getSampledSpanStore().registerSpanNamesForCollection(Arrays.asList("CloudSpannerSample"));

@bogdandrutu bogdandrutu Jan 23, 2018

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bogdandrutu

bogdandrutu commented Jan 23, 2018

Copy link
Copy Markdown

Also you can install the StackdriverStatsExporter as well to push grpc stats to monitoring, here are instructions:
https://github.com/census-instrumentation/opencensus-java/tree/master/exporters/stats/stackdriver

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lesv

lesv commented Jan 23, 2018

Copy link
Copy Markdown
Contributor

You might wish to add something about this to the README.md

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lesv

lesv commented Jan 23, 2018

Copy link
Copy Markdown
Contributor

@rakyll Once they make the changes you've asked for, add the kokoro-forcerun label before accepting or merging.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lesv lesv added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 23, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 23, 2018
@bogdandrutu

bogdandrutu commented Jan 23, 2018

Copy link
Copy Markdown

If you link the stats you also need to define the views (or what data to export), to do that do the following:

  • Add a compilation dependency on io.opencensus:opencensus-contrib-grpc-metrics:0.11.0
  • In the main function call io.opencensus.contrib.grpc.metrics.RpcViews.registerAllCumulativeViews()
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkedia
Address review comments
6635352
@vkedia

vkedia commented Jan 23, 2018

Copy link
Copy Markdown
Contributor Author

Addressed all the comments. PTALA.
I am getting an exception while exporting stats:

Jan 23, 2018 9:30:04 AM io.opencensus.exporter.stats.stackdriver.StackdriverExporterWorker export
WARNING: ApiException thrown when exporting TimeSeries.
com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
	at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:69)
	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.setException(GrpcExceptionCallable.java:118)
	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:101)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:61)
	at com.google.common.util.concurrent.Futures$4.run(Futures.java:1123)
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:900)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:811)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:675)
	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:492)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)
	at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)
	at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:392)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:475)
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:557)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:478)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:590)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
	at io.grpc.Status.asRuntimeException(Status.java:526)
	... 19 more
Caused by: java.io.IOException: Operation timed out
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
	at sun.nio.ch.IOUtil.read(IOUtil.java:192)
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
	... 1 more
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkedia

vkedia commented Jan 23, 2018

Copy link
Copy Markdown
Contributor Author

Enabling SD premium made it work.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkedia
Merge branch 'master' into tracing
794561c
@vkedia

vkedia commented Jan 23, 2018

Copy link
Copy Markdown
Contributor Author

@lesv Can you please approve.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lesv lesv added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 23, 2018
@lesv

lesv commented Jan 23, 2018

Copy link
Copy Markdown
Contributor

Waiting on Kokoro.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 23, 2018
lesv
lesv previously approved these changes Jan 23, 2018
View reviewed changes

@lesv lesv left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once kokoro is happy.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vkedia
Fix style violations
29568ba
@vkedia
vkedia dismissed lesv’s stale review via 29568ba January 23, 2018 20:30
kurtisvg
kurtisvg approved these changes Jan 23, 2018
View reviewed changes

@kurtisvg kurtisvg left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed Kokoro and @lesv approved earlier

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kurtisvg
kurtisvg merged commit 41df694 into GoogleCloudPlatform:master Jan 23, 2018
@vkedia

vkedia commented Jan 23, 2018

Copy link
Copy Markdown
Contributor Author

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

minherz pushed a commit that referenced this pull request Nov 9, 2022
@release-please
chore(main): release 0.124.15 (#1002)
fd88caa
🤖 I have created a release *beep* *boop*
---


## [0.124.15](https://togithub.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://togithub.com/googleapis/java-errorreporting/issues/1001)) ([b3722f8](https://togithub.com/googleapis/java-errorreporting/commit/b3722f8ea2dde68869b824e80da3583d312c83cb))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
minherz pushed a commit that referenced this pull request Nov 10, 2022
@release-please @minherz
chore(main): release 0.124.15 (#1002)
0defc8b
🤖 I have created a release *beep* *boop*
---


## [0.124.15](https://togithub.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://togithub.com/googleapis/java-errorreporting/issues/1001)) ([b3722f8](https://togithub.com/googleapis/java-errorreporting/commit/b3722f8ea2dde68869b824e80da3583d312c83cb))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
minherz pushed a commit that referenced this pull request Nov 10, 2022
@release-please @minherz
chore(main): release 0.124.15 (#1002)
336fb7b
🤖 I have created a release *beep* *boop*
---


## [0.124.15](https://togithub.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://togithub.com/googleapis/java-errorreporting/issues/1001)) ([b3722f8](https://togithub.com/googleapis/java-errorreporting/commit/b3722f8ea2dde68869b824e80da3583d312c83cb))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Shabirmean pushed a commit that referenced this pull request Nov 14, 2022
@renovate-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
c4c2149
…1.2 (#1002)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](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://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](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=-->
@Shabirmean Shabirmean mentioned this pull request Nov 15, 2022
samples: migrate code from googleapis/java-dialogflow #7420
Merged
9 tasks
Shabirmean pushed a commit that referenced this pull request Nov 15, 2022
@renovate-bot @Shabirmean
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
52a6688
…1.2 (#1002)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](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://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](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=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers
@bogdandrutu bogdandrutu bogdandrutu approved these changes
@kurtisvg kurtisvg kurtisvg approved these changes
@lesv lesv lesv left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@vkedia @bogdandrutu @lesv @kurtisvg @googlebot @kokoro-team
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.