> ## 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.

# get_context_value()

> Read a value from the current OpenTelemetry context

## Overview

```python theme={"system"}
get_context_value(key: str) -> Any
```

## Example

```python theme={"system"}
from opentelemetry.semconv_ai import SpanAttributes
from keywordsai_tracing import workflow, get_client

@workflow(name="context_demo")
def context_demo():
    client = get_client()
    return client.get_context_value(SpanAttributes.TRACELOOP_ENTITY_NAME)

print(context_demo())
```
