Skip to content

Bug: tool already used #30

Description

@le-codeur-rapide

Issue

We start monitoring by activating the tool_id of the sys.monitoring api

sys.monitoring.use_tool_id(self.tool_id, "lblprof-monitor")

But in case when the lblprof.start_tracing() would be called several times (ex: I put it at the start of my streamlit app), I would get the error tool_id already assigned

Solution

Check if the tool is already assigned and skip this line if is is

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions