Skip to content

Update pkg, add stats reporter for webhook.#1520

Merged
knative-prow-robot merged 4 commits into
knative:masterfrom
n3wscott:update-stats-webhook
Jul 29, 2019
Merged

Update pkg, add stats reporter for webhook.#1520
knative-prow-robot merged 4 commits into
knative:masterfrom
n3wscott:update-stats-webhook

Conversation

@n3wscott
Copy link
Copy Markdown
Contributor

@n3wscott n3wscott commented Jul 9, 2019

related to knative/pkg#517

Proposed Changes

  • Create and use StatsReporter from webhook

Release Note

NONE

@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 9, 2019
@n3wscott
Copy link
Copy Markdown
Contributor Author

n3wscott commented Jul 9, 2019

/retest

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 9, 2019
Copy link
Copy Markdown
Contributor

@devguyio devguyio left a comment

Choose a reason for hiding this comment

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

lgtm other than trivial negligible comments

Comment thread cmd/webhook/main.go

stats, err := webhook.NewStatsReporter()
if err != nil {
logger.Fatalw("failed to initialize the stats reporter", zap.Error(err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

silly but I think it would be great to capitalize failed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it turns into an error and errors should be lowercase.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good to know!


stats, err := webhook.NewStatsReporter()
if err != nil {
logger.Fatalw("failed to initialize the stats reporter", zap.Error(err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same about capitalizing failed

@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 10, 2019
@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Jul 29, 2019

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Abd4llA, n3wscott, vaikas-google

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [n3wscott,vaikas-google]

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

@knative-prow-robot knative-prow-robot merged commit eb11e93 into knative:master Jul 29, 2019
matzew pushed a commit to matzew/eventing that referenced this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants