We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbbccfc commit a65d074Copy full SHA for a65d074
packages/dd-trace/src/llmobs/writers/spans.js
@@ -35,7 +35,7 @@ class LLMObsSpanWriter extends BaseWriter {
35
if (shouldTruncate) {
36
logger.warn(`Dropping event input/output because its size (${eventSizeBytes}) exceeds the 1MB event size limit`)
37
event = this._truncateSpanEvent(event)
38
- processedEventSizeBytes = Buffer.from(JSON.stringify(event)).byteLength
+ processedEventSizeBytes = Buffer.byteLength(JSON.stringify(event))
39
}
40
41
telemetry.recordLLMObsSpanSize(event, processedEventSizeBytes, shouldTruncate)
0 commit comments