Skip to content

Commit 15cb1ff

Browse files
committed
rename CommonTagsInternal to InternalTags (#233)
* rename CommonTagsInternal to InternalTags
1 parent 3853e46 commit 15cb1ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

m3/config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ type Configuration struct {
5050
// with the histogram bucket bound values.
5151
HistogramBucketTagPrecision uint `yaml:"histogramBucketTagPrecision"`
5252

53-
// CommonTagsInternal are tags that should be added to all internal metrics
53+
// InternalTags are tags that should be added to all internal metrics
5454
// emitted by the reporter.
55-
CommonTagsInternal map[string]string `yaml:"commonTagsInternal"`
55+
InternalTags map[string]string `yaml:"internalTags"`
5656
}
5757

5858
// NewReporter creates a new M3 reporter from this configuration.
@@ -70,6 +70,6 @@ func (c Configuration) NewReporter() (Reporter, error) {
7070
MaxPacketSizeBytes: c.PacketSize,
7171
IncludeHost: c.IncludeHost,
7272
HistogramBucketTagPrecision: c.HistogramBucketTagPrecision,
73-
InternalTags: c.CommonTagsInternal,
73+
InternalTags: c.InternalTags,
7474
})
7575
}

m3/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestConfigSimple(t *testing.T) {
4343
assert.True(t, ok)
4444
assert.True(t, tagEquals(reporter.commonTags, "service", "my-service"))
4545
assert.True(t, tagEquals(reporter.commonTags, "env", "test"))
46-
assert.Equal(t, 0, len(c.CommonTagsInternal))
46+
assert.Equal(t, 0, len(c.InternalTags))
4747
}
4848

4949
func TestConfigMulti(t *testing.T) {

0 commit comments

Comments
 (0)