Open AmythD opened 9 months ago
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This is a known issue.
OpenSearch ships with an index template that is used for indices with ss4o-
prefix. This template fails to process the document it receives from otel exporter and fails insertion.
If you point exporter to an index with a different name, it should be able to index traces.
@MaxKsyunz I've tried using the dataset
and namespace
params to change to target index but no luck... is this what you mean by:
If you point exporter to an index with a different name, it should be able to index traces.
It also fails for me, even with a different index name:
opensearch/traces:
dataset: other
http:
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Same issue
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
same error here
Component(s)
exporter/opensearch
Describe the issue you're reporting
Hello,
I am trying to send otel format application traces through an opentelemetry collector to an OpenSearch backend. I observed below errors on the otel collector logs and don't seem to be getting any traces on the opensearch side yet. I did not see any errors on the OpenSearch logs itself. Could anyone please help me with this?
2024-02-05T16:35:41.140Z warn batchprocessor@v0.93.0/batch_processor.go:258 Sender failed {"kind": "processor", "name": "batch", "pipeline": "traces", "error": "not retryable error: 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}}"}
Kindly excuse any incorrect indendation during copy paste of the config.
I'm on otel-contrib version 0.93.0 OpenSearch version 2.11.1