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

Support the v2 upload format #42

Open
codefromthecrypt opened this issue Aug 10, 2017 · 21 comments
Open

Support the v2 upload format #42

codefromthecrypt opened this issue Aug 10, 2017 · 21 comments

Comments

@codefromthecrypt
Copy link
Member

Zipkin's v2 format is a lot easier to parse (eventhough in reality it will take a while for instrumentation to start using it). It might be worthwhile supporting: openzipkin/zipkin#1684

@jsw
Copy link

jsw commented Apr 4, 2018

I'm attempting to send v2 spans to the docker image documented here https://cloud.google.com/trace/docs/zipkin#option_1_using_a_container_image_to_set_up_your_server and getting Malformed reading List<Span> from json. Is this the relevant issue?

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Apr 4, 2018 via email

@jsw
Copy link

jsw commented Apr 4, 2018

Thanks for the quick response! Some combination of switching to that image and fixing my curl parameters gives me a 202. Where's the best place to get further troubleshooting as to why I'm not seeing the traces show up in Stackdriver Trace? I'm running the image inside k8s via kubectl run.

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Apr 8, 2018 via email

@jsw
Copy link

jsw commented Apr 9, 2018

@adriancole Thanks for the tips. I just got it working. Some feedback that may be helpful for clearing up the documentation here and on google.

  • https://www.googleapis.com/auth/trace.append oauth scope is required
  • gcr.io/stackdriver-trace-docker/zipkin-collector works OOTB
  • openzipkin/zipkin-gcp only works if I pass STORAGE_TYPE=stackdriver (expected?)

For reference, my commands to get each to work look like

kubectl run zipkin-collector --image=gcr.io/stackdriver-trace-docker/zipkin-collector --expose --port=9411
kubectl run zipkin-gcp --image=openzipkin/zipkin-gcp --env="STORAGE_TYPE=stackdriver" --expose --port=9411

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Apr 10, 2018 via email

@codefromthecrypt
Copy link
Member Author

#74 to follow-up on README

@jsw
Copy link

jsw commented Apr 10, 2018

Can you clarify the original intent of this issue, as it seems that v2 is supported by way of /api/v2/spans?

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Apr 10, 2018 via email

@jsw
Copy link

jsw commented Apr 10, 2018

Now I'm really curious what Support the v2 upload format refers to, especially if it's something I might run into :-)

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Apr 10, 2018 via email

@artemyarulin
Copy link

Just tried image: gcr.io/stackdriver-trace-docker/zipkin-collector with GCP and Kubernetes and it didn't work. Replaced it with image: openzipkin/zipkin-gcp with env variable STORAGE_TYPE=stackdriver and immediately started to see traces in Stackdriver

@codefromthecrypt
Copy link
Member Author

@artemyarulin the image you mention is the right one from https://github.com/openzipkin/docker-zipkin-gcp

Is there a doc still mentioning gcr.io/stackdriver-trace-docker/zipkin-collector?

@artemyarulin
Copy link

Yeah, reading https://cloud.google.com/trace/docs/zipkin#container-image-option it says docker pull gcr.io/stackdriver-trace-docker/zipkin-collector should be used

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Nov 14, 2018 via email

@mtwo
Copy link
Contributor

mtwo commented Nov 14, 2018

Shoot, thanks for the heads up. Have the setup steps changed substantially or can I just point to the new link and leave the docs unchanged? Alternatively, should I just have that page direct people to the setup steps on GitHub?

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Nov 15, 2018 via email

@mtwo
Copy link
Contributor

mtwo commented Nov 15, 2018

Ok, I've written a draft of the updated instructions. From looking at the setup steps, docker-zipkin-gcp container will pull in service account credentials automatically on GCP with the following commands:

$ docker run -d -p 9411:9411 \
-e STORAGE_TYPE=stackdriver \
-e GOOGLE_APPLICATION_CREDENTIALS=/root/.gcp/credentials.json \
-e STACKDRIVER_PROJECT_ID=your_project \
-v $HOME/.gcp:/root/.gcp:ro \
openzipkin/zipkin-gcp

Can you confirm?

@codefromthecrypt
Copy link
Member Author

codefromthecrypt commented Nov 15, 2018 via email

@mtwo
Copy link
Contributor

mtwo commented Nov 15, 2018 via email

@toredash
Copy link

Ok, I've written a draft of the updated instructions. From looking at the setup steps, docker-zipkin-gcp container will pull in service account credentials automatically on GCP with the following commands:

$ docker run -d -p 9411:9411 \
-e STORAGE_TYPE=stackdriver \
-e GOOGLE_APPLICATION_CREDENTIALS=/root/.gcp/credentials.json \
-e STACKDRIVER_PROJECT_ID=your_project \
-v $HOME/.gcp:/root/.gcp:ro \
openzipkin/zipkin-gcp

Can you confirm?

Is this still valid ? I'm not able to get this working on GKE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants