Skip to content

exceptions.enable() not sending events? #8

@zooba

Description

@zooba

I've been trying the unhandled exception filter and it doesn't seem to be sending events.

My code is roughly:

>>> from applicationinsights.exceptions import enable
>>> enable("my-key-goes-here")
>>> 1 / 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero

There's a visible pause before the exception message appears, which I assume is the flush() call in the handler, but the messages never appear in the portal. (Adding trace messages also shows that the handler is being called, but I didn't look any deeper than that.)

By contrast, if I create a client with the same key and call tc.track_exception() within an except block, the message appears in the portal in less than a minute.

(Using Python 3.4.2)

Metadata

Metadata

Assignees

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