Skip to content

LLM Observability Spans Not Appearing When Payload > 1MB #36411

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

Open
lucasiscovici opened this issue Apr 23, 2025 · 1 comment
Open

LLM Observability Spans Not Appearing When Payload > 1MB #36411

lucasiscovici opened this issue Apr 23, 2025 · 1 comment

Comments

@lucasiscovici
Copy link

Hello,

Context

It seems that when the payload sent to the LLM Observability endpoint (llmobs-intake.datadoghq.eu) exceeds 1MB, the corresponding LLM Obs spans are not correctly ingested. Specifically, we notice that:

  • No LLM Obs spans appear in the platform.
  • There are no links between APM spans and LLM Obs spans.

In the codebase:

  • The dd-trace library sets the max payload size as EVP_PAYLOAD_SIZE_LIMIT = 5 << 20 (i.e. 5MB, with an actual limit of 5.1MB).
  • The Datadog Agent configures the EVP proxy with MaxPayloadSize: 5 * 1024 * 1024.

Question

Does the LLM Observability intake endpoint (llmobs-intake.datadoghq.eu) support and process payloads larger than 1MB? If not, is there a recommended way to handle larger payloads for LLM Obs spans?

Thanks in advance!

@lievan
Copy link

lievan commented Apr 28, 2025

Hi @lucasiscovici

The SDK should be able to send payloads up to 5MB to llmobs-intake.datadoghq.eu as of ddtrace 3.3.0. There was a bug in previous ddtrace versions where this limit was actually 1MB, so if you are using ddtrace < 3.3.0 I suspect that bug is what's causing your issue.

Note that there is still a per-span size limit of 1MB (e.g. if one LLM generation has over 1mb of text i/o, we will truncate it). We're currently exploring bumping this limit. What per-span size limit would work for your use-case?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants