-
Notifications
You must be signed in to change notification settings - Fork 209
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(frontend-analytics): Segment frontend tracking #154
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 3fcab80. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
arielweinberger
requested changes
Aug 2, 2023
arielweinberger
approved these changes
Aug 2, 2023
arielweinberger
added a commit
that referenced
this pull request
Aug 8, 2023
* feat(examples): add example project to monorepo (#111) * feat: add example project to monorepo * fix: formatting * remove build stage from example * temp: json editor view (#112) * feat(server): opensearch reporting (#113) * feat(server): implement reporting logic * feat: add opensearch to docker-compose * feat(server): add observability server types (#115) * add types * remove logs * add types * fix formatting * feat(server): opensearch module, index creation and reporting (#117) * feat(server): implement reporting logic * feat: add opensearch to docker-compose * feat(sever): split logger creation to a simple function to allow non-dependecy-injection usage * feat(server): opensearch module with index creation * feat(server): report executions to opensearch using module * feat(readme): update to include OpenSearch * feat(server): use enum to define os indexes * fix(server): graphql schema generation when offline * better description * feat(server): add observability graphql resolver (#116) * remove unused imports * add buildRequestReport util & add logs * feat: add graphql types * feat: add graphql types * add basic validation * improve code readability * fix build & format * feat: opensearch metrics, remove influxdb from stack (#118) * feat(server): remove influxdb for metrics, use opensearch instead * feat(console): adjust metrics view to be compatible with opensearch --------- Co-authored-by: Itay Elgazar <[email protected]> * fix: graphql codegen dependency * fix(examples): build * chore(server): remove default opensearch value from .env * feat(server): opesnearch optional AWS auth + healthcheck (#119) * chore(server): add default opensearch url to .env * feat(console): add observability to console (#114) * fix: sync versions * update versions and remove redundant code * add logs and open sidebar by default * fix breadcrumbs & add overview page copy content * fix formatting * navigate to overview page on project click * remove collapsed unused state * fix: move hardcoded colors to be used from the themeConfig * fix current menu item selection * add requests table * add client types * enable new pezzo client * fix pezzo client, indexes creation, reporting service * implement basic pagination * add pagination * standardize pagination * enable strictNullChecks * add a new pezzo lib (@pezzo/typings) * feat: add filters and sort (#120) * feat: add filters and sort * another approach to field validation * pr review fixes * fix formatting --------- Co-authored-by: 120axuz <[email protected]> Co-authored-by: 120axuz <[email protected]> * feat(console): add request details inspect & new prompt playground view (#124) * fix: sync versions * add logs and open sidebar by default * fix breadcrumbs & add overview page copy content * fix formatting * navigate to overview page on project click * remove collapsed unused state * fix: move hardcoded colors to be used from the themeConfig * fix current menu item selection * add requests table * add client types * enable new pezzo client * fix pezzo client, indexes creation, reporting service * implement basic pagination * add pagination * standardize pagination * enable strictNullChecks * add a new pezzo lib (@pezzo/typings) * feat(console): add inspect * fix pezzo client & remove console.logs * Add new prompt editor view * fix some bugs * remove history page * remove console.log * chore: address comments * address comments * remove comments * fix failing build * remove gql from cache * fix build * fix build * format * feat(server): promptVersion content to settings migration (#126) * default select mode to json in the case of error * fix: better error handling in client, server and logger (#127) * fix: better error handling in client, server and logger * fix formatting * chore(client): rename OpenAi to OpenAI for consistency * chore(console): rename OpenAi to OpenAI * fix formatting * chore(readme): add postgresql to list of dependencies * feat(console): getting started wizard (#128) * feat(console): getting started wizard * address comments * feat: remove provider from prompt model (#129) * feat: remove prompt provider/integration * fix formatting * delete unused prompt-tester.service.ts * feat: deprecate `@pezzo/integrations` lib (#130) * chore(integrations): add deprecation notice * chore(integrations): deprecate library * chore(@pezzo/client): add properties and merge metadata when sending a report (#132) * fix formatting * feat: delete environment (#136) * added delete button for environments * removed the set from server.json * feat: delete environments * fix formatting * fix(console): add error handling in env deletion modal * cleanup --------- Co-authored-by: yehonatanyosefi <[email protected]> * chore(docker-compose): change port from 5432 to 5433 to avoid local postgres conflict (#137) * chore(change-local-pg-port): change port from 5432 to 5433 to avoid local pg conflict * chore(change-local-pg-port): change port from 5432 to 5433 to avoid local pg conflict - prod file * feat: provider agnostic prompts (#139) * feat(server): db migration to new structure * move type from promptVersion to prompt * define type at prompt level * wip * wip * wip - split content and settings * feat: split useQuery logic to hooks/queries file * better type safety * feat: prompt variables render * remove margin * codegen into pezzo client * add .next to prettierignore * feat(console): provider selector with settings renderer * chore(server): reoder prisma models * feat(client): working base with new providers setup * cleanup * adjust types and fix pezzo client * remove temporary test script * fix(example): make functional with new setup * fix: formatting * Prompt functions basic (#138) * feat(functions): basic functions modal * feat(functions): basic functions functionality * feat(functions): basic functions feature flag * feat(functions): edit functions button in settings form * feat(functions): basic dark theme * feat(functions): basic form layout * feat(functions): merge fix * feat(functions): adapt functions to new agnostic provider * fix(types-break): temp fix types files (#140) * feat(azure-provider): add azure provider to settings (#142) * feat(server): add "service" column to PromptVersion (#143) * feat(server): provider column for PromptVersion * wip - select a single service type * remove console logs * fix formatting * reset settings when switching services * chore(chat-prompt): change to coming soon (#141) * fix(open-ai-functions): set as undefined if no functions set (#145) * chore(docker-compose): remove unused kafka services * feat: Pezzo OpenAI reporting (with and without prompt management) (#150) * feat: add filter buttons in UI * make things great again * feat: finalize filters * fix build & add loading state * fix: debugger attachment for example app * feat: reporting in PezzoOpenAI * rename "latency" to "duration" * functioning reporting without managing prompt * simplify types * remove comments in launch.json * feat(console): filter by properties, display properties in Request Details drawer (#148) * feat(console): filter by properties * feat(console): display properties in Request Details drawer --------- Co-authored-by: 120axuz <[email protected]> Co-authored-by: Itay Elgazar <[email protected]> * feat(console): add a tooltip that explains how to use variables * fix(console): remove redundant popover * feat(console): temporarily disable provider API keys * feat(console): auto width for timestamp in requests page * feat(console): add more details to version selector (message, name) * chore(multiple-providers): coming soon select (#151) * chore(multiple-providers): coming soon select * Update libs/types/src/provider.types.ts Co-authored-by: Ariel Weinberger <[email protected]> * Update libs/types/src/provider.types.ts Co-authored-by: Ariel Weinberger <[email protected]> --------- Co-authored-by: Ariel Weinberger <[email protected]> * chore(console): simple onboarding flow (#152) * chore(simple onboarding): remove overview from nav * chore(simple onboarding): basic consume instructions * chore(simple onboarding): api key in instructions * feat(console): correct docs link, render variables * chore(console): rename "Consume" to "How to Consume" --------- Co-authored-by: Ariel Weinberger <[email protected]> * feat(frontend-analytics): Segment frontend tracking (#154) * feat(frontend-analytics): init - by userid * feat(frontend-analytics): init - with groupId by organizationId * feat(frontend-analytics): format fix * feat(frontend-analytics): analytics with analytics lib * feat(frontend-analytics): context props * feat(frontend-analytics): temp folder * feat(frontend-analytics): naming convention * feat: prompt tester (#155) * feat: prompt tester * feat(consoel): add "test" label for test prompts in Requests view * feat(server): analytics for reporting use API key from config * fix formatting * fix linting error * revert events change * fix error handling * attempt to fix ci error * feat(examples): replace task generator app with simple demo app * fix formatting * fix: minor UI fixes * feat(server-analytics): add context to events (#156) * feat(server-analytics): remove analytics from supertokens service * feat(server-analytics): basic analytics with context * feat(server-analytics): migrating old events to new format * fix typos ahead of relesae * add reflect-metadata to pezzo client * wip: docs tutorial * chore(nx): upgrade to version 16 (#158) * chore(nx): upgrade to version 16.6 * fix formatting * remove pezzo-private submodule * remove pezzo-private * temporarily remove sample app * remove pezzo-private trigger * chore(nx): change @nrwl to @nx, update to v16 (#159) * chore(nx): change @nrwl to @nx, update to v16 * delete redundant files * fix dependencies * update lockfile * nx migrate * new package lock * chore(ci): runs on ubuntu 22 * fix formatting * update prisma version * fix formatting * temporarily disable request_reported analytic * disable analytics events for all HTTP methods * chore(client): use rollup to bundle dependencies (#160) * chore(client): use rollup to bundle dependencies * fix formatting * chore(client): remove axios for fetch * turn on @nx/dependency-checks for client * feat(client): allow override of server URL with env variable * fix formatting * chore(client): use cross-fetch to allow both node and browsers * chore: frontend events (#157) * feat(frontend-analytics): prompt events * feat(frontend-analytics): identify once * feat(frontend-analytics): provider select event * feat(frontend-analytics): prompts page events * feat(frontend-analytics): requests page events * feat(frontend-analytics): environments page events * feat(frontend-analytics): projects page events * feat(frontend-analytics): organization page events * feat(frontend-analytics): finalizing events * Update apps/console/src/app/components/api-keys/PezzoApiKeyListItem.tsx * Update apps/console/src/app/components/prompts/editor/ProviderSelector/ProviderSelector.tsx * Update apps/console/src/app/pages/environments/EnvironmentsPage.tsx * Update apps/console/src/app/components/prompts/views/PromptEditView.tsx * Update apps/console/src/app/components/projects/ProjectCard.tsx * Update apps/console/src/app/pages/organizations/MembersView.tsx * Update apps/console/src/app/pages/prompts/PromptsPage.tsx * Update apps/console/src/app/pages/projects/ProjectsPage.tsx * Update apps/console/src/app/pages/requests/RequestsPage.tsx * Update apps/console/src/app/components/prompts/views/MetricsView.tsx * chore(console-analytics): past tense events * fix more event names --------- Co-authored-by: Ariel Weinberger <[email protected]> Co-authored-by: Ariel Weinberger <[email protected]> * chore(navbar-docs-link): add docs link to navbar (#162) * feat(docs): tutorials * fix(server-events): REST event context (#161) * fix(server-events): add org or anonymous userId if non exists * fix(server-events): event context using cls * fix(server-events): event context using cls, orgId * fix(server-events): add removed events --------- Co-authored-by: Itay Elgazar <[email protected]> Co-authored-by: 120axuz <[email protected]> Co-authored-by: 120axuz <[email protected]> Co-authored-by: yehonatanyosefi <[email protected]> Co-authored-by: Eylon Mizrahi <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.