opensearch-project / opentelemetry-demo

This repository contains the OpenSearch adaptation for the OpenTelemetry Astronomy Shop, a microservice-based distributed system intended to illustrate the implementation of OpenTelemetry in a near real-world environment.
https://opentelemetry.io/docs/demo/
Apache License 2.0
15 stars 16 forks source link

Fix OpenSearch exporter mapper_parsing_exception #117

Open chantzlarge opened 6 months ago

chantzlarge commented 6 months ago

Bug Report

latest

Symptom

What is the bug?

What is the expected behavior?

What is the actual behavior?

Reproduce

Steps to reproduce:

  1. Configure the OpenTelemetry Collector with the opensearch/traces exporter.
  2. Ensure that trace data being exported conforms to the expected schema or mapping configuration of the OpenSearch instance.
  3. Attempt to export trace data to OpenSearch.
  4. Observe the mapper_parsing_exception in the OpenTelemetry Collector logs.

Additional Context

Related issues:

Error Logs:

Permanent error: {"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"class_cast_exception","reason":"class org.opensearch.index.mapper.KeywordFieldMapper cannot be cast to class org.opensearch.index.mapper.ObjectMapper (org.opensearch.index.mapper.KeywordFieldMapper and org.opensearch.index.mapper.ObjectMapper are in unnamed module of loader 'app')","caused_by":null}}