Skip to content

Commit

Permalink
datadog test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
akram185 committed Jun 16, 2021
1 parent 3152b33 commit 99175eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

{
"datadog" : "browser-rum",
"name": "royale-moto",
"version": "0.1.0",
"private": true,
Expand Down
22 changes: 12 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ import "./App.css";
import Nav from "./Nav";
import track from "./track.jpg";

import { DdSdkReactNative, DdSdkReactNativeConfiguration } from 'dd-sdk-reactnative';
import { datadogRum } from '@datadog/browser-rum';

const config = new DdSdkReactNativeConfiguration(
"pubcd2a5324e8caa431c5cfe5190ed50c5d",
"<netlify>",
"ef070bfe-86b5-4df4-a3a2-25eb4201510a",
true, // track User interactions (e.g.: Tap on buttons)
true, // track XHR Resources
true // track Errors
)
datadogRum.init({
applicationId: 'ef070bfe-86b5-4df4-a3a2-25eb4201510a',
clientToken: 'pubcd2a5324e8caa431c5cfe5190ed50c5d',
site: 'datadoghq.com',
service:'royalemoto',
env:'netlify',
// Specify a version number to identify the deployed version of your application in Datadog
// version: '1.0.0',
sampleRate: 100,
trackInteractions: true
});

DdSdkReactNative.initialize(config)

// const tracer = require('dd-trace').init()

Expand Down

0 comments on commit 99175eb

Please sign in to comment.