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:
parent
94c2755724
commit
5e161a993f
|
|
@ -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");
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue