Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions develop-docs/sdk/telemetry/spans/implementation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The `captureSpan` pipeline emits a `process_span` message that any consumer (e.g
The consumer can then apply its logic to spans, similarly to how it might have applied it in event processors before.
SDKs having alternative processing patterns established can also use them.

```txt
```js
// in captureSpan:
processed_span = client.emit("process_span", captured_span)

Expand All @@ -144,7 +144,7 @@ For event processors mutating data, we need to replace the mutation logic with s
SDK-internally, this means configure the integration or call site that registers an event processor, to also register a hook to process that span.
As written above, this could be realized via a client lifecycle hook, or a similar mechanism.

```txt
```js
// someIntegration:

client.addEventProcessor(event => {
Expand All @@ -169,7 +169,7 @@ This should be the first step we try when implementing span streaming.

If this doesn't apply to the use case, we should pre-configure the SDK's `ignore_spans` option and leverage the existing span filtering logic to drop segments or child spans **upfront**.

```txt
```js
// someIntegration:

client.addEventProcessor(event => {
Expand Down
Loading