The issue"Could not record event - no sessions detected. Create a session by calling agentops.start_session()"

Hello! I want to know why I met such an error: “Could not record event - no sessions detected. Create a session by calling agentops.start_session()”?