When calling agentops.init(), a session span is not created by default. This forces us to manually call agentops.start_session() to generate a session span. However, even when using agentops.start_session(), the generated session span is not propagated correctly and appears as a sibling span rather than as a parent of subsequent spans.
Steps to Reproduce:
-
Call agentops.init() without calling agentops.start_session().
-
Call agentops.start_session() after agentops.init().
Expected Behavior:
- A call to
agentops.init() should automatically create a session span, or at least the manual call to agentops.start_session() should correctly propagate the session context so that the session span is the parent for subsequent spans.
When calling
agentops.init(), a session span is not created by default. This forces us to manually callagentops.start_session()to generate a session span. However, even when usingagentops.start_session(), the generated session span is not propagated correctly and appears as a sibling span rather than as a parent of subsequent spans.Steps to Reproduce:
Call
agentops.init()without callingagentops.start_session().Call
agentops.start_session()afteragentops.init().Expected Behavior:
agentops.init()should automatically create a session span, or at least the manual call toagentops.start_session()should correctly propagate the session context so that the session span is the parent for subsequent spans.