Skip to content

Continue on AppInsights setup errors to simplify local development - #131

Merged
Liudmila Molkova (lmolkova) merged 3 commits into
Azure:mainfrom
lmolkova:no-connection-string
Jul 20, 2022
Merged

Continue on AppInsights setup errors to simplify local development#131
Liudmila Molkova (lmolkova) merged 3 commits into
Azure:mainfrom
lmolkova:no-connection-string

Conversation

@lmolkova

@lmolkova Liudmila Molkova (lmolkova) commented Jul 18, 2022

Copy link
Copy Markdown

Fixes #105
With this change if Application Insights setup throws (e.g. when running apps locally), we log the error but let an application work.

Comment thread templates/todo/api/csharp-cosmos-sql/Program.cs
@lmolkova

Copy link
Copy Markdown
Author

Tested Azure-Samples/todo-nodejs-mongo and Azure-Samples/todo-csharp-cosmos-sql locally and remotely, which should cover all changes.

Python template already has a guard in place:

if settings.APPLICATIONINSIGHTS_CONNECTION_STRING:

@ellismg Matt Ellis (ellismg) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - I put a note about where I believe we source the key from for the SPA frontend.

Comment thread templates/todo/web/react-fluent/src/services/telemetryService.ts Outdated

@wbreza Wallace Breza (wbreza) 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.

Thanks for the contributions. One minor comments otherwise looks good to go :)

Comment thread templates/todo/api/js/src/config/observability.ts Outdated
@azure-sdk

Copy link
Copy Markdown
Collaborator

Repoman Generation Results

Repoman pushed changes to remotes for the following projects:

Project: todo-csharp-cosmos-sql

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-csharp-cosmos-sql -b pr/131

View Changes | Compare Changes


Project: todo-csharp-mongo

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-csharp-mongo -b pr/131

View Changes | Compare Changes


Project: todo-csharp-sql

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-csharp-sql -b pr/131

View Changes | Compare Changes


Project: todo-nodejs-mongo-aca

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo-aca -b pr/131

View Changes | Compare Changes


Project: todo-nodejs-mongo-swa-func

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo-swa-func -b pr/131

View Changes | Compare Changes


Project: todo-nodejs-mongo

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-nodejs-mongo -b pr/131

View Changes | Compare Changes


Project: todo-python-mongo-aca

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo-aca -b pr/131

View Changes | Compare Changes


Project: todo-python-mongo-swa-func

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo-swa-func -b pr/131

View Changes | Compare Changes


Project: todo-python-mongo

Remote: azure-samples

Branch: pr/131

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo -b pr/131

View Changes | Compare Changes


@lmolkova
Liudmila Molkova (lmolkova) merged commit e25db34 into Azure:main Jul 20, 2022
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.

[Issue] Front-end Templates don't work if App Insights is not properly configured

5 participants