Skip to content

Commit

Permalink
Add TracerProvider section in getting started. (#2973)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Mar 5, 2022
1 parent af0c9b4 commit 62217ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/trace/getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62217ce

Please sign in to comment.