# 333 Telemetry collection is configurable down to the Python module level

**URL:** <https://forum.thousandbrains.org/t/333-telemetry-collection-is-configurable-down-to-the-python-module-level/1076>\
**Category:** Monty Code\
**Created:** [April 23, 2026, 8:50pm UTC](https://forum.thousandbrains.org/t/333-telemetry-collection-is-configurable-down-to-the-python-module-level/1076 "2026-04-23T20:50:06Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![AgentRev](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.thousandbrains.org/agentrev/32/651_2.png) [@AgentRev](https://forum.thousandbrains.org/u/AgentRev)\
**Post date:** [June 19, 2026, 6:37pm UTC](https://forum.thousandbrains.org/t/333-telemetry-collection-is-configurable-down-to-the-python-module-level/1076/20 "2026-06-19T18:37:23Z")

</div>

By “schema ID” I’m referring to what you call `kind` in your examples. My code currently denotes this as `SCHEMA_ID` in my dataclasses. This is what I put in `logger.log()`'s `msg` argument. “Relevancy check” is your `match record.msg` statement.

I haven’t observed a performance hit, it’s just my standard thinking process of shaving off cycles when possible. I assume a module could emit many different schemas, and I know `Logger` will call the `emit()` of every handler under it, that this is a blocking call during which the rest of the thread is idle, and that handlers only care about specific `msg` values. The broker is a lightweight class that shaves off cycles by filtering `msg` at the very start, only calling `emit()` of handlers that subscribed to that `msg` value. The rest of my rationale are mere nice-to-haves. Making the broker a singleton classvar was however probably unwarranted.

My day job is quite unforgiving about worst-case scenarios, so maybe I am overthinking it too. If you conclude that the broker is unnecessary, I don’t mind at all axing it and turning the consumers into handlers directly.

Side-question; you wrote the message below earlier this year, is `snapshots.{ __name__ }` still on your mind?

> [@What if (?) Monty had a live view](https://forum.thousandbrains.org/t/what-if-monty-had-a-live-view/924/31):
>
> I think there’s two sinks. One for logs, and one for telemetry. This is so that we have separate domains of configuration. I haven’t given it too much tought, but I was thinking the telemetry sink would be a logger with the name `logging.getLogger(f"telemetry.{ __name__ }")`. I _think_ that would give us all the equivalent control fidelity as normal logs without conflicts.
> 
> Possibly, because they’re so different, a third domain of snapshots `logging.getLogger(f"snapshots.{ __name__ }")`, but that’s just a not yet fully thought out escape valve in case we need yet another layer of control over data emission.

---

_[View the full topic](https://forum.thousandbrains.org/t/333-telemetry-collection-is-configurable-down-to-the-python-module-level/1076)._
