Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenSearch exporter mapper_parsing_exception #117

Open
chantzlarge opened this issue Feb 14, 2024 · 0 comments
Open

Fix OpenSearch exporter mapper_parsing_exception #117

chantzlarge opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chantzlarge
Copy link

chantzlarge commented Feb 14, 2024

Bug Report

latest

Symptom

What is the bug?

  • The bug is a mapper_parsing_exception encountered when attempting to export traces to OpenSearch. This exception indicates a failure in parsing due to a class cast exception, specifically, an attempt to cast org.opensearch.index.mapper.KeywordFieldMapper to org.opensearch.index.mapper.ObjectMapper. This suggests an incompatibility or misconfiguration in the data schema or mapping used for trace data in OpenSearch.

What is the expected behavior?

  • The expected behavior is for the OpenTelemetry Collector (otel-col) to successfully export trace data to OpenSearch without encountering schema-related parsing exceptions.

What is the actual behavior?

  • The actual behavior observed is an error during the export process, which indicates that the data schema or mapping provided to OpenSearch is incorrect or incompatible. This prevents the successful export of trace data and results in data being rejected.

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}}
@chantzlarge chantzlarge added the bug Something isn't working label Feb 14, 2024
@chantzlarge chantzlarge changed the title Fix OTEL OpenSearch Exporter Fix OpenSearch exporter mapper_parsing_exception Feb 14, 2024
@Swiddis Swiddis removed the untriaged label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants