-
Notifications
You must be signed in to change notification settings - Fork 6k
Adding process log enricher documentation #49070
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds documentation for the process log enricher functionality in .NET, introducing comprehensive guidance on how to use the process enricher to augment telemetry logs with process-specific information such as process ID and thread ID.
Key changes:
- Added new documentation article explaining process log enricher usage and configuration
- Created example code snippets demonstrating integration with host builder and dependency injection
- Updated table of contents to include the new enrichment section
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
docs/navigate/tools-diagnostics/toc.yml | Added new "Enrichment" section with process log enricher entry |
docs/core/enrichment/process-log-enricher.md | Main documentation article explaining process enricher usage, configuration options, and examples |
docs/core/enrichment/snippets/enrichment/Program.cs | Example console application demonstrating process enricher setup |
docs/core/enrichment/snippets/enrichment/Log.cs | Helper class with LoggerMessage attribute for sample logging |
docs/core/enrichment/snippets/enrichment/Enrichment.csproj | Project file with required NuGet package references |
--- | ||
title: Process enricher | ||
description: Learn how to use the process log enricher in .NET. | ||
ms.date: 10/10/2025 |
Copilot
AI
Oct 10, 2025
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.
According to the coding guidelines, this appears to be AI-generated content. The document should include the ai-usage
frontmatter key with appropriate value (ai-generated or ai-assisted).
Copilot generated this review using guidance from repository custom instructions.
|
I added an overview document and a custom enricher doc. please check |
|
||
... | ||
|
||
var hostBuilder = new HostBuilder() |
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.
I thought the HostBuilder
was deprecated, no?
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.
AFAIK no it wasn’t
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.
Ah, I was thinking about something else. But that pattern is really dated, we keep trying to point folks in the more modern direction. Instead of the manually instantiating a HostBuilder
, we often instead show the:
var builder = Host.CreateDefaultBuilder(args);
But it's preferred to instead show the:
var builder = Host.CreateApplicationBuilder(args);
See .NET Generic Host: Set up a host, and notice the default selected tab. It's a better API to show the:
var builder = Host.CreateApplicationBuilder(args);
// For example, this...
// builder.Services.Add*();
Summary
Describe your changes here.
Fixes #Issue_Number (if available)
Internal previews