Add TracerProvider section in getting started. (#2973)

This commit is contained in:
Cijo Thomas 2022-03-04 16:27:38 -08:00 committed by GitHub
parent af0c9b41da
commit 62217ce2df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -54,11 +54,18 @@ The `ActivitySource` instance is used to start an `Activity` which represents an
[OpenTelemetry
Span](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#span).
An OpenTelemetry
[TracerProvider](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#tracerprovider)
[TracerProvider](#tracerprovider)
is configured to subscribe to the activities from the source
`MyCompany.MyProduct.MyLibrary`, and export it to `ConsoleExporter`.
`ConsoleExporter` simply displays it on the console.
## TracerProvider
As shown in the above program, a valid `TracerProvider` must be configured and
built to collect traces with OpenTelemetry .NET SDK. `TracerProvider` holds all
the configuration for tracing like samplers, processors, etc, and is highly
[customizable](../../../src/OpenTelemetry/README.md#tracing-configuration).
## OpenTelemetry .NET and relation with .NET Activity API
If you tried the above program, you may have already noticed that the terms