mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-14 20:53:26 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 13c75697c7 | |||
| 8d000fc6d9 |
@@ -12,6 +12,7 @@ and this project adheres to
|
||||
|
||||
- 🔥(frontend) drop unused vendored ConnectionObserver
|
||||
- 🐛(frontend) vendor formatChatMessageLinks and trim surrounding newlines
|
||||
- ✨(summary) add hostname to analytics properties
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Analytics classes."""
|
||||
|
||||
import json
|
||||
import socket
|
||||
import time
|
||||
from collections import Counter
|
||||
from functools import lru_cache
|
||||
@@ -43,6 +44,11 @@ class Analytics:
|
||||
if self.is_disabled:
|
||||
return
|
||||
|
||||
# We add hostname to help track down the source of events
|
||||
properties = properties or {}
|
||||
if not properties.get("hostname"):
|
||||
properties = {**properties, "hostname": socket.gethostname()}
|
||||
|
||||
try:
|
||||
self._client.capture(
|
||||
event_name, distinct_id=distinct_id, properties=properties
|
||||
|
||||
Reference in New Issue
Block a user