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 support for configuring sentry telemetry #188

Merged
merged 3 commits into from
Oct 3, 2023

Conversation

Pezmc
Copy link
Contributor

@Pezmc Pezmc commented Oct 3, 2023

Description

For FlowFuse/flowfuse#2862

FlowFuse expects config file in below format:

telemetry:
  enabled: true
  frontend:
    sentry:
      dsn: 'https://URL-HERE.com'
      production_mode: false
  backend:
    sentry:
      dsn:  'https://URL-HERE.com'

Related Issue(s)

FlowFuse/flowfuse#2862

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Backport needed? -> add the backport label
  • Includes a DB migration? -> add the area:migration label

@Pezmc Pezmc requested a review from hardillb October 3, 2023 10:36
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 10:36 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 10:36 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 10:36 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 10:38 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 10:41 — with GitHub Actions Inactive
@@ -43,6 +43,10 @@ forge:
posthog:
capture_pageview: false
apikey: phc_fdlksajfdfadfsafsaf
sentry:
production_mode: false
frontend_dsn: https://sentry.io/flowforge/flowforge-frontend
Copy link
Contributor Author

@Pezmc Pezmc Oct 3, 2023

Choose a reason for hiding this comment

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

This is just pure test data

@hardillb hardillb temporarily deployed to stage October 3, 2023 11:55 — with GitHub Actions Inactive
@hardillb hardillb temporarily deployed to stage October 3, 2023 11:55 — with GitHub Actions Inactive
@hardillb hardillb temporarily deployed to stage October 3, 2023 11:55 — with GitHub Actions Inactive
@hardillb hardillb temporarily deployed to stage October 3, 2023 11:57 — with GitHub Actions Inactive
@hardillb hardillb temporarily deployed to stage October 3, 2023 11:58 — with GitHub Actions Inactive
Copy link
Contributor

@hardillb hardillb left a comment

Choose a reason for hiding this comment

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

Since I've pushed fixes to the tests, I'll ask @ppawlowski to also review

helm/flowforge/README.md Outdated Show resolved Hide resolved
@@ -129,7 +129,7 @@ data:
http: info
telemetry:
enabled: {{ .Values.forge.telemetry.enabled }}
{{ if or (.Values.forge.telemetry.plausible) (.Values.forge.telemetry.posthog) }}
{{ if or (.Values.forge.telemetry.plausible) (.Values.forge.telemetry.posthog) (hasKey .Values.forge.telemetry.sentry "frontend_dsn") }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to check if or can apply to more than 2 values

@Pezmc Pezmc temporarily deployed to stage October 3, 2023 12:23 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 12:23 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 12:23 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 12:27 — with GitHub Actions Inactive
@Pezmc Pezmc temporarily deployed to stage October 3, 2023 12:29 — with GitHub Actions Inactive
@hardillb hardillb merged commit 8190f89 into main Oct 3, 2023
14 checks passed
@hardillb hardillb deleted the feat-add-sentry-telemetry branch October 3, 2023 15:09
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.

3 participants