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

feat: code instrumentation #207

Merged
merged 5 commits into from
Feb 28, 2023
Merged

feat: code instrumentation #207

merged 5 commits into from
Feb 28, 2023

Conversation

ishanarya0
Copy link
Member

For issue #206

@ishanarya0 ishanarya0 linked an issue Feb 13, 2023 that may be closed by this pull request
@ishanarya0 ishanarya0 merged commit 953d2b7 into rc/0.5.1 Feb 28, 2023
@ishanarya0 ishanarya0 deleted the instrumentation branch February 28, 2023 10:52
mabdh pushed a commit to goto/shield that referenced this pull request Mar 14, 2023
* test: proxy tests (raystack#196)

* test: shield proxy

* test: add resource creation after proxy test

* chore: cleanup

* chore: cleanup

* fix: lint issue

* feat: add github workflow for proxy test

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: removed pg docker volume

* fix: workflow steps

* fix: remove failing tests

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* fix: workflow

* merge

* fix: workflow

* test: cleanup

* test: cleanup

* test: cleanup

* fix: types nad logger

* test: removed teardown step

* fix: add observability middleware

* fix: lint

* chore: add newline to workflow file

* chore: removed numbering from proxy test

* refactor: remove APIs that are replaced by relation APIs (raystack#198)

* refactor: remove group APIs that are replaced by relation APIs

* refactor: remove org APIs that are replaced by relation APIs

* refactor: remove group APIs that are replaced by relation APIs

* refactor: remove project APIs that are replaced by relation APIs

* fix: linting issue

* fix: proton commit

* fix: ProjectService mock

* fix: for user creation, use email from header if missing from body

* feat: authz middleware to return 404 when resource not found (raystack#202)

* feat: authz middleware to return 404 when resource not found

* chore: change log message

* test: increase test coverage (raystack#201)

* test: fixed TestHandler_CreateRelation

* test: added TestHandler_CheckResourcePermission

* test: increase coverage of authz hook test

* test: add create & delete relation tests

* chore: fix lint

* refactor: remove unused code in group pkg

* fix: lint issue error defination missing

* feat: add coverage html output to make test

* test: add group TestGetByIDs test

* chore: Makefile command flag

* fix: lint issue

* fix: Makefile

* chore: group test cleanup

* test: add TestListGroupRelations

* test: add TestList for namespace repository

* test: add policy test

* test: add TestUpdate to postgres policy

* test: fix TestList in policy repository test

* test: fix policy repository test

* test: add TestList to role repository

* test: add role repository update test

* test: update testcase with metadata to be updated

* fix: use salt/mux pkg (raystack#214)

* fix: use salt/mux pkg

* fix: address port for grpc server

* refactor: move registering logic to separate function

* chore: update golangci-lint version

* chore: add go mod updates

* fix: linter issues

* fix: disable vet linter

* fix: remove SIGKILL & redundant os.Interrupt

* fix: code review changes

* refactor: use runtime.WithHealthEndpointAt for health endpoints

* fix: lint issues

* fix: review changes

* feat: use project slug in hooks  (raystack#208)

* fix: use slug and project id interchangibly

* fix: ignore org id in hook

* fix: tests

* fix: tests

* fix: also add metadata in project in e2e-test

* fix: tests

* feat: code instrumentation (raystack#207)

* feat: metrics for missing metadata keys

* fix: typo

* feat: add counter metric for failed resource creation

* feat: add counter metric for failed relation creation

* feat: add /metrics endpoint to port a separate port

* fix: serialization inconsistency while creating a user (raystack#204)

* fix: serialization inconsistency while create a user

When a user is created/updated it can have additional
metadata, this data although is generic blob was getting
serialized differently when User is Created vs Updated which
was causing behaviours like extra quotes if metadata type is
a string.

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>

* fix: user metadata serialization issue in list, create, update and get endpoints

* chore: add new line at the end

---------

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
Co-authored-by: Ishan Arya <ishanarya0@gmail.com>

* fix: policy api list & get (raystack#212)

* fix: proto update

* fix: list & get policy to populate actionID, namespaceID and roleID fields

* test: fix get all policies test

---------

Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
Co-authored-by: Ishan Arya <ishanarya0@gmail.com>
Co-authored-by: Kush <3647166+kushsharma@users.noreply.github.com>
ravisuhag pushed a commit that referenced this pull request Mar 23, 2023
* feat: metrics for missing metadata keys

* fix: typo

* feat: add counter metric for failed resource creation

* feat: add counter metric for failed relation creation

* feat: add /metrics endpoint to port a separate port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[metrics]: add metrics for given scenerios
2 participants