Skip to content

Commit

Permalink
Update terminology used on trace enricher docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusclay committed Oct 17, 2023
1 parent 0bbba61 commit 013f6f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OpenTelemetry.Extensions.Enrichment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ dotnet add package OpenTelemetry.Extensions.Enrichment --prerelease

### Step 2: Create enricher class

Create your custom enricher class that inherits from the `TraceEnricher` interface
and implement the `public void Enrich(in TraceEnrichmentBag bag)` method.
Create your custom enricher class that inherits from the `TraceEnricher` class
and override the `public abstract void Enrich(in TraceEnrichmentBag bag)` method.
Optionally, inject other services your enricher class depends on:

```csharp
Expand All @@ -66,7 +66,7 @@ An example of IMyService implementation is available

For every `Activity`, the `Enrich()`
method is guaranteed to be called exactly once. Semantically,
for the example above it means that a new [tag object](https://learn.microsoft.com/dotnet/api/system.diagnostics.activity.tagobjects?view=net-6.0)
for the example above it means that a new [tag object](https://learn.microsoft.com/dotnet/api/system.diagnostics.activity.tagobjects?view=net-7.0)
with the service key and the status value will be added to every `Activity`
in your application.

Expand Down

0 comments on commit 013f6f1

Please sign in to comment.