-
Notifications
You must be signed in to change notification settings - Fork 246
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
add prefixes to lookup metrics #477
Conversation
64e6dd6
to
6499483
Compare
return ld.lookupHandler.LookupViaChecks(ctx, validatedReq) | ||
} | ||
|
||
return ld.lookupHandler.Lookup(ctx, validatedReq) | ||
} | ||
|
||
func prefix(namespace string) (prefix string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must have some code for this somewhere...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see anything that assumed the namespace string had already been validated like it is here
internal/dispatch/graph/graph.go
Outdated
return ld.lookupHandler.LookupViaChecks(ctx, validatedReq) | ||
} | ||
|
||
return ld.lookupHandler.Lookup(ctx, validatedReq) | ||
} | ||
|
||
func prefix(namespace string) (prefix string) { | ||
parts := strings.Split(namespace, "/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SplitN
6499483
to
5b24dce
Compare
No description provided.