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

Refactor/no diags #437

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Refactor/no diags #437

wants to merge 20 commits into from

Conversation

yevgenypats
Copy link
Member

This is very much wip but this is removing use of diags which due to the nature of it "infects" the whole code-bases similar to context. We are moving to pure logging as it is already structured and it is being send anyway to the core by the hashicorp go-plugin library.


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

Copy link
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

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

Had one comment, regarding the proto, make sure running a new provider version will work with a diag based core, i.e works but doesn't print diags. Unless we don't want that so in that case increase the proto version so there will be a mismatch and users will have to upgrade.

Comment on lines -190 to -191
clock := stats.NewClockWithObserve("callTableResolve", segmentStats.Tag{Name: "client_id", Value: identifyClient(client)}, segmentStats.Tag{Name: "table", Value: e.Table.Name})
defer clock.Stop()
Copy link
Contributor

Choose a reason for hiding this comment

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

why did u remove the stats? this is so we can see when we have hanging resolvers that are still running

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants