cloudrun

command module
v0.0.0-...-ba1499b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 15 Imported by: 0

README

Cloud Run example

Usage

Set your own GCP project ID.

gcloud config set project YOUR_PROJECT_ID

Deploy to Cloud Run

gcloud run deploy slogdriver-sample --set-env-vars GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID

You can see the endpoint the above command log.

curl https://YOUR_CLOUD_RUN_ENDPOINT/

You can see your Cloud Run and see log.

This sample uses Cloud trace, and you can see all logs for one request with the same trace_id, as show below.

picture

Clean up

gcloud run services delete slogdriver-sample

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL