Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Include knative info in metrics if present #736

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

sethvargo
Copy link
Member

Release Note

Include knative info in metrics if present

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Oct 2, 2020
@sethvargo
Copy link
Member Author

/assign @yegle

Copy link
Contributor

@whaught whaught left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@google-oss-robot google-oss-robot merged commit 15fddc0 into main Oct 2, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/revision branch October 2, 2020 15:33
tags = append(tags, tag.Upsert(BuildIDTagKey, buildinfo.BuildID))
tags = append(tags, tag.Upsert(BuildTagTagKey, buildinfo.BuildTag))

if knativeService != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either log it when it's empty, or add the tag even if the value is empty.

Per the Cloud Run contract, the env var should not be empty. When they are empty, we won't want to silently ignore the issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to support cases where this runs outside of Cloud Run though. We know other people are running this code on other platforms. We aren't specifically tied to GCP.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, yegle

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants