Skip to content

Commit 0da5d5d

Browse files
committed
fix warnings
1 parent cb7d40a commit 0da5d5d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/core/enrichment/application-metadata.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ Optionally, you can provide values for `BuildVersion` and `DeploymentRing` via t
7171

7272
The following table shows the metadata made available by the provider via <xref:Microsoft.Extensions.Configuration.IConfiguration>:
7373

74-
| Key | Required? | Where the value comes from| Value Example | Description|
75-
|-|-|-|-|-|
74+
| Key | Required? | Where the value comes from | Value example | Description |
75+
|-----|-----------|----------------------------|---------------|-------------|
7676
| `ambientmetadata:application:applicationname` | yes | automatically from `IHostEnvironment` |`myApp` | The application name.|
7777
| `ambientmetadata:application:environmentname` | yes | automatically from `IHostEnvironment` | `Production`, `Development`| The environment the application is deployed to.|
7878
| `ambientmetadata:application:buildversion` | no | configure it in `IConfiguration` | `1.0.0-rc1` | The application's build version.|
7979
| `ambientmetadata:application:deploymentring` | no | configure it in `IConfiguration` | `r0`, `public` | The deployment ring from where the application is running.|
8080

8181
```csharp
8282
var builder = Host.CreateDefaultBuilder(args)
83-
// ApplicationName and EnvironmentName will be imported from `IHostEnvironment`
83+
// ApplicationName and EnvironmentName will be imported from `IHostEnvironment`
8484
// BuildVersion and DeploymentRing will be imported from the "appsettings.json" file.
8585
builder.UseApplicationMetadata();
8686

@@ -107,15 +107,15 @@ var buildVersion = metadataOptions.Value.BuildVersion;
107107

108108
Your `appsettings.json` can have a section as follows :
109109

110-
:::code language="json" source="snippets/servicelogenricher/appsettings.json" range="2-7":::
110+
:::code language="json" source="snippets/applicationlogenricher/appsettings.json" range="2-7":::
111111

112112
### Configure with IHostApplicationBuilder
113113

114114
For applications using <xref:Microsoft.Extensions.Hosting.IHostApplicationBuilder>:
115115

116116
```csharp
117117
var builder = Host.CreateApplicationBuilder(args)
118-
// ApplicationName and EnvironmentName will be imported from `IHostEnvironment`
118+
// ApplicationName and EnvironmentName will be imported from `IHostEnvironment`
119119
// BuildVersion and DeploymentRing will be imported from the "appsettings.json" file.
120120
builder.UseApplicationMetadata();
121121

@@ -158,11 +158,11 @@ await host.RunAsync();
158158

159159
The <xref:Microsoft.Extensions.AmbientMetadata.ApplicationMetadata> class includes the following properties:
160160

161-
| Property | Description |
162-
|----------|-------------|
163-
| `ApplicationName` | The name of the application. |
164-
| `BuildVersion` | The version of the application build. |
165-
| `DeploymentRing` | The deployment ring or stage (for example, Canary, Production). |
161+
| Property | Description |
162+
|-------------------|-----------------------------------------------------------------|
163+
| `ApplicationName` | The name of the application. |
164+
| `BuildVersion` | The version of the application build. |
165+
| `DeploymentRing` | The deployment ring or stage (for example, Canary, Production). |
166166
| `EnvironmentName` | The environment where the application is running (for example, Development, Staging, Production). |
167167

168168
## Use with logging
@@ -229,10 +229,10 @@ With this configuration, your settings would look like:
229229
{
230230
"myapp": {
231231
"metadata": {
232-
"ApplicationName": "MyWebApi", // Your ApplicationName will be imported from `IHostEnvironment`
232+
"ApplicationName": "MyWebApi", // ApplicationName will be imported from `IHostEnvironment`.
233233
"BuildVersion": "1.0.0",
234234
"DeploymentRing": "Production",
235-
"EnvironmentName": "Production" // Your EnvironmentName will be imported from `IHostEnvironment`
235+
"EnvironmentName": "Production" // EnvironmentName will be imported from `IHostEnvironment`.
236236
}
237237
}
238238
}

docs/fundamentals/syslib-diagnostics/extobs0002.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following APIs are marked obsolete. Use of these APIs generates warning `EXT
2020

2121
Replace calls to `AddServiceLogEnricher` with the equivalent `AddApplicationLogEnricher` methods. The functionality remains the same, only the method names have been corrected to accurately reflect that they enrich application logs.
2222

23-
For more information, see [Application log enricher](../../../core/enrichment/application-log-enricher.md).
23+
For more information, see [Application log enricher](../../core/enrichment/application-log-enricher.md).
2424

2525
## Suppress a warning
2626

@@ -54,4 +54,4 @@ For more information, see [Suppress warnings](obsoletions-overview.md#suppress-w
5454

5555
## See also
5656

57-
- [Application log enricher](../../../core/enrichment/application-log-enricher.md)
57+
- [Application log enricher](../../core/enrichment/application-log-enricher.md)

0 commit comments

Comments
 (0)