Skip to content

Commit

Permalink
Merge pull request #750 from DataDog/marcosaia/RUM-7181/fix-sr-exports
Browse files Browse the repository at this point in the history
[RUM-7181] Fix Session Replay Privacy Exports
  • Loading branch information
marco-saia-datadog authored Dec 17, 2024
2 parents 305b9f5 + 4c0ddc9 commit dd9c158
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const generateTracingAttributesWithSampling = (
const isSampled = hash <= threshold;

const tracingAttributes: DdRumResourceTracingAttributes = {
traceId: traceId,
traceId,
spanId: TracingIdentifier.createSpanId(),
samplingPriorityHeader: isSampled ? '1' : '0',
tracingStrategy: 'KEEP',
Expand Down
16 changes: 14 additions & 2 deletions packages/react-native-session-replay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@
*/

import type { SessionReplayConfiguration } from './SessionReplay';
import { SessionReplay, SessionReplayPrivacy } from './SessionReplay';
import {
SessionReplay,
SessionReplayPrivacy,
ImagePrivacyLevel,
TouchPrivacyLevel,
TextAndInputPrivacyLevel
} from './SessionReplay';

export { SessionReplay, SessionReplayPrivacy };
export {
SessionReplay,
SessionReplayPrivacy,
ImagePrivacyLevel,
TouchPrivacyLevel,
TextAndInputPrivacyLevel
};

export type { SessionReplayConfiguration };

0 comments on commit dd9c158

Please sign in to comment.