# Google Cloud Run

Request logs through Cloud Logging. Request traces from the OpenTelemetry SDK.

Logs Traces Available

[Open the Connect card in Epok](https://app.epok.cloud/#/connect?source=gcp-logs) [Full setup guide](https://epok.cloud/docs/running-on-gcp#cloud-run)

## What you get

Logs and traces, arriving through Cloud Logging and Pub/Sub push; OpenTelemetry SDK.

## Set it up

1. Create an ingest key in Epok: Settings, then API keys.
2. Add the OpenTelemetry SDK for your language to the service.
3. Set the OpenTelemetry exporter environment variables on the Cloud Run service: the Epok endpoint, OTLP over HTTP, and the key as a header.
4. Send a request through the service and open its trace in Traces.
5. For request logs, set up the Cloud Logging Pub/Sub push from the Google Cloud page; Cloud Run logs arrive through it.

The commands and configuration for each step are on the [setup guide](https://epok.cloud/docs/running-on-gcp#cloud-run).

## What was tested

- End to end with real cloud resources, sending to a local Epok stack rather than the hosted service: 2 runs.
- Code tests of the ingest route or the sender: 1 test.
- No run against the hosted service is recorded yet.

## What you see in Epok

- Explore and Live tail: search, patterns and new errors.
- Services and Traces: request rate, errors and latency per service and endpoint, and each trace's span tree.

## Troubleshooting

- A default gRPC exporter does not reach Epok. Set the protocol to http/protobuf.

## More in Cloud & Kubernetes

[Container logs](https://epok.cloud/integrations/k8s-container-logs) [Kubernetes events](https://epok.cloud/integrations/k8s-events) [Node, pod and cluster metrics](https://epok.cloud/integrations/k8s-metrics) [Traces from your pods](https://epok.cloud/integrations/k8s-traces) [EC2](https://epok.cloud/integrations/aws-ec2) [CloudWatch Logs](https://epok.cloud/integrations/aws-cloudwatch-logs) [CloudWatch metrics](https://epok.cloud/integrations/aws-cloudwatch-metrics) [Lambda](https://epok.cloud/integrations/aws-lambda) [ECS on Fargate](https://epok.cloud/integrations/aws-ecs-fargate) [Compute Engine](https://epok.cloud/integrations/gcp-compute-engine) [Cloud Logging](https://epok.cloud/integrations/gcp-cloud-logging)
