Skip to content

Commit

Permalink
chore: update metrics service url
Browse files Browse the repository at this point in the history
  • Loading branch information
MoumitaM committed Jul 18, 2024
1 parent 017be47 commit 5ee27fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ describe('Plugin - ErrorReporting', () => {
});

it('should invoke the error reporting provider plugin on notify', () => {
state.lifecycle = {
activeDataplaneUrl: signal('https://test.com'),
writeKey: signal('sample-write-key'),
};
const mockHttpClient = {
getAsyncData: jest.fn(),
setAuthHeader: jest.fn(),
Expand Down
3 changes: 1 addition & 2 deletions packages/analytics-js-plugins/src/errorReporting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ const ErrorReporting = (): ExtensionPlugin => ({

// send it to metrics service
httpClient?.getAsyncData({
url: `https://sdk-metrics.rudderstack.com/sdkmetrics`,
// url: `${state.lifecycle.dataPlaneUrl.value}/sdk-metrics`,
url: `${state.lifecycle.activeDataplaneUrl.value}/rsaMetrics`,
options: {
method: 'POST',
data: getErrorDeliveryPayload(bugsnagPayload, state),
Expand Down

0 comments on commit 5ee27fc

Please sign in to comment.