---
title: JudgmentBaggageSpanProcessor
seo:
  title: JudgmentBaggageSpanProcessor — TypeScript SDK
  description: >-
    Span processor that copies baggage entries onto span attributes at span
    start. Use `keyPredicate` to control which keys are propagated. (TypeScript
    SDK)
description: >-
  Span processor that copies baggage entries onto span attributes at span start.
  Use `keyPredicate` to control which keys are propagated.
---

```typescript
const processor = new JudgmentBaggageSpanProcessor(
  (key) => key.startsWith("judgment."),
);
```

## onStart()

Copy matching baggage entries from the parent context onto the span.

```typescript
function onStart(span: Span, parentContext: Context): void
```

### Parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `span` | `Span` | - | |
| `parentContext` | `Context` | - | |

### Returns

`void`

***

## onEnd()

No-op.

```typescript
function onEnd(_span: ReadableSpan): void
```

### Parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `_span` | `ReadableSpan` | - | |

### Returns

`void`

***

## forceFlush()

No-op.

```typescript
async function forceFlush(): Promise<void>
```

### Returns

`Promise<void>`

***

## shutdown()

No-op.

```typescript
async function shutdown(): Promise<void>
```

### Returns

`Promise<void>`
