-
Notifications
You must be signed in to change notification settings - Fork 11
chore: Metrics , tracks commands , errors for now #81
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
Conversation
core/analytics/tracker.py
Outdated
| from opentelemetry.metrics import set_meter_provider, get_meter_provider | ||
| from opentelemetry.sdk.metrics.export import ( | ||
| PeriodicExportingMetricReader, | ||
| ConsoleMetricExporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaushik-himself main code
Please add a better description and title. The title + description should clearly and succinctly convey what the PR is doing to anyone: not just the team, but any viewer on the Internet who looks through our history, |
core/analytics/client.py
Outdated
|
|
||
| def get_client_id() -> str: | ||
| """Retrieve or create a unique, anonymous client ID for this user.""" | ||
| path = os.path.join(os.path.expanduser("~"), ".compliant-llm", ".client-id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
os.path.expanduser("~"): this will probably not work across platforms.
please look into Path.home()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/analytics/tracker.py
Outdated
| logger.info("✅ Azure Monitor traces initialized.") | ||
| except Exception as e: | ||
| logger.error(f"❌ Failed to initialize tracing: {e}") | ||
| print(f"❌ Failed to initialize tracing: {e}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove print

Description
Screenshots/Results
Reference Links
Checklist
This PR includes the following (tick all that apply):