marcduiker / azure-functions-university

Repository with training material to learn all about Azure Functions <āš”>
Other
389 stars 92 forks source link

Content Request: Logging & monitoring functions #10

Open marcduiker opened 3 years ago

marcduiker commented 3 years ago

šŸ“ Lesson Description

Provide a clear and concise description of the content you'd like to have included.

Logging & Monitoring Azure Functions is a very important aspect of running successful functions in production. In this lesson the following should be covered:

Are you authoring the lesson?

āœ Indicate if you want to (help) write the lesson.

YES, but I'd like a co-author for this lesson.

šŸ‘©ā€šŸ« If you are authoring then indicate if you want to join our live stream to help teach this lesson.

YES, but I'd like a co-host for this lesson.


Thanks! šŸ˜ƒ That's all we need to know for now. If you're interested in writing the lesson yourself please read the Process and Lesson Structure parts below so you're well prepared! šŸ’Ŗ


Process

If you are contributing to create a lesson, please take into account the length and the tone of the existing lessons. We want to have a uniform experience across all of our lessons.

Once we've discussed this issue and agree to include the lesson you can submit a PR with the lesson and the source code. It will probably take a few iterations to get everything right, don't feel discouraged by this process ā™„.

Lesson Structure

Please keep in mind the following structure of a lesson:

marcduiker commented 3 years ago

@madebygps I've created this branch for us to work in: https://github.com/marcduiker/azure-functions-university/tree/add-logging-dotnet31

springcomp commented 1 year ago

@madebygps @marcduiker Iā€™m not sure what is the status of this content request.

For the record, I have material for lesson that covers the following topics:

Please, let me know if any of those things may be of interest.

marcduiker commented 1 year ago

Hi @springcomp, we didn't have any capability to record lessons lately but if you have material than I'm happy record a session with you. Let's make sure there is a PR first with the written lesson. Something under dotnet6/AzFuncUni.Logging assuming that is dotnet6.

springcomp commented 1 year ago

Hello @marcduiker Iā€™m making some progress but before I get too carried away, would you be so kind as to provide superficial feedback. Maybe just look at the rough outline and tell me if that goes into the general direction?

As for structured logging, I stumble across key differences between how AppInsights is handled when using the dotnet-isolated worker as opposed to the in-process model. In the dotnet-isolated process, support for AppInsights is not on the same level as in the in-process model, nor does it follow the same documentation and naming conventions one might get used to when using regular aspnet console programs or in-process azure functions.

Reference:

I see a couple of ways out of this:

Can you please tell me what you think?

marcduiker commented 1 year ago

@springcomp The structure of the lesson looks good! Good addition of the decision chart for log levels.

I really prefer the content to be specific for dotnet isolated since that is the way forward in general. I know there are a lot of differences compared to in-process. I'm OK with using preview packages as long as this is clearly stated in the lesson. What if you move structured logging and distributed tracing to a separate (advanced logging) lesson?

springcomp commented 1 year ago

Sure I can do that.

I was under the impression that without those two last chapters, I would not be adding much value. But if you think that is valuable in its own right, I will split and publish a simpler lesson.

springcomp commented 5 hours ago

Hello @marcduiker I have uploaded a new PR for logging.

I took the liberty to start a new .NET 8 Prerequisites lesson to build upon future lessons as well. As far as I can tell, this is a straight copy and paste from the .NET 6 Prerequisites lesson with a single change for the reference to the dotnet SDK.

The new lesson focuses on logging basics and can be the basis for advanced lessons in the future. Most of the content for those future lessons is pretty much ready but I will let you give me your feedback.