Skip to content
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

Diagnostics #213

Merged
merged 15 commits into from
May 13, 2015
Merged

Diagnostics #213

merged 15 commits into from
May 13, 2015

Conversation

ardalis
Copy link
Contributor

@ardalis ardalis commented May 6, 2015

Fixes issue #62

@dnfclas
Copy link

dnfclas commented May 8, 2015

@ardalis, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@danroth27
Copy link
Member

@glennc @Tratcher Please review

:linenos:
:emphasize-lines: 2,21

The above code, which is built from the ASP.NET 5 Empty template, includes a simple mechanism for creating an exception on line 36. If a request includes a non-empty querystring parameter for the variable ``throw`` (e.g. a path of ``/?throw=true``), an exception will be thrown. Line 21 makes the call to ``UseErrorPage()`` with `ErrorPageOptions <https://github.com/aspnet/Diagnostics/blob/dev/src/Microsoft.AspNet.Diagnostics/ErrorPageOptions.cs>`_ set to ``ShowAll``. Using ``ErrorPageOption`` you can toggle the visibility of the following features of the error page:
Copy link
Member

Choose a reason for hiding this comment

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

ErrorPageOption -> ErrorPageOptions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@danroth27
Copy link
Member

There are still AppInsights images in this PR that are not referenced and should be removed:

  • azure-create-appinsight.png
  • config-json.png
  • nuget-pacakge-manager.png
  • manage-nuget-packages.png

@ardalis
Copy link
Contributor Author

ardalis commented May 11, 2015

The images are fixed in the AppInsights PR, just submitted.

@danroth27
Copy link
Member

I'd rather not couple this PR with the AppInsights PR. Can we please remove the AppInsights images from this PR and add them in the correct PR?

@ardalis
Copy link
Contributor Author

ardalis commented May 11, 2015

Images removed.

"dependencies": {
"Microsoft.AspNet.Server.IIS": "1.0.0-beta4",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta4",
"Microsoft.AspNet.Diagnostics": "1.0.0-beta4"
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


.. image:: diagnostics/_static/errorpage-headers.png

Finally, any environment variables defined for the server environment would be displayed on the Environment tab.
Copy link
Member

Choose a reason for hiding this comment

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

Remove any reference to the environment tab, it's a leftover from Katana referring to the OWIN environment, not environment variables. aspnet/Diagnostics#135

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Tratcher
Copy link
Member

@danroth27 Is UseErrorHandler going to get it's own doc page?

@danroth27
Copy link
Member

@Tratcher Yes, I think we should cover it as part of the Error Handling topic (#67).

@Tratcher
Copy link
Member

Ok, then we should take it out of this sample, or at least put in a link to the other docs from that line in the sample.

ardalis added 2 commits May 12, 2015 15:18
Fixed a few things in the article per @Tratcher feedback
@@ -0,0 +1,1146 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

@danroth27 do we want to check in lock files for samples? We don't do that elsewhere.

Copy link
Member

Choose a reason for hiding this comment

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

Agreed, we don't do it anywhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, that should be in my .gitignore.

Added links to welcome page and exception from home page
@ardalis
Copy link
Contributor Author

ardalis commented May 12, 2015

Should be good to go now, @Tratcher thanks!

},

"frameworks": {
"dnx451": { }/*,
Copy link
Member

Choose a reason for hiding this comment

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

/*...*/ comments are no longer supported, remove them. The sample should work on dnxcore50.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@danroth27
Copy link
Member

:shipit:

ardalis added 2 commits May 13, 2015 12:15
…cified in project.json.

Updated gitignore - added project.lock.json
Conflicts:
	docs/fundamentals/diagnostics.rst
	docs/fundamentals/index.rst
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.

5 participants