open-edison 0.1.16__py3-none-any.whl → 0.1.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
src/telemetry.py CHANGED
@@ -22,6 +22,7 @@ from __future__ import annotations
22
22
 
23
23
  import json
24
24
  import os
25
+ import platform
25
26
  import traceback
26
27
  import uuid
27
28
  from collections.abc import Callable
@@ -175,12 +176,27 @@ def initialize_telemetry(override: TelemetryConfig | None = None) -> None: # no
175
176
 
176
177
  # Provider/meter
177
178
  try:
179
+ # Capture platform/runtime details
180
+ install_id = _ensure_install_id()
181
+ os_type = platform.system().lower() or "unknown"
182
+ os_description = platform.platform()
183
+ host_arch = platform.machine()
184
+ runtime_version = platform.python_version()
185
+ service_version = getattr(config, "version", "unknown")
186
+
178
187
  # Attach a resource so metrics include service identifiers
179
188
  resource = Resource.create(
180
189
  {
181
190
  "service.name": "open-edison",
182
191
  "service.namespace": "open-edison",
192
+ "service.version": service_version,
193
+ "service.instance.id": install_id,
183
194
  "telemetry.sdk.language": "python",
195
+ "os.type": os_type,
196
+ "os.description": os_description,
197
+ "host.arch": host_arch,
198
+ "process.runtime.name": "python",
199
+ "process.runtime.version": runtime_version,
184
200
  }
185
201
  )
186
202
  provider: Any = ot_sdk_metrics.MeterProvider(metric_readers=[reader], resource=resource)
@@ -209,7 +225,7 @@ def initialize_telemetry(override: TelemetryConfig | None = None) -> None: # no
209
225
  log.error("Metrics instrument creation failed\n{}", traceback.format_exc())
210
226
  return
211
227
 
212
- _ = _ensure_install_id()
228
+ _ = install_id
213
229
  _initialized = True
214
230
  log.info("📈 Telemetry initialized")
215
231
 
@@ -1,18 +0,0 @@
1
- src/__init__.py,sha256=QWeZdjAm2D2B0eWhd8m2-DPpWvIP26KcNJxwEoU1oEQ,254
2
- src/__main__.py,sha256=kQsaVyzRa_ESC57JpKDSQJAHExuXme0rM5beJsYxFeA,161
3
- src/cli.py,sha256=9cJN6mRvjbCcpTyTdUVl47J7OB7bxzSy0h8tfVbHuQU,9982
4
- src/config.py,sha256=2a5rdImQmNGggL690PQprqZVsRUAJcdo8KS2Foj9N-U,9345
5
- src/mcp_manager.py,sha256=VpRdVMy1WLegC-gBnyTcBMcKzQsdIn4JIWuHf7Q40hg,4442
6
- src/server.py,sha256=fVJatqKZFBacEd-fm3UROevG6U_JLIQUxt_-UdZEQFM,30727
7
- src/single_user_mcp.py,sha256=ue5UnC0nfmuLR4z87904WqH7B-0FaACFDWaBNNL7hXE,15259
8
- src/telemetry.py,sha256=PDS3YrwDHOKNyQwr_CclqOfPzeMnjj_x4rfN5OBmFvo,11931
9
- src/frontend_dist/index.html,sha256=Y4ZfK2hzHsfCiqh7Z7dzajTdojVjKCC5YL4JxdXeig4,673
10
- src/frontend_dist/assets/index-_NTxjOfh.js,sha256=KetbIa26YNfMP_SwWa04fCr9jGNnoPeZsA41-Oxgx6w,236658
11
- src/frontend_dist/assets/index-h6k8aL6h.css,sha256=Lq5FK1bsPMR67cAwD_-fMvWqKbo_IyraMSKndoQf8i8,13875
12
- src/middleware/data_access_tracker.py,sha256=RZh1RCBYDEbvVIJPkDUz0bfLmK-xYIdV0lGbIxbJYc0,25966
13
- src/middleware/session_tracking.py,sha256=cXuOdJy3Lt7mw_mbtWRVKN7hUTMFJkudaCzPEG_cB5c,20039
14
- open_edison-0.1.16.dist-info/METADATA,sha256=M_F6kqHCZMyV4tOl8rIRgDlSMAfTxPkI0Sw_U8aJJoU,8611
15
- open_edison-0.1.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- open_edison-0.1.16.dist-info/entry_points.txt,sha256=qNAkJcnoTXRhj8J--3PDmXz_TQKdB8H_0C9wiCtDIyA,72
17
- open_edison-0.1.16.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
18
- open_edison-0.1.16.dist-info/RECORD,,