Replies: 2 comments
-
cc GCP friends @jsuereth @dashpole @psx95 in case you can help/redirect |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @sdsani, I've moved your issue to GoogleCloudPlatform/opentelemetry-cloud-run#18, since it is specific to GCP documentation for running on cloud run. We can follow-up with you there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys,
Our team has been asked to deploy an application in google cloud run as a service. Among many other tasks, one action item is about setting up tracing and monitoring for the application. We decided here to use Open telemetry here. We have two services. One is a ReactJS app while second is a spring boot app. Both are using otel collector as a side car here. Below are the few docs that we have followed here to configure our application.
https://cloud.google.com/run/docs/tutorials/custom-metrics-opentelemetry-sidecar
https://opentelemetry.io/docs/languages/java/automatic/spring-boot/
And many other docs.
We got it working at the end. We can see traces, showing up in google cloud traces. Metrics are getting into metrics and so on.
However, during testing, we found that not all traces are getting into the google cloud trace. Sometime every second trace get into cloud trace, while sometime every fourth get into the cloud trace. We have looked many different settings and played around that, however, none of these settings appears to make any difference. To get this capability, we need a more reliable config in place since for production support, missing these traces would not be an option.
Below is the image that we are using for otel collector sidecar (pulled from dockerhub).
otel/opentelemetry-collector-contrib:0.99.0
This image has been customized with a config file and attached is that config file (collector-config.yaml.txt)
Attached is also yaml file for cloud run service config (cloud-run-service-config.yaml.txt)
Please advise.
cloud-run-service-config.yaml.txt
collector-config.yaml.txt
In our spring boot config, our team is already setting sampling rate to 1.0.
Have tried adding following to the env for the collector sidecar also and this is not helping either.
env:
- name: OTEL_TRACES_SAMPLER
value: traceidratio
- name: OTEL_TRACES_SAMPLER_ARG
value: "1.0"
Beta Was this translation helpful? Give feedback.
All reactions