Skip to content

Elasticsearch exporter dedot and dedup config has no effect #19419

@CarsonCook

Description

@CarsonCook

Component(s)

exporter/elasticsearch

What happened?

Description

mapping.dedup and mapping.dedot configuration have no effect, they are always enabled and disabled, respectively:

// TODO: Apply encoding and field mapping settings.
model := &encodeModel{dedup: true, dedot: false}

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/elasticsearchexporter/logs_exporter.go#L65

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/elasticsearchexporter/trace_exporter.go#L61

Steps to Reproduce

  1. Set mapping.dedot to true in the receiver's config.
  2. Run and see dots are preserved

Expected Result

mapping.dedup and mapping.dedot config values are used.

Alternatively, change documentation to reflect these fields are not operational.

Actual Result

Fields have no effect.

Collector version

0.71.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

exporters:
  elasticsearch:
    mappings:
        dedot: true

Log output

No response

Additional context

PR fixing bug: #19420

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions