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

fix(dynamic-plugins): use segment as a dynamic plugin #812

Merged
merged 1 commit into from
Nov 24, 2023
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
6 changes: 6 additions & 0 deletions .changeset/new-adults-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'dynamic-plugins-imports': patch
'app': patch
---

Consume segment plugin as a dynamic plugin
3 changes: 3 additions & 0 deletions app-config.dynamic-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -393,3 +393,6 @@ dynamicPlugins:
props:
width: 1500
height: 800
janus-idp.backstage-plugin-analytics-provider-segment:
apiFactories:
- importName: SegmentAnalyticsApi
14 changes: 14 additions & 0 deletions dynamic-plugins.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -740,3 +740,17 @@ plugins:
props:
width: 1500
height: 800
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-analytics-provider-segment
disabled: true
pluginConfig:
dynamicPlugins:
frontend:
janus-idp.backstage-plugin-analytics-provider-segment:
apiFactories:
- importName: SegmentAnalyticsApi
app:
analytics:
segment:
writeKey: ${SEGMENT_WRITE_KEY}
maskIP: ${SEGMENT_MASK_IP} # prevents IP addresses from being sent if true
testMode: ${SEGMENT_TEST_MODE} # prevents data from being sent if true
1 change: 1 addition & 0 deletions dynamic-plugins/imports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@janus-idp/backstage-plugin-3scale-backend": "1.3.6",
"@janus-idp/backstage-plugin-aap-backend": "1.4.4",
"@janus-idp/backstage-plugin-acr": "1.2.4",
"@janus-idp/backstage-plugin-analytics-provider-segment": "1.2.0",
"@janus-idp/backstage-plugin-jfrog-artifactory": "1.2.4",
"@janus-idp/backstage-plugin-keycloak-backend": "1.7.6",
"@janus-idp/backstage-plugin-nexus-repository-manager": "1.4.4",
Expand Down
Loading