# Ingest openinference spans with chars more than 1024

**URL:** https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650
**Category:** APM
**Tags:** python
**Created:** [July 22, 2026, 6:50pm UTC](https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650 "2026-07-22T18:50:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nikhil\_digde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikhil_digde/32/147922_2.png) [@nikhil\_digde](https://discuss.elastic.co/u/nikhil_digde)
#### Post date: [July 22, 2026, 6:50pm UTC](https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650/1 "2026-07-22T18:50:55Z")

</div>

Is anyone storing open inference / otel Genai spans in elastic APM? I am having issues with the char limit of 1024 , due to which I have issues using the data to run online evals later. Is it not the correct fit for the use case? Or is there a way to get around this limit? I checked options online to use the collector and push to ES or something

---

<div class="post-metadata">

### Author: ![Rafa\_Silva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafa_silva/32/147814_2.png) [@Rafa\_Silva](https://discuss.elastic.co/u/Rafa_Silva)
#### Post date: [July 26, 2026, 4:51am UTC](https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650/2 "2026-07-26T04:51:37Z")

</div>

Hi @nikhil_digde, welcome!

Quick thing to check before you go down the mapping route: that 1024 cut happens on the APM Server side, before the doc ever reaches Elasticsearch. Worth confirming send one long attribute and look at the raw document in Discover. If it’s already truncated there, no index template change will bring it back.

If that’s what you see, the way out is to skip the classic APM intake and store the spans in OTel-native format (Managed OTLP Endpoint on Cloud, or a collector with the **elasticsearch** exporter in **otel** mapping mode). Your collector idea was pointing the right way.

Which version and deployment type are you on?

---

<div class="post-metadata">

### Author: ![nikhil\_digde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikhil_digde/32/147922_2.png) [@nikhil\_digde](https://discuss.elastic.co/u/nikhil_digde)
#### Post date: [July 26, 2026, 11:11am UTC](https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650/3 "2026-07-26T11:11:22Z")

</div>

Hey @Rafa_Silva ,

Thanks for the response. Yes I checked it and its truncated in es. So i went the collector route for now. Yes, i checked the apm es otel endpoint, but it dint work for traces. It worked for metrics only.
