diff --git a/packages/instrumentation-remix/src/instrumentation.ts b/packages/instrumentation-remix/src/instrumentation.ts index 0f24d66..9cf86d4 100644 --- a/packages/instrumentation-remix/src/instrumentation.ts +++ b/packages/instrumentation-remix/src/instrumentation.ts @@ -481,7 +481,7 @@ export class RemixInstrumentation extends InstrumentationBase { const formData = await clonedRequest.formData(); const { actionFormDataAttributes: actionFormAttributes } = plugin.getConfig(); formData.forEach((value, key) => { - if (actionFormAttributes[key] !== false) { + if (actionFormAttributes[key] && actionFormAttributes[key] !== false) { const keyName = actionFormAttributes[key] === true ? key : actionFormAttributes[key]; span.setAttribute(`formData.${keyName}`, value.toString()); }