Skip to content

Commit

Permalink
removed unnecessary prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chirayu committed Jun 7, 2023
1 parent 52d37bf commit f5f06f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestGetScopeFromCtx(t *testing.T) {
const counterName = "cn"

// create root scope
root := tally.NewTestScope("abcd8909", nil)
root := tally.NewTestScope("", nil)

// add scope tags to context
tags := map[string]string{"endpoint": "tincup", "handler": "exchange"}
Expand Down Expand Up @@ -162,7 +162,7 @@ func TestContextMetrics_NoDefault(t *testing.T) {
const counterName = "cn"

// create root scope
root := tally.NewTestScope("abcd123", nil)
root := tally.NewTestScope("", nil)

// create context metrics
cm := NewContextMetrics(root)
Expand Down Expand Up @@ -195,7 +195,7 @@ func TestContextMetrics_NoDefault_TagDivergence(t *testing.T) {

// step: create a root scope with tags
rootTags := map[string]string{"tag": "t3"}
root := tally.NewTestScope("abcd123", rootTags)
root := tally.NewTestScope("", rootTags)

// step: create context metrics
cm := NewContextMetrics(root)
Expand Down Expand Up @@ -229,12 +229,12 @@ func TestContextMetrics_ScopeDivergence(t *testing.T) {

// step: create a root scope with tags and assign it to metrics
rootTags := map[string]string{"tag": "t3"}
root := tally.NewTestScope("abcd1234", rootTags)
root := tally.NewTestScope("", rootTags)
cm := NewContextMetrics(root)

// step: create another root scope with tags and assign it to context
ctxTags := map[string]string{"endpoint": "tincup", "handler": "exchange"}
ctxRoot := tally.NewTestScope("abcd12890", ctxTags)
ctxRoot := tally.NewTestScope("", ctxTags)
ctx := WithScopeTagsDefault(context.TODO(), ctxTags, ctxRoot)

// step: increment counter
Expand Down

0 comments on commit f5f06f5

Please sign in to comment.