Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update sentry and google analytics configuration #6251

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { writeJsonFile } from "@ignored/hardhat-vnext-utils/fs";
import { postJsonRequest } from "@ignored/hardhat-vnext-utils/request";

// These keys are expected to be public
// TODO: replace with prod values
const ANALYTICS_URL = "https://www.google-analytics.com/mp/collect";
const API_SECRET = "iXzTRik5RhahYpgiatSv1w";
const MEASUREMENT_ID = "G-ZFZWHGZ64H";
// const API_SECRET = "iXzTRik5RhahYpgiatSv1w"; // DEV
// const MEASUREMENT_ID = "G-ZFZWHGZ64H"; // DEV
const API_SECRET = "fQ5joCsDRTOp55wX8a2cVw"; // PROD
const MEASUREMENT_ID = "G-8LQ007N2QJ"; // PROD
Comment on lines +10 to +11
Copy link
Member Author

@galargh galargh Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These credentials are for the Hardhat Cli - GA4 stream (the same as Hardhat 2 CLI).


const payload = JSON.parse(process.argv[2]);

Expand Down
5 changes: 2 additions & 3 deletions v-next/hardhat/src/internal/cli/telemetry/sentry/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ import { getSubprocessTransport } from "./transport.js";

const log = debug("hardhat:cli:telemetry:sentry:reporter");

// TODO: replace with PROD version
// export const SENTRY_DSN =
// "https://38ba58bb85fa409e9bb7f50d2c419bc2@o385026.ingest.sentry.io/522486955555555555";
// "https://d578a176729662a28e7a8da268d36912@o385026.ingest.us.sentry.io/4507685793103872"; // DEV
export const SENTRY_DSN =
"https://d578a176729662a28e7a8da268d36912@o385026.ingest.us.sentry.io/4507685793103872"; // DEV
"https://572b03708e298427cc72fc26dac1e8b2@o385026.ingest.us.sentry.io/4508780138856448"; // PROD
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These credentials are for the hardhat3 project.


export async function sendErrorTelemetry(
error: Error,
Expand Down
Loading