Skip to content

agentops.init() Not Creating Session Span by Default; start_session() Creates Sibling Span Without Context Propagation #894

@Dwij1704

Description

@Dwij1704

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:

  1. Call agentops.init() without calling agentops.start_session().

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

Sub-issues

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions