Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tracing hello world #270

Merged
merged 4 commits into from
Dec 6, 2017

Conversation

sduskis
Copy link
Contributor

@sduskis sduskis commented Dec 5, 2017

I added a hello world with tracing example.

You can see the readme here: https://github.com/sduskis/cloud-bigtable-examples/tree/add_tracing_hello_world/java/tracing-hello-world

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 5, 2017
Copy link
Contributor

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

Looks great! Just a few minor nits


## Before you begin

This sample assumes you have [Java 8][java8] installed.
Copy link
Contributor

Choose a reason for hiding this comment

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

might be good to emphasis that a jre is not enough and a jdk is required


Generate a credentials file by running the [application-default login](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login) command:

gcloud auth application-default login
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should discourage people from using application default creds and encourage them to use service accounts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created issue #271 to switch all examples to service accounts. For now, can we keep application-default credentials so that we can keep this issue consistent with the others?

@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Google Inc. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

please update the year

import java.io.IOException;
import java.util.concurrent.TimeUnit;

import javax.swing.plaf.synth.SynthSeparatorUI;
Copy link
Contributor

Choose a reason for hiding this comment

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

please clean up imports

@sduskis
Copy link
Contributor Author

sduskis commented Dec 6, 2017

The comments were addressed. PTAL.

Copy link
Contributor

@hegemonic hegemonic left a comment

Choose a reason for hiding this comment

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

LGTM

@sduskis sduskis merged commit 0476e4d into GoogleCloudPlatform:master Dec 6, 2017
sduskis added a commit to sduskis/cloud-bigtable-examples that referenced this pull request Dec 13, 2017
* Adding a Hello World Java with tracing.

* Updating HelloWorld docs and readm

* Addressing comments
sduskis added a commit that referenced this pull request Feb 22, 2018
* Add tracing hello world (#270)

* Adding a Hello World Java with tracing.

* Updating HelloWorld docs and readm

* Addressing comments

* Some fixes to the readme

* Adding new lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants