mirror of https://github.com/statping/statping
feat: testing workflow
parent
9abe601c10
commit
80da55141e
|
@ -4,7 +4,7 @@ import { titleCase } from './helper';
|
|||
export const sendToLumberjack = ({ eventName, properties = {} }) => {
|
||||
const body = {
|
||||
mode: 'live',
|
||||
key: window.LUMBERJACK_API_KEY,
|
||||
key: 'test_key_1',
|
||||
events: [
|
||||
{
|
||||
event_type: 'test_source',
|
||||
|
@ -18,7 +18,7 @@ export const sendToLumberjack = ({ eventName, properties = {} }) => {
|
|||
],
|
||||
};
|
||||
|
||||
fetch(window.LUMBERJACK_API_URL, {
|
||||
fetch('https://lumberjack.stage.razorpay.in/v1/track', {
|
||||
method: 'post',
|
||||
body: JSON.stringify(body),
|
||||
headers: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import analyticsService from '@razorpay/universe-utils/analytics';
|
|||
export const initLumberjack = () => {
|
||||
analyticsService.init({
|
||||
lumberjackAppName: 'test_source',
|
||||
lumberjackApiKey: window.LUMBERJACK_API_KEY,
|
||||
lumberjackApiKey: 'test_key_1',
|
||||
lumberjackApiUrl: "https://lumberjack.stage.razorpay.in/v1/track",
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue