Skip to content

Commit

Permalink
Merge branch 'main' into opentelemetrybot/auto-update-registry-77c7ba…
Browse files Browse the repository at this point in the history
…966e2457e38ab8afc0406efbca22b1234b
  • Loading branch information
svrnm authored May 22, 2024
2 parents 05da243 + 0d9789f commit fba5347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/collector/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export their telemetry data.
- _Observability_: An exemplar of an observable service.
- _Extensibility_: Customizable without touching the core code.
- _Unification_: Single codebase, deployable as an agent or collector with
support for traces, metrics, and logs (future).
support for traces, metrics, and logs.

## When to use a collector

Expand Down
10 changes: 7 additions & 3 deletions content/en/docs/collector/building/receiver.md
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,9 @@ func (tailtracerRcvr *tailtracerReceiver) Start(ctx context.Context, host compon
}

func (tailtracerRcvr *tailtracerReceiver) Shutdown(ctx context.Context) error {
tailtracerRcvr.cancel()
if tailtracerRcvr.cancel != nil {
tailtracerRcvr.cancel()
}
return nil
}
```
Expand All @@ -756,7 +758,7 @@ func (tailtracerRcvr *tailtracerReceiver) Shutdown(ctx context.Context) error {
function field with the cancellation based on a new context created with
`context.Background()` (according the Collector's API documentation
suggestions).
- Updated the `Stop()` method by adding a call to the `cancel()` context
- Updated the `Shutdown()` method by adding a call to the `cancel()` context
cancellation function.

{{% /alert %}}
Expand Down Expand Up @@ -829,7 +831,9 @@ func (tailtracerRcvr *tailtracerReceiver) Start(ctx context.Context, host compon
}

func (tailtracerRcvr *tailtracerReceiver) Shutdown(ctx context.Context) error {
tailtracerRcvr.cancel()
if tailtracerRcvr.cancel != nil {
tailtracerRcvr.cancel()
}
return nil
}
```
Expand Down

0 comments on commit fba5347

Please sign in to comment.