Skip to content

Commit 7598c5d

Browse files
committed
remove unused ProfilesDynamicIndex
1 parent 7e4c20e commit 7598c5d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

exporter/elasticsearchexporter/config.go

-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ type Config struct {
5555

5656
// This setting is required when profiles pipelines used.
5757
ProfilesIndex string `mapstructure:"profiles_index"`
58-
// fall back to pure ProfilesIndex, if 'elasticsearch.index.prefix' or 'elasticsearch.index.suffix' are not found in resource or attribute (prio: resource > attribute)
59-
ProfilesDynamicIndex DynamicIndexSetting `mapstructure:"profiles_dynamic_index"`
6058

6159
// LogsDynamicID configures whether log record attribute `elasticsearch.document_id` is set as the document ID in ES.
6260
LogsDynamicID DynamicIDSettings `mapstructure:"logs_dynamic_id"`

exporter/elasticsearchexporter/factory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func createProfilesExporter(
178178

179179
handleDeprecatedConfig(cf, set.Logger)
180180

181-
exporter := newExporter(cf, set, cf.ProfilesIndex, cf.ProfilesDynamicIndex.Enabled)
181+
exporter := newExporter(cf, set, cf.ProfilesIndex, false)
182182

183183
return xexporterhelper.NewProfilesExporter(
184184
ctx,

0 commit comments

Comments
 (0)