Skip to content

E2E POC for python telemetry for connect logs - #581

Merged
saishreeeee merged 269 commits into
telemetryfrom
PECOBLR-457
Jun 10, 2025
Merged

E2E POC for python telemetry for connect logs#581
saishreeeee merged 269 commits into
telemetryfrom
PECOBLR-457

Conversation

@saishreeeee

@saishreeeeesaishreeeee commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Other

Description

Added TelemetryClient and TelemetryClientFactory
Added functionality to export initial telemetry logs

How is this tested?

  • Unit tests
    Added unit tests to check the functionality of telemetry client and telemetry client factory
  • E2E Tests
  • Manually
    Ran a query that triggered the export of initital telemetry log, verified that the log was present in the target table
  • N/A

Related Tickets & Documents

PECOBLR-457

@vikrantpuppalavikrantpuppala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we break down this PR further please? let's start with simple connect logs, then error logs and then latency logs

Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/exc.py Outdated
@saishreeeeesaishreeeee changed the title E2E POC for python telemetry for connect + latency + error logsE2E POC for python telemetry for connect logsJun 3, 2025
Comment threadsrc/databricks/sql/client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
@github-actions

Copy link
Copy Markdown

Thanks for your contribution! To satisfy the DCO policy in our contributing guide every commit message must include a sign-off message. One or more of your commits is missing this message. You can reword previous commit messages with an interactive rebase (git rebase -i main).

Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
…unit tests accordingly
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/models/event.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py
…etry_client does not return a telemetry client
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadsrc/databricks/sql/telemetry/telemetry_client.py Outdated
Comment threadtests/unit/test_telemetry.py
Comment threadtests/unit/test_telemetry.py Outdated
Comment threadtests/unit/test_telemetry.py
Comment threadtests/unit/test_telemetry.py Outdated
…as constants, added callback function while submitting request to executor, changed del to pop
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>

@jprakash-dbjprakash-db left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for making the changes.

@saishreeeee
saishreeeee merged commit 9dc7d52 into telemetryJun 10, 2025
@saishreeeee
saishreeeee deleted the PECOBLR-457 branch August 1, 2025 08:10
Sign up for freeto 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.

20 participants

@saishreeeee@vikrantpuppala@jprakash-db@moderakh@mohitsingla-db@jackyhu-db@lu-wang-dl@shea-parkes@yunbodeng-db@andrefurlan-db@mattdeekay@sebbegg@itsdani@bkyryliuk@WilliamGentry@dbarrundia-tiger@jacobus-herman@nithinkdb@unj1m