UNPKG

@datadog/mobile-react-native

Version:

A client-side React Native module to interact with Datadog

22 lines (21 loc) 871 B
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-Present Datadog, Inc. */ import { EventMapper } from '../sdk/EventMappers/EventMapper'; export const formatLogEventToNativeLog = logEvent => { return logEvent; }; export const formatRawLogToNativeEvent = rawLog => { return rawLog; }; export const formatRawLogToLogEvent = (rawLog, additionalInformation) => { return { ...rawLog, userInfo: additionalInformation.userInfo, attributes: additionalInformation.attributes }; }; export const generateEventMapper = logEventMapper => new EventMapper(logEventMapper, formatRawLogToLogEvent, formatLogEventToNativeLog, formatRawLogToNativeEvent); //# sourceMappingURL=eventMapper.js.map