.NET 6 - Web API Correlation Id 🔗

preview_player
Показать описание
In this video we will be going to be discussion Correlation Id why do we need it and how can we implement it in our .NET 6 Web API.

Support me on Patreon to access the source code:

00:00 Intro
01:21 The Theory: Why do we need Correlation Id
11:47 Coding time
12:14 Creating the Application
14:36 Understanding Middleware
20:17 Creating the Correlation Service
30:33 Creating the Middleware Service
43:33 Adding CorrelationService to our controller
46:32 Testing our code

Create .NET 6 Web API

Middlewares

Dependency Injections

Let us connect:

Support my work:

WHO AM I:
I'm Mohamad, a technical architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.

GET IN TOUCH:

#WebAPI #tracing #dotnet
Рекомендации по теме
Комментарии
Автор

Thanks for sharing this! Very clear explanation and coding, .

hamedsalameh
Автор

Great content! I am very new to your channel and I am absolutely loving you content!
One quick suggestion (if you don't mind) is can you please make you video little more shorter - like all diagrams and most of the code you may keep ready upfront.
So that would save everyone's time and you great effort would be utilized by much larger audience

codewithkashif
Автор

Thanks for the video! There may be some mistake here. In the middleware description section, you put the work with correlationId at the beginning of the pipeline, but at the end you put this work after the controllers.

aleksey
Автор

Dotnet core has a built in TraceContext and it auto generates TraceId to uniquely identify a request. Custom coding is not required

RM-xmgl
Автор

This is a great vide and very pragmatic too! additionally it would be great if you could have shown how to call another internal (or external services) and pass the correlationid.
Also how does it work in pub/sub model where external services are invoked via messages pushed to any message broker?

codewithkashif
Автор

How to monitor corelationid? Any dashboard for this?

suhutwadiyo
Автор

Thank you so much it is helpful is there any way i can save all transaction logs with correlation ID in file

pratikshatiwari
Автор

Thank u for the great video. Could u plz publish the complete source code? It looks like for me that Git repository contains the initial code.

alexlo
Автор

Hi, I have a video suggestion. Create a video about microservices, mainly authentication in microservice and communication(message brokers)

ThreeHubs