Skip to content

Commit

Permalink
Changed README for AspNetCore/OT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Beckhoff, Tobias committed Mar 15, 2024
1 parent 9d38d7f commit 75d3765
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions libraries/JGUZDV.AspNetCore.Extensions.OpenTelemetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,22 @@ the needed services to a WebApplicationBuilder:
builder.AddJGUZDVOpenTelemetry();
´´´

Basic configuration settings needed to initialize the services are
the following:
Basic configuration settings to initialize the services must be configured as
in the following example:

´´´
"AzureMonitor": {
"ConnectionString": "InstrumentationKey=<AzureMonitorInstrumentationKey>",
"OpenTelemetry": {
"AzureMonitor": {
"ConnectionString": "<AzureMonitorInstrumentationKey>",
},
"ServiceNamespace": "<WebAppNamespace>",
"ServiceName": "<WebAppName>"
}
´´´

Note: If no "AzureMonitoring" section can be found, nothing will happen
at all.
Note: If no "OpenTelemetry" section can be found, nothing will happen
at all. If such a section is present, all parameters need to be set
as presented in the example. WebAppNamespace should be something summarizing,
and WebAppName should be the concrete and unique name of the WebApp.
The name and namespace parameters should be about 10 to 15 characters,
with no whitespaces or special characters.

0 comments on commit 75d3765

Please sign in to comment.