Skip to content

Commit ff4c50b

Browse files
committed
feat:merge and forward logs to dd
1 parent 0fcbeb4 commit ff4c50b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/plugins/rum/src/privacy/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const getPrivacyPlugin = (
8080
const result = instrument({ id, code }, transformOptions);
8181
return result;
8282
} catch (e) {
83-
log.error(`Instrumentation Error: ${e}`);
83+
log.error(`Instrumentation Error: ${e}`, { forward: true });
8484
return {
8585
code,
8686
};

packages/plugins/rum/src/validate.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export const validatePrivacyOptions = (
131131
};
132132
}
133133

134-
log.debug(`datadog-rum-privacy plugin options: ${JSON.stringify(toReturn.config)}`);
134+
log.debug(`datadog-rum-privacy plugin options: ${JSON.stringify(toReturn.config)}`, {
135+
forward: true,
136+
});
135137

136138
return toReturn;
137139
};

0 commit comments

Comments
 (0)