about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 9db3c94ecf39..33ca57dddbbe 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -153,7 +153,7 @@ fn get_project_id() -> String {
 /// On non-GCP machines the value is determined by using the
 /// `GOOGLE_CLOUD_PROJECT` and `LOG_NAME` environment variables.
 fn determine_monitored_resource() -> Value {
-    if let Ok(log) = env::var("LOG_NAME") {
+    if let Ok(log) = env::var("LOG_STREAM") {
         json!({
             "type": "logging_log",
             "labels": {