Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Azure Monitor metrics exporter atexit fixes#943

Merged
lzchen merged 3 commits intocensus-instrumentation:masterfrom
lzchen:heartbug
Aug 5, 2020
Merged

Azure Monitor metrics exporter atexit fixes#943
lzchen merged 3 commits intocensus-instrumentation:masterfrom
lzchen:heartbug

Conversation

@lzchen
Copy link
Copy Markdown
Contributor

@lzchen lzchen commented Aug 3, 2020

Implemented azure monitor metrics exporter storage + exporter worker shutdown on exit.
Also flushes telemetry for custom metrics + heartbeat metrics on exit.

transport.get_exporter_thread(producers,
exporter,
interval=exporter.options.export_interval)
exporter.exporter_thread = transport.get_exporter_thread(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add it to __init__()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We expect users to initialize via new_metric_exporter so it has to be in this function.

@lzchen lzchen merged commit 67502e5 into census-instrumentation:master Aug 5, 2020
@lzchen lzchen deleted the heartbug branch August 5, 2020 19:12
tiloc pushed a commit to tiloc/opencensus-python that referenced this pull request Sep 6, 2020
This was referenced Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants