File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/dd-trace/src/aiguard Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class AIGuard extends NoopAIGuard {
8484 * - Clones each message so callers cannot mutate the data set in the meta struct.
8585 * - Truncates the list of messages and `content` fields emitting metrics accordingly.
8686 */
87- #messagesForMetaStruct ( messages ) {
87+ #buildMessagesForMetaStruct ( messages ) {
8888 const size = Math . min ( messages . length , this . #maxMessagesLength)
8989 if ( messages . length > size ) {
9090 appsecMetrics . count ( AI_GUARD_TELEMETRY_TRUNCATED , { type : 'messages' } ) . inc ( 1 )
@@ -156,7 +156,7 @@ class AIGuard extends NoopAIGuard {
156156 }
157157 }
158158 const metaStruct = {
159- messages : this . #messagesForMetaStruct ( messages )
159+ messages : this . #buildMessagesForMetaStruct ( messages )
160160 }
161161 span . meta_struct = {
162162 [ AI_GUARD_META_STRUCT_KEY ] : metaStruct
You can’t perform that action at this time.
0 commit comments