Comments (2)
From discussion in the argo contributor meeting, we're going to try implementing this as an extension
from argo-cd.
We've implemented this using a UI extension. Happy to open source though it's a little unclear what the best way to do that is since it requires custom configuration on the rum sdk (and also optional configuration). Anyway here's the extension index.ts
we run:
import { datadogRum } from '@datadog/browser-rum';
async function setUser() {
const res = await fetch(`/api/v1/session/userinfo`)
if (res.status !== 200) {
throw new Error(`Failed to get user info: ${res.status}`);
}
const { username } = await res.json();
datadogRum.setUser({ id: username });
}
function initDDRum() {
datadogRum.init({
applicationId: '<application_id>',
clientToken: '<client_token>',
service: 'argocd',
traceSampleRate: 100,
telemetrySampleRate: 100,
sessionSampleRate: 100,
sessionReplaySampleRate: 100,
trackUserInteractions: true,
})
setUser().catch(e => console.warn('Failed to set user:', e));
}
initDDRum();
we build it with webpack into a dist file that gets installed to argocd.
from argo-cd.
Related Issues (20)
- Can't clone Git repository from a "dumb" server HOT 3
- ARGOCD UI - Applications Selector stays in the same place on window as you scroll
- Multi repo pull request generators
- Create new Inputs/Sources tab to replace Parameters tab so that all sources from a multi-source app are displayed
- argocd-server-tls continuously reloaded
- `ARGOCD_APP_REVISION_SHORT` not resolving HOT 1
- ArgoCD and Gcloud Workload Identity Improvements HOT 6
- ArgoCD generates irrelevant history records/sync results in monorepo setups during manual sync. HOT 2
- Add devcontainer.json for better UX for new contributors
- Templating issue with `valuesObject`: Failed to unmarshal "xxxxx.yaml": <nil> HOT 2
- jwtTokens are reset when creating new tokens for new role HOT 1
- ignoreApplicationDifferences supports labelSelectors
- Add CI check to require unit test coverage on new lines of code HOT 1
- make test-tools-image fails libssl.so.1.1 not found
- Applications that use a Config Management Plugin do not sync automatically
- bug: make build-docs broken
- bug: manually deleting an app from an appset does not trigger a recreate HOT 4
- "Waiting for healthy state"… HOT 1
- Sporadic error on abort action: application is not permitted to manage rollout
- Missing some css in v2.10.1 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argo-cd.