Skip to content

Unable to send traces from google colab #1070

@r4881t

Description

@r4881t

As the title suggests, I am unable to send traces.

Laminar.initialize(
  project_api_key=userdata.get(
    "LMNR_PROJECT_API_KEY",
  )
)

# and then

with Laminar.start_as_current_span(
    name="test_runs"
  ) as workflow_span:
    try:
      result, context, last_agent = initiate_group_chat(
        pattern=pattern,
        messages=query,
        max_rounds=30,
      )

      print(">>>>>")
      print(result)
      print(last_agent)
      return result.summary
    except Exception as error:
      workflow_span.record_exception(error)
      # workflow_span.set_status(trace.Status(trace.StatusCode.ERROR, str(error)))
      logger.error(f"Error in chat: {error}")
      raise
    finally:
      workflow_span.end()

Metadata

Metadata

Assignees

No one assigned

    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