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 = {} }) => {
|
export const sendToLumberjack = ({ eventName, properties = {} }) => {
|
||||||
const body = {
|
const body = {
|
||||||
mode: 'live',
|
mode: 'live',
|
||||||
key: window.LUMBERJACK_API_KEY,
|
key: 'test_key_1',
|
||||||
events: [
|
events: [
|
||||||
{
|
{
|
||||||
event_type: 'test_source',
|
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',
|
method: 'post',
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import analyticsService from '@razorpay/universe-utils/analytics';
|
||||||
export const initLumberjack = () => {
|
export const initLumberjack = () => {
|
||||||
analyticsService.init({
|
analyticsService.init({
|
||||||
lumberjackAppName: 'test_source',
|
lumberjackAppName: 'test_source',
|
||||||
lumberjackApiKey: window.LUMBERJACK_API_KEY,
|
lumberjackApiKey: 'test_key_1',
|
||||||
lumberjackApiUrl: "https://lumberjack.stage.razorpay.in/v1/track",
|
lumberjackApiUrl: "https://lumberjack.stage.razorpay.in/v1/track",
|
||||||
});
|
});
|
||||||
};
|
};
|
Loading…
Reference in New Issue