-
Notifications
You must be signed in to change notification settings - Fork 9
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
Send logs to Azure Monitor #719
Conversation
1. [Open Application Insights.](https://portal.azure.com/#view/HubsExtension/BrowseResource/resourceType/microsoft.insights%2Fcomponents) | ||
1. Click the resource corresponding to the environment. | ||
1. In the navigation, under `Monitoring`, click `Logs`. | ||
1. In the Query Editor, type `requests` or `traces`, and click `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.
Seems that traffic logs are sent to the former, stdout/stderr is sent to the latter.
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.
A couple tests for the new configuration helper could be nice, but this looks good. Confirmed I still see the expected console output locally.
5f53549
to
6932fc8
Compare
def test_get_config_with_azure(): | ||
config = get_config(enable_azure=True) | ||
assert "azure" in config["handlers"] | ||
assert "azure" in config["loggers"] |
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.
Not sure how useful they are, but added tests.
6932fc8
to
7e3012e
Compare
Closes #631. Keeps the logging otherwise the same.
Used the following instructions, to start:
Before merge
APPLICATIONINSIGHTS_CONNECTION_STRING
indev
Added tasks for each environment in #734.