-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Specify metric name/tags via annotation #1096
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,14 @@ func TestSuccessfulUnderlyingCalls(t *testing.T) { | |
mrs.FindTraces(context.Background(), &spanstore.TraceQueryParameters{}) | ||
counters, gauges := mf.Snapshot() | ||
expecteds := map[string]int64{ | ||
"get_operations|result=ok": 1, | ||
"get_operations|result=err": 0, | ||
"get_trace|result=ok": 1, | ||
"get_trace|result=err": 0, | ||
"find_traces|result=ok": 1, | ||
"find_traces|result=err": 0, | ||
"get_services|result=ok": 1, | ||
"get_services|result=err": 0, | ||
"get_operations.calls|result=ok": 1, | ||
"get_operations.calls|result=err": 0, | ||
"get_trace.calls|result=ok": 1, | ||
"get_trace.calls|result=err": 0, | ||
"find_traces.calls|result=ok": 1, | ||
"find_traces.calls|result=err": 0, | ||
"get_services.calls|result=ok": 1, | ||
"get_services.calls|result=err": 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does the full name look like? Perhaps the operation name should be pushed into a tag as well: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good - the updated version is now:
|
||
} | ||
|
||
existingKeys := []string{ | ||
|
@@ -96,14 +96,14 @@ func TestFailingUnderlyingCalls(t *testing.T) { | |
mrs.FindTraces(context.Background(), &spanstore.TraceQueryParameters{}) | ||
counters, gauges := mf.Snapshot() | ||
expecteds := map[string]int64{ | ||
"get_operations|result=ok": 0, | ||
"get_operations|result=err": 1, | ||
"get_trace|result=ok": 0, | ||
"get_trace|result=err": 1, | ||
"find_traces|result=ok": 0, | ||
"find_traces|result=err": 1, | ||
"get_services|result=ok": 0, | ||
"get_services|result=err": 1, | ||
"get_operations.calls|result=ok": 0, | ||
"get_operations.calls|result=err": 1, | ||
"get_trace.calls|result=ok": 0, | ||
"get_trace.calls|result=err": 1, | ||
"find_traces.calls|result=ok": 0, | ||
"find_traces.calls|result=err": 1, | ||
"get_services.calls|result=ok": 0, | ||
"get_services.calls|result=err": 1, | ||
} | ||
|
||
existingKeys := []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.
i think we usually call this "requests"