Skip to content

Commit 3cbc9c7

Browse files
docs: add SimpleSpanProcessor warning (#4798)
* docs: add SimpleSpanProcessor warning * Update packages/opentelemetry-sdk-trace-base/src/export/SimpleSpanProcessor.ts Co-authored-by: Marc Pichler <[email protected]> --------- Co-authored-by: Marc Pichler <[email protected]>
1 parent 9e421f6 commit 3cbc9c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/opentelemetry-sdk-trace-base/src/export/SimpleSpanProcessor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import { Resource } from '@opentelemetry/resources';
3333
* to {@link ReadableSpan} and passes it to the configured exporter.
3434
*
3535
* Only spans that are sampled are converted.
36+
*
37+
* NOTE: This {@link SpanProcessor} exports every ended span individually instead of batching spans together, which causes significant performance overhead with most exporters. For production use, please consider using the {@link BatchSpanProcessor} instead.
3638
*/
3739
export class SimpleSpanProcessor implements SpanProcessor {
3840
private _shutdownOnce: BindOnceFuture<void>;

0 commit comments

Comments
 (0)