File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
docs/sources/reference/components/otelcol
component/otelcol/exporter/datadog
converter/internal/otelcolconvert/testdata Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -182,10 +182,10 @@ The `exporter` block configures the metric exporter settings.
182
182
183
183
The following arguments are supported:
184
184
185
- | Name | Type | Description | Default | Required |
186
- | ---------------------------------------- | ------ | ------------------------------------------------------------------------------------ | ------- | -------- |
187
- | ` instrumentation_scope_metadata_as_tags ` | ` bool ` | Set to ` true ` to add metadata about the instrumentation scope that created a metric. | ` false ` | no |
188
- | ` resource_attributes_as_tags ` | ` bool ` | Set to ` true ` to add resource attributes of a metric to its metric tags. | ` false ` | no |
185
+ | Name | Type | Description | Default | Required |
186
+ | ---------------------------------------- | ------ | ------------------------------------------------------------------------------------------- | --------- | -------- |
187
+ | ` instrumentation_scope_metadata_as_tags ` | ` bool ` | Set to ` false ` to not add metadata about the instrumentation scope that created a metric. | ` true ` | no |
188
+ | ` resource_attributes_as_tags ` | ` bool ` | Set to ` true ` to add resource attributes of a metric to its metric tags. | ` false ` | no |
189
189
190
190
### ` histograms `
191
191
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ func (args *DatadogMetricsArguments) SetToDefault() {
198
198
DeltaTTL : 3600 ,
199
199
ExporterConfig : DatadogMetricsExporterArguments {
200
200
ResourceAttributesAsTags : false ,
201
- InstrumentationScopeMetadataAsTags : false ,
201
+ InstrumentationScopeMetadataAsTags : true ,
202
202
},
203
203
HistConfig : DatadogHistogramArguments {
204
204
Mode : "distributions" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func TestConfigConversion(t *testing.T) {
29
29
// from the official exporter; as such as need to init it all here
30
30
defaultExporterSettings = datadogOtelconfig.MetricsExporterConfig {
31
31
ResourceAttributesAsTags : false ,
32
- InstrumentationScopeMetadataAsTags : false ,
32
+ InstrumentationScopeMetadataAsTags : true ,
33
33
}
34
34
defaultHistSettings = datadogOtelconfig.HistogramConfig {
35
35
Mode : "distributions" ,
@@ -84,6 +84,7 @@ func TestConfigConversion(t *testing.T) {
84
84
delta_ttl = 1200
85
85
exporter {
86
86
resource_attributes_as_tags = true
87
+ instrumentation_scope_metadata_as_tags = false
87
88
}
88
89
histograms {
89
90
mode = "counters"
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ otelcol.exporter.datadog "default" {
36
36
endpoint = "https://api.datadoghq.com"
37
37
38
38
exporter {
39
- resource_attributes_as_tags = true
39
+ resource_attributes_as_tags = true
40
+ instrumentation_scope_metadata_as_tags = true
40
41
}
41
42
42
43
histograms {
You can’t perform that action at this time.
0 commit comments