You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`ambientmetadata:application:applicationname`| yes | automatically from `IHostEnvironment`|`myApp`| The application name.|
77
77
|`ambientmetadata:application:environmentname`| yes | automatically from `IHostEnvironment`|`Production`, `Development`| The environment the application is deployed to.|
78
78
|`ambientmetadata:application:buildversion`| no | configure it in `IConfiguration`|`1.0.0-rc1`| The application's build version.|
79
79
|`ambientmetadata:application:deploymentring`| no | configure it in `IConfiguration`|`r0`, `public`| The deployment ring from where the application is running.|
80
80
81
81
```csharp
82
82
varbuilder=Host.CreateDefaultBuilder(args)
83
-
// ApplicationName and EnvironmentName will be imported from `IHostEnvironment`
83
+
// ApplicationName and EnvironmentName will be imported from `IHostEnvironment`
84
84
// BuildVersion and DeploymentRing will be imported from the "appsettings.json" file.
85
85
builder.UseApplicationMetadata();
86
86
@@ -107,15 +107,15 @@ var buildVersion = metadataOptions.Value.BuildVersion;
107
107
108
108
Your `appsettings.json` can have a section as follows :
Copy file name to clipboardExpand all lines: docs/fundamentals/syslib-diagnostics/extobs0002.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The following APIs are marked obsolete. Use of these APIs generates warning `EXT
20
20
21
21
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.
22
22
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).
24
24
25
25
## Suppress a warning
26
26
@@ -54,4 +54,4 @@ For more information, see [Suppress warnings](obsoletions-overview.md#suppress-w
0 commit comments