-
Notifications
You must be signed in to change notification settings - Fork 8
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: add telemetry #272
feat: add telemetry #272
Changes from 1 commit
22cddcf
15a8f25
bf6a8ac
1e914bb
25080f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { useState } from 'react'; | ||
|
||
import useSharedHook from '../lib/client/createSharedHook'; | ||
|
||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const [useTelemetry, setTelemetry] = useSharedHook(useState, null); | ||
|
||
export { useTelemetry, setTelemetry }; | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,3 +157,5 @@ export interface IssueDataViewInput { | |
// isRootIssueLoading: boolean; | ||
// isPendingChildrenLoading: boolean; | ||
} | ||
|
||
export type BrowserMetricsProvider = import('@ipfs-shipyard/ignite-metrics').BrowserMetricsProvider | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. safely getting the type here since importing it is sketchy with nextjs while this package is still cjs. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
"@emotion/react": "^11.10.4", | ||
"@emotion/styled": "^11.10.4", | ||
"@hookstate/core": "^4.0.0-rc21", | ||
"@ipfs-shipyard/ignite-metrics": "https://github.com/ipfs-shipyard/ignite-metrics#feat/useStorageForBrowsers-with-dist", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will update when ipfs-shipyard/ignite-metrics#64 is merged and new ignite-metrics is released |
||
"@octokit/core": "^4.0.0", | ||
"@octokit/graphql-schema": "^12.9.1", | ||
"@octokit/plugin-retry": "^3.0.9", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be able to use telemetry object from anywhere.