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

Add OTEL to taxes app #1164

Merged
merged 6 commits into from
Jan 11, 2024
Merged

Add OTEL to taxes app #1164

merged 6 commits into from
Jan 11, 2024

Conversation

lkostrowski
Copy link
Member

@lkostrowski lkostrowski commented Jan 10, 2024

Scope of the PR

  • extracted shared logger based on tslog pacage
  • transports for sentry and otel
  • otel implemented in Taxes app

Related issues

Checklist

Copy link

vercel bot commented Jan 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saleor-app-products-feed 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 2:02pm
saleor-app-taxes ✅ Ready (Inspect) Visit Preview Jan 11, 2024 2:02pm
9 Ignored Deployments
Name Status Preview Comments Updated (UTC)
saleor-app-cms-v2 ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-crm ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-data-importer ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-emails-and-messages ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-invoices ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-klaviyo ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-search ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-segment ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm
saleor-app-slack ⬜️ Ignored (Inspect) Visit Preview Jan 11, 2024 2:02pm

Copy link

changeset-bot bot commented Jan 10, 2024

🦋 Changeset detected

Latest commit: 128c24c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
saleor-app-taxes Minor
@saleor/apps-logger Major
saleor-app-cms-v2 Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lkostrowski lkostrowski marked this pull request as ready for review January 10, 2024 21:11
@lkostrowski lkostrowski requested a review from a team January 10, 2024 21:11
@lkostrowski
Copy link
Member Author

@saleor/delivery-engineering-js fyi

APP_API_BASE_URL=_PATTERN=
Copy link
Member

Choose a reason for hiding this comment

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

is everything okay with this var?

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch

argumentsArrayName: "payload",
minLevel: parseInt(process.env.NEW_APP_LOG_LEVEL ?? "3", 10),
});
logger.settings.maskValuesOfKeys = ["metadata", "username", "password", "apiKey"];
Copy link
Member

Choose a reason for hiding this comment

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

question: If this logger is imported from a shared package, won't that cause interference that we change a global value?

Copy link
Member Author

Choose a reason for hiding this comment

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

each app is built separately so this code is never executed for other apps

@lkostrowski lkostrowski merged commit 0849d8e into main Jan 11, 2024
18 of 19 checks passed
@lkostrowski lkostrowski deleted the otel-for-taxes branch January 11, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants