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

feat: add server name to sentry init #217

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

panuhorsmalahti
Copy link
Contributor

@panuhorsmalahti panuhorsmalahti requested review from jakolehm and a team June 25, 2024 09:55
@@ -35,4 +38,4 @@ process.once("SIGINT", () => {
process.exit(0);
});

server.start(serverPort, agentToken, idpPublicKey);
server.start(serverPort, agentToken, idpPublicKey, tunnelAddress);
Copy link

Choose a reason for hiding this comment

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

is the tunnelAddress added to the server.start function or did I miss something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was already there as optional parameter

if (process.env.SENTRY_DSN) {
enabled = true;
Sentry.init({
dsn: process.env.SENTRY_DSN
dsn: process.env.SENTRY_DSN,
serverName: tunnelAddress
Copy link

Choose a reason for hiding this comment

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

You could use the process.env.TUNNEL_ADDRESS straight here as this already looks for the process.env

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to use single source of truth for tunnelAddress

@panuhorsmalahti panuhorsmalahti merged commit 0f89d88 into main Jun 25, 2024
1 check passed
@panuhorsmalahti panuhorsmalahti deleted the sentry-server-name branch June 25, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants