Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding context to log statements #1260

Merged
merged 9 commits into from
Mar 29, 2022
Merged

Adding context to log statements #1260

merged 9 commits into from
Mar 29, 2022

Conversation

chaitanya-baraskar
Copy link
Contributor

@chaitanya-baraskar chaitanya-baraskar commented Feb 23, 2022

Change Overview

Adding context to log statements. ActionSet name is being passed as context field. Updated log statements to use context so all relevant logs from ActionSet can be traced together.
Added feature where kanister picks labels with prefix kanister.io/ for logging.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

For testing, I tried MsSQL blueprint - https://github.com/kanisterio/kanister/tree/master/examples/stable/mssql
Deployed application using steps given in README.md and tried backup restore command. Attaching gist of generated output.

Output before changes - https://gist.github.com/chaitanya-baraskar/4db6c3495905e43065163049c37f52d6
Output after changes in this PR - https://gist.github.com/chaitanya-baraskar/822a9148f0b4085fbf6da81a6f7cb4a6

pkg/format/format.go Show resolved Hide resolved
pkg/function/delete_volume_snapshot.go Show resolved Hide resolved
pkg/controller/controller.go Outdated Show resolved Hide resolved
pkg/controller/controller.go Outdated Show resolved Hide resolved
pkg/controller/controller.go Outdated Show resolved Hide resolved
Copy link
Contributor

@ihcsim ihcsim left a comment

Choose a reason for hiding this comment

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

LGTM 👍!

@shuguet shuguet added this to Reviewer approved in Kanister Mar 23, 2022
pkg/function/kube_exec.go Show resolved Hide resolved
pkg/function/kube_exec_all.go Show resolved Hide resolved
pkg/format/format.go Outdated Show resolved Hide resolved
pkg/format/format.go Outdated Show resolved Hide resolved
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

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

+1: LG 👍

@mergify mergify bot merged commit a932e18 into master Mar 29, 2022
Kanister automation moved this from Reviewer approved to Done Mar 29, 2022
@mergify mergify bot deleted the jobID branch March 29, 2022 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants