9f065a8835
EchoBackend: Make EchoSrvTransport batched ( #70012 )
...
Make EchoSrvTransport batched
With the update of faro web sdk to 1.1.0, batching was introduced, in
which several telemetry signals can be grouped together in a fixed
interval or buffer length. The current setup in which the
EchoSrvTransport was proxying signals through the Echo Backend was
yielding the following issue.
The updated Fetch transport is batched but the way it was being used by
the `GrafanaJavascriptAgentBackend` was pushing single items.
2023-06-14 13:18:28 +03:00
6a995d526a
Datasources: Extend optional reporting ( #69061 )
...
* feat: add default properties to the `reportInteraction()`
* chore: add more tracking events to the ds-config page
* refactor: adding the `path` to the `meta` instaed
2023-05-26 10:22:07 +02:00
29e4df6a33
Chore: Remove 'PerformanceBackend: flushing' log ( #67915 )
...
Remove 'PerformanceBackend: flushing' log
2023-05-05 14:46:53 +01:00
15d4169813
Frontend logging: Remove Sentry javascript agent support ( #67493 )
...
* remove Sentry
* fix sourcemap resolve
2023-05-02 12:10:56 +03:00
53186c14a4
Chore: Improve some types ( #64675 )
...
* some type fixes
* few more
* more type fixes
* fix the majority of (window as any) calls
* don't make new variable for event
* few more
* MOAR
2023-03-14 09:51:44 +00:00
523f675dd8
Update Monthly patch updates ( #64323 )
...
* Update Monthly patch updates
* don't update dangerously-set-html-content
* run prettier
* fix types
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-03-08 09:38:06 +00:00
d61bcdf4ca
Chore: Pass signed user_hash
to Intercom via Rudderstack ( #63921 )
...
* move analytics identifiers to backend
* implement hash function
* grab secret from env
* expose and retrieve intercom secret from config
* concat email with appUrl to ensure uniqueness
* revert to just using email
* Revert "revert to just using email"
This reverts commit 8f10f9b1bcb6da80c8002cd8e402217cf455634b.
* add docstring
2023-03-03 14:39:53 +00:00
d51e7ec7ef
Preferences: Add theme preference to match system theme ( #61986 )
...
* user essentials mob! 🔱
lastFile:pkg/api/preferences.go
* user essentials mob! 🔱
* user essentials mob! 🔱
lastFile:packages/grafana-data/src/types/config.ts
* user essentials mob! 🔱
lastFile:public/app/core/services/echo/utils.test.ts
* user essentials mob! 🔱
* user essentials mob! 🔱
lastFile:public/views/index-template.html
* user essentials mob! 🔱
* Restore currentUser.lightTheme for backwards compat
* fix types
* Apply suggestions from code review
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* cleanup
* cleanup
---------
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-01-30 10:51:51 +01:00
b0e886840d
Internationalization: Add language preference analytics ( #59230 )
...
* Report change languange
* clean defaults.ini
* Add language to rudderstand user identify call
* undo changes not intended
2022-11-28 07:11:55 -05:00
460be70261
Internationalization: Change locale preference to language ( #58359 )
...
* backend locale -> language
* frontend locale -> language
* sample.ini and tests
* fix few last locale -> language
* fix few last locale -> language
2022-11-22 12:18:34 +00:00
008c554d7f
Echo: Add config option to prevent duplicate page views for GA4 ( #57619 )
2022-11-09 15:09:19 +01:00
228ec4c0f3
Chore: Switch Grafana to using faro libraries ( #58186 )
2022-11-08 10:36:27 +01:00
d2a70bc42d
Chore: more any/type assertion improvements ( #57450 )
...
* more friday any/type assertion improvements
* Apply suggestions from code review
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
* Update public/app/angular/promiseToDigest.test.ts
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2022-10-25 11:04:35 +02:00
d52ab5de2e
EchoSrv: Remove $.ajax for loading scripts ( #56678 )
...
* user essentials mob! 🔱
lastFile:public/app/core/services/echo/backends/analytics/RudderstackBackend.ts
* user essentials mob! 🔱
lastFile:public/app/core/services/echo/backends/analytics/ApplicationInsightsBackend.ts
* user essentials mob! 🔱
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-10-11 11:11:23 +01:00
27f022283d
JS Agent: remove user email and add session id ( #55767 )
2022-09-27 08:59:32 -03:00
070d44802f
Chore: Type Rudderstack and AppInsights window APIs ( #55162 )
...
* Chore: Type Rudderstack and AppInsights window APIs
* remove rudder sdk to dev deps
2022-09-20 10:06:31 -04:00
d014a3a09b
Echo: Add support for Google Analytics 4 ( #55446 )
...
* user essentials mob! 🔱
lastFile:public/app/core/services/echo/backends/analytics/GA4Backend.ts
* user essentials mob! 🔱
* user essentials mob! 🔱
lastFile:public/app/core/services/echo/backends/analytics/GA4Backend.ts
* user essentials mob! 🔱
lastFile:public/app/core/services/echo/backends/analytics/GA4Backend.ts
* user essentials mob! 🔱
lastFile:public/app/app.ts
* user essentials mob! 🔱
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Leodegario Pasakdal <leodegario.pasakdal@grafana.com>
2022-09-20 03:13:14 -07:00
9dd4eab553
ignore non-actionable errors in grafana agent ( #54824 )
2022-09-08 16:19:38 +03:00
38c690ecb0
Revert "Analytics: Use Fullstory to get behavioral data ( #53732 )" ( #53762 )
...
This reverts commit 961479b1115d39f3918b60c49a48841916939f03.
2022-08-16 12:45:14 +02:00
961479b111
Analytics: Use Fullstory to get behavioral data ( #53732 )
2022-08-16 10:32:00 +02:00
fecf4c41ad
Dashboard: Spelling corrections in end-user visible dialogs ( #53340 )
2022-08-09 10:19:30 +02:00
f1295e4bd0
Chore: Update version of @grafana/eslint-config
( #53403 )
...
* use let/const over var
* use new version of @grafana/eslint-config
2022-08-08 15:19:15 +01:00
290b2e1ed0
Update grafana monorepo to v0.4.0 ( #52805 )
...
* Update grafana monorepo to v0.4.0
* update mock
* actually mock...
* typescript is hard...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-07-27 09:21:13 +01:00
7c886fb6f9
Frontend Logging: Integrate grafana javascript agent ( #50801 )
...
Add Grafana Javascript Agent integration to Grafana
2022-06-28 03:25:30 -04:00
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
1b27e55e5a
Analytics: Identify users to Rudderstack by externalUserId where available ( #47325 )
...
* wip
* tests
* move util, fix test
* fixes
* Update public/app/core/services/echo/utils.ts
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2022-04-05 17:41:22 +02:00
dd2a952c29
Update sentry-javascript monorepo to v6.19.1 ( #46799 )
...
* Update sentry-javascript monorepo to v6.19.1
* fix breaking change
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Domas <domasx2@gmail.com>
2022-03-22 16:06:53 +01:00
378ce15418
Stub console.warn ( #45311 )
2022-02-11 14:56:25 +00:00
d87cd6f26c
Update dependency prettier to v2.5.1 ( #43473 )
...
* Update dependency prettier to v2.5.1
* prettier fixes
* chore(toolkit): bump prettier to 2.5.1
* style(eslint): bump grafana config to 2.5.2 in core and toolkit
* style(mssql-datasource): fix no-inferrable-types eslint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-02 12:02:32 +00:00
793e3d3556
Update sentry-javascript monorepo to v6.17.2 ( #44364 )
...
* Update sentry-javascript monorepo to v6.17.2
* update Sentry transport impl to be compat with latest sentry
* kick drone
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Domas <domasx2@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-01-31 16:51:09 +00:00
99cdb56f72
Analytics: add experimentview events ( #44120 )
...
* Analytics: add experimentview event
* remove ref to feature-highlights
* Experimentview -> ExperimentView
2022-01-19 11:07:18 +01:00
34f757ba5a
switch to using featureEnabled for enterprise features ( #41559 )
...
* switch to using featureEnabled for enterprise features
2022-01-07 15:11:23 -05:00
4d5e39abff
Analytics: Add user id tracking to google analytics ( #42763 )
2021-12-06 16:34:19 +01:00
eab0ba8716
Analytics: RudderStack custom URLs to fetch SDK and Config ( #41988 )
...
* Add config options to provide custom URL to fetch Rudderstack SDK and Config
* Add new entries to defaults.ini
* Update docs
2021-12-06 09:42:29 -05:00
0ab4afa2b7
Update sentry-javascript monorepo to v6 ( #41991 )
...
* Update sentry-javascript monorepo to v6
* Pass fetch implementation to FetchTransport and stub in unit tests
* kick drone
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-11-23 15:59:32 +00:00
a531c6e26f
frontend logging fixes ( #39946 )
2021-10-18 14:34:31 +03:00
03804fb4b9
Bump @sentry/utils from 5.24.2 to 6.13.2 ( #39932 )
...
* Bump @sentry/utils from 5.24.2 to 6.13.2
Bumps [@sentry/utils](https://github.com/getsentry/sentry-javascript ) from 5.24.2 to 6.13.2.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.24.2...6.13.2 )
---
updated-dependencies:
- dependency-name: "@sentry/utils"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Chore: fix type checks by updating buffer.add to add a function instead of a promise
* kick drone
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2021-10-04 15:43:23 +01:00
db8c9122aa
add support for interaction events ( #39752 )
2021-09-29 10:41:16 +02:00
9d3f4f5983
Analytics: Instrument Azure Application Insights ( #38553 )
...
* add backend
* read config and pass to backend
* update config docs
* change var name
* use connection string instead of instrumentation key
* add config for endpoint url. update docs
* update default ini
* add spaces
* remove space
* Update docs/sources/administration/configuration.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update conf/defaults.ini
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update conf/defaults.ini
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-09-15 13:00:38 +02:00
c0d6fc0255
avoid duplicate log in development environment ( #36609 )
...
avoid logging performance metrics in production environment
2021-08-18 19:45:54 +02:00
421f5040ec
User analytics: Use user email as Rudderstack id ( #36788 )
2021-07-15 12:28:13 +02:00
663a8935f7
User analytics: Add Rudderstack integration ( #36567 )
...
* Replace analytics service with Echo backend
* Add Rudderstack integration and general pageview and interaction Echo events
* Update conf/defaults.ini
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update packages/grafana-runtime/src/types/analytics.ts
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update conf/defaults.ini
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update tests
* Force cla check
Co-authored-by: Dan Cech <dcech@grafana.com>
2021-07-09 11:45:25 +02:00
d42a5b2561
FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus ( #32593 )
...
* FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus
* FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus
* Fix naming
* change to histogram
* Fixed go lint
2021-04-01 20:04:02 +02:00
56ef7c4a4c
DataSourceSettings: Adds info box and link to Grafana Cloud ( #30891 )
...
* Updated
* DataSourceSettings: Adds info box and link to Grafana Cloud
* Updated wording
* Less words
* use variables
* Fixing ts issues
* fixed import
2021-02-04 11:12:20 +01:00
1d689888b0
Prettier: Upgrade to 2 ( #30387 )
...
* Updated package json but not updated source files
* Update eslint plugin
* updated files
2021-01-20 07:59:48 +01:00
7d9a528184
Logging: rate limit fronted logging endpoint ( #29272 )
...
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2020-12-09 16:22:24 +01:00
56db402d0f
Chore: Upgrade typescript to 4.1 ( #29493 )
...
* Chore: Upgrade typescript to 4.1
2020-12-03 15:05:59 +00:00
76df096791
Logging: Log frontend errors ( #28073 )
...
* basic frontend Sentry integration
* backend endpoint to capture sentry events
* WIP!
* log user email for frontend logs
* remove debug logging
* lint fixes
* Fix type exports & property names
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* additional struct naming fix
* rename log endpoint, config section & interface
* add sentry sample rate to config
* refac to use EchoSrv
* log user id
* backend tests
* tests for SentryEchoBackend
* sentry echo backend tests
* CustomEndpointTransport tests
* Update pkg/api/frontend_logging_test.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update conf/defaults.ini
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/api/frontend_logging_test.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* don't export unnecesasrily
* update go.sum
* get rid of Convey in tests, use stdlib
* add sentry config to sample.ini
* cleanup to set orig logging handler in test
* Apply suggestions from code review
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* PR feedback changes
* lock sentry version
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-12 12:29:43 +01:00
1391575853
Chore: Removes some unneeded console logging and changes logs to errors ( #26235 )
2020-07-10 15:07:04 +01:00
f48169633c
TSLint → ESLint ( #21006 )
...
* Alphabetized tslint and tsconfig files
* Optimized tsconfig files
* Optimized editorconfig & prettier config files
… to reduce redundancy
* Switched to @grafana/tsconfig
… and:
* de-duped options
* removed options with default values
* Fixed nasty issue with types for nested slate-react
* Replaced TSLint with ESLint
* TSLint disables → ESLint disables
… also JSHint removals, which haven’t had an affect since it was replaced with TSLint.
* Compliances for ESLint, Prettier and TypeScript
* Updated lockfile
2020-02-08 02:40:04 +01:00