-
Notifications
You must be signed in to change notification settings - Fork 87
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
add logfire.logfire_info()
#826
base: main
Are you sure you want to change the base?
Conversation
Deploying logfire-docs with Cloudflare Pages
|
|
||
```bash | ||
logfire info | ||
``` | ||
|
||
Or in python run: |
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.
this will be wrong until we make a release.
logfire-api/logfire_api/__init__.py
Outdated
def logfire_info() -> str: | ||
"""Show versions of logfire, OS and related packages.""" | ||
raise NotImplementedError('this method is not implement in logfire-api') |
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.
Logfire API is meant to be a no-op. Why would it not be possible to call it with logfire-api?
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.
okay, I'll make it return an empty string.
While creating #825 I realised there's no nice way to get the
logfire info
output if you don't have a terminal.