-
Notifications
You must be signed in to change notification settings - Fork 906
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version: 3.9
Steps to reproduce
Just create a SQLAlchemy instrumentation and call uninstrument function
Example:
db_url = os.environ['DATABASE_URI']
engine = create_engine(db_url)
instrumentation = SQLAlchemyInstrumentor()
instrumentation.instrument(
engine=engine
)
def set_interval(func, sec):
def func_wrapper():
# set_interval(func, sec)
func()
t = threading.Timer(sec, func_wrapper)
t.start()
return t
def instrument():
print("instrument")
instrumentation.instrument_app(app, engine)
def uninstrument():
print("uninstrument")
instrumentation.uninstrument()
set_interval(instrument, 1)
set_interval(uninstrument, 20)What is the expected behavior?
Don't collect spans
What is the actual behavior?
Still recording and collecting spans
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working