Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docs
Browse files Browse the repository at this point in the history
reyang committed Oct 27, 2021

Verified

This commit was signed with the committer’s verified signature.
pietroalbini Pietro Albini
1 parent 864da45 commit e225e02
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/logs/extending-the-sdk/README.md
Original file line number Diff line number Diff line change
@@ -18,11 +18,12 @@ not covered by the built-in exporters:
* Exporters should derive from `OpenTelemetry.BaseExporter<LogRecord>` (which
belongs to the [OpenTelemetry](../../../src/OpenTelemetry/README.md) package)
and implement the `Export` method.
* Exporters can optionally implement the `OnShutdown` method.
* Exporters can optionally implement the `OnForceFlush` and `OnShutdown` method.
* Depending on user's choice and load on the application, `Export` may get
called with one or more log records.
* Exporters will only receive sampled-in log records.
* Exporters should not throw exceptions from `Export` and `OnShutdown`.
* Exporters should not throw exceptions from `Export`, `OnForceFlush` and
`OnShutdown`.
* Exporters should not modify log records they receive (the same log records may
be exported again by different exporter).
* Exporters are responsible for any retry logic needed by the scenario. The SDK
5 changes: 3 additions & 2 deletions docs/trace/extending-the-sdk/README.md
Original file line number Diff line number Diff line change
@@ -22,11 +22,12 @@ not covered by the built-in exporters:
* Exporters should derive from `OpenTelemetry.BaseExporter<Activity>` (which
belongs to the [OpenTelemetry](../../../src/OpenTelemetry/README.md) package)
and implement the `Export` method.
* Exporters can optionally implement the `OnShutdown` method.
* Exporters can optionally implement the `OnForceFlush` and `OnShutdown` method.
* Depending on user's choice and load on the application, `Export` may get
called with one or more activities.
* Exporters will only receive sampled-in and ended activities.
* Exporters should not throw exceptions from `Export` and `OnShutdown`.
* Exporters should not throw exceptions from `Export`, `OnForceFlush` and
`OnShutdown`.
* Exporters should not modify activities they receive (the same activity may be
exported again by different exporter).
* Exporters are responsible for any retry logic needed by the scenario. The SDK

0 comments on commit e225e02

Please sign in to comment.