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

Initial Python telemetry #1972

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Initial Python telemetry #1972

wants to merge 2 commits into from

Conversation

billti
Copy link
Member

@billti billti commented Oct 22, 2024

Opening early for @sezna to review.

Still TODO:

  • Add tests
  • Flesh out the events and call them from the Python API entry points.
  • Automatically add the build version, and disable telemetry for non-release builds
  • Update endpoint and key with final prod values
  • Replace urllib3 with urllib (as the former is an external package)

Still iterating...


logger = logging.getLogger(__name__)

# TODO: These should be potentially set by the build pipeline. However, they are not

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
from .telemetry import log_telemetry
import math

# TODO: This should be populated by the build in the main module

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
# TODO: This should be populated by the build in the main module
QSHARP_VERSION = "1.9.0"

# TODO: Log extra params like qubit count (buckets), qubit type for RE, etc.?

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant