Python SDKTracing Clientget_context_value()Copy pageSignature 1get_context_value(key: str) -> Any Returns the value for the given key from the current OpenTelemetry context, or None if not found. Example 1from respan import Respan, workflow, get_client23respan = Respan(api_key="your-api-key")45@workflow(name="context_demo")6def context_demo():7 client = get_client()8 client.set_context_value("custom.key", "my_value")9 value = client.get_context_value("custom.key")10 print(value) # "my_value"11 return value1213context_demo()