Skip to content

[elasticsearchexporter] improve error message for invalid datapoints #39063

Open
@vigneshshanmugam

Description

@vigneshshanmugam

Component(s)

exporter/elasticsearch

What happened?

Description

When invalid numerical values are sent, elasticsearchexporter logs the datapoints with generic error which makes it harder to debug what was the actual metric source responsible for that error.

Steps to Reproduce

Expected Result

Error message needs to follow the same pattern similar to

dropping cumulative temporality histogram "workqueue_work_duration_seconds" 

invalid number data point "metric_name"

Actual Result

invalid number data point
invalid number data point
invalid number data point
invalid number data point
invalid number data point
invalid number data point

Collector version

v0.121.0

Environment information

Environment

Linux

OpenTelemetry Collector configuration

Log output

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions