Skip to content

[MM-51269] Log errors from telemetry events - #653

Merged
hanzei merged 2 commits into
masterfrom
MM-51269_telemetry-error
Mar 23, 2023
Merged

[MM-51269] Log errors from telemetry events#653
hanzei merged 2 commits into
masterfrom
MM-51269_telemetry-error

Conversation

@hanzei

@hanzei hanzei commented Mar 9, 2023

Copy link
Copy Markdown
Contributor

Summary

Previously errors returned from the telemetry tracker didn't get logged. This PR adds proper log messages for all errors the telemetry tracker returns.

Ticket Link

https://mattermost.atlassian.net/browse/MM-51269m

@hanzei hanzei added the 2: Dev Review Requires review by a core committer label Mar 9, 2023
@hanzei hanzei added this to the v2.2.0 milestone Mar 9, 2023
@hanzei
hanzei requested a review from m1lt0n March 9, 2023 09:34
@codecov-commenter

codecov-commenter commented Mar 9, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (39a2a70) 15.62% compared to head (b988cd7) 15.60%.

❗ Current head b988cd7 differs from pull request most recent head 9f1a3e2. Consider uploading reports for the commit 9f1a3e2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #653      +/-   ##
==========================================
- Coverage   15.62%   15.60%   -0.02%     
==========================================
  Files          15       15              
  Lines        5447     5452       +5     
==========================================
  Hits          851      851              
- Misses       4553     4558       +5     
  Partials       43       43              
Impacted Files Coverage Δ
server/plugin/telemetry.go 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Mar 21, 2023
@hanzei
hanzei merged commit cbd2e76 into master Mar 23, 2023
@hanzei
hanzei deleted the MM-51269_telemetry-error branch March 23, 2023 08:19
trilopin added a commit that referenced this pull request Mar 23, 2023
* master:
  [MM-51269] Log errors from telemetry events (#653)
  [MM-51245] Handle relative paths in permalinks (#656)
@trilopin trilopin mentioned this pull request Mar 23, 2023
mickmister added a commit that referenced this pull request Mar 27, 2023
* disable cgo

* bump version 2.1.5

* Bump version to 2.1.5

* [MM-51245] Handle relative paths in permalinks (#656)

* [MM-51269] Log errors from telemetry events (#653)

* keep telemetry init together and do the enable/disable thing (#659)

It places telemetry client and tracker initialization together at onActivate and uses the new enable/disable commands at onConfigurationChange.

Also, pass a logger to the telemetry tracker when ServiceSettings.EnableDeveloper is true (through NewTelemetryTracker), which will end up logging the telemetry activity (no matter if the tracking config or client is disabled). This is still 2/5 until backwards-compatibility details are discussed.

Added event account_connected when we have an oauth successful connection (through setup or plain connect).

* run ci on release branches

* remove check for release branch

* add nvmrc

* add cd workflow

---------

Co-authored-by: Pantelis Vratsalis <pvratsalis@gmail.com>
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: José Peso <trilopin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4: Reviews Complete All reviewers have approved the pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants