Skip to content
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

0.9.0 not sending telemetry information #192

Closed
mattseddon opened this issue Nov 19, 2023 · 9 comments
Closed

0.9.0 not sending telemetry information #192

mattseddon opened this issue Nov 19, 2023 · 9 comments
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority info-needed Issue requires more information from poster

Comments

@mattseddon
Copy link

Thank you for the great package. We've been using it for a long time in vscode-dvc.

Last week shipped a version of the extension with 0.9.0 of @vscode/extension-telemetry included. As you can see from the below graph, we have experienced a significant drop off in activity since we shipped the update:

image

I have manually verified that there is an issue by installing the extension and triggering events. There were no issues in the extension telemetry output channel. However, no data is being received/recorded in Azure app insights for that session.

Please LMK if I have done something wrong and there is further config required to upgrade from 0.8.5 to 0.9.0.

Thanks

@lramos15 lramos15 added bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority labels Nov 20, 2023
@lramos15
Copy link
Member

Will take a look, we made a larger change in 0.9 to reduce bundle size, but maybe that somehow messed up the sending. I will investigate further and see what might be happening here 👍

@lramos15
Copy link
Member

I just tried out a test extension I have with 0.9.0 and I receive events. I've not needed to do anything to upgrade, the extension was previously using 0.8.5

@mattseddon
Copy link
Author

@lramos15 could this have anything to do with sending custom properties with events? Nearly all of our events contain custom properties.

After reverting to 0.8.5 we've seen an uptick:

image

@lramos15
Copy link
Member

@lramos15 could this have anything to do with sending custom properties with events? Nearly all of our events contain custom properties.

Not sure I follow? Could you share an example telemetry call with this custom properties

@mattseddon
Copy link
Author

Not sure I follow?

I was wondering whether or not you sent properties: TelemetryEventProperties and/or measurements: TelemetryEventMeasurements when you tried out the test extension.

One example of a call to our sendTelemetryEvent function is below:

        sendTelemetryEvent(
          EventName.EXTENSION_LOAD,
          {
                cliAccessible: this.cliAccessible,
                dvcPathUsed: !!this.config.getCliPath(),
                dvcRootCount: this.getRoots().length,
                msPythonInstalled: this.config.isPythonExtensionInstalled(),
                msPythonUsed: await this.isPythonExtensionUsed(),
                pythonPathUsed: !!this.config.getPythonBinPath(),
                workspaceFolderCount: getWorkspaceFolderCount()
          },
          { duration: stopWatch.getElapsedTime() }
        )

the function sendTelemetryEvent sanitises the inputs and then calls the reporter like this:

  reporter.sendTelemetryEvent(
    eventName as string,
    { ...sanitizedProperties, user_id: getUserId() },
    measurements
  )

The code can be found here: https://github.com/iterative/vscode-dvc/blob/main/extension/src/telemetry/index.ts#L75

@lramos15
Copy link
Member

lramos15 commented Dec 7, 2023

Still trying to repro this but I am sending both properties and measurements without issue.

@lramos15 lramos15 added the info-needed Issue requires more information from poster label Dec 7, 2023
@lramos15
Copy link
Member

lramos15 commented Dec 12, 2023

@mattseddon Can you reproduce with a basic hello world extension sample that just has telemetry?

@lramos15
Copy link
Member

Will close the issue as stale for now as I cannot reproduce but if you have an easy repro I would love to get this fixed for you

@lramos15 lramos15 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
@mattseddon
Copy link
Author

No worries, I don't have time to try and set one up. The extension that I was working on can stay on the old version. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants