Correct definition of ActivitySource name. (#1675)

Spec says at https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/api.md#get-a-tracer

> This name must identify the instrumentation library (e.g. io.opentelemetry.contrib.mongodb) and not the instrumented library.

But this README suggested exactly the opposite.
This commit is contained in:
Christian Neumüller 2021-01-04 17:32:26 +01:00 committed by GitHub
parent 94c2755724
commit 5e161a993f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -148,12 +148,12 @@ here as well.
```
2. Create an `ActivitySource`, providing the name and version of the
library/application being instrumented. `ActivitySource` instance is
library/application doing the instrumentation. `ActivitySource` instance is
typically created once and is reused throughout the application/library.
```csharp
static ActivitySource activitySource = new ActivitySource(
"companyname.product.library",
"companyname.product.instrumentationlibrary",
"semver1.0.0");
```