question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add telemetry query at start-up time

See original GitHub issue

We would like to start gathering telemetry on the usage of adapters like django-cockroachdb so that we have some notion of their popularity.

To support this, please add the following query at app start-up time:

SELECT crdb_internal.increment_feature_counter('Django %d.%d')

where the placeholders are the major and minor Django version numbers.

A couple additional details here:

  • Ideally the query should be executed once at start-up time. In ActiveRecord we accomplished this by executing the query when the connection pool is initialized but there may be a better spot in Django.
  • Depending on the CockroachDB version, the increment_feature_counter built-in may or may not be defined. (We added it in v21.1.) So we should ensure that an error is not bubbled up to the user if the query fails.
  • We would like to execute this query by default, but please also add a setting which allows the user to disable it. (In ActiveRecord we called this disable_cockroachdb_telemetry.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rafisscommented, May 20, 2021

@vy-ton the hashes are sha256 checksums. they can be found with these commands:

❯ echo 'Django 3.0' | sha256sum
14adb292d2b5f51da817153fa061474f7b9345a55c583bcacfd01e5272e6220e  -
❯ echo 'Django 3.1' | sha256sum
ae10f0770e238b33a8c0ddb1bb6f3b54b3c488dde060ad1cab0aec90ac057fd0  -
❯ echo 'Django 3.2' | sha256sum
f2fce0d91eaf91914068e3f64578fca19b049ec29a5966992fb1977d469877c9  -
0reactions
timgrahamcommented, May 18, 2021

I’m not sure how to get those hashes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add telemetry to your bot - Bot Service | Microsoft Learn
Querying your telemetry data in Application Insights using Kusto Queries · Go to the Azure portal · To go to your Application Insights...
Read more >
Telemetry - Visual Studio Code
Visual Studio Code collects telemetry data, which is used to help understand how to improve the product. For example, this usage data helps...
Read more >
Monitoring Applications using Application Insights
Exercise 3: Viewing Telemetry · Launch the application from Visual Studio and navigate through the application. 14 · Right click on the project ......
Read more >
ASP.NET Core: Telemetry and Application Insights
There have been several changes in the last 6 months to the library. Please add the following code to your Startup.cs, Add Code...
Read more >
Add Telemetry logs in application insights of httptrigger ...
This has nothing to do with telemetry. · can u guide me how to do that in startup class or share some link.....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found