> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# set_context_value()

> Set a value in the current OpenTelemetry context

## Overview

```python theme={"system"}
set_context_value(key: str, value: Any) -> bool
```

## Example

```python theme={"system"}
from keywordsai_tracing import workflow, get_client

@workflow(name="set_context")
def set_context():
    client = get_client()
    client.set_context_value("custom.key", "value")
    return True

print(set_context())
```
