Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ddtrace/internal/telemetry/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
log = get_logger(__name__)


class LogData(dict):
class LogData(dict[str, Any]):
def __hash__(self):
return hash((self["message"], self["level"], self.get("tags"), self.get("stack_trace")))

Expand Down Expand Up @@ -160,7 +160,7 @@ def __init__(self, is_periodic: bool = True, agentless: Optional[bool] = None) -
self._is_periodic = is_periodic
self._integrations_queue: dict[str, dict] = dict()
self._namespace = MetricNamespace()
self._logs: set[dict[str, Any]] = set()
self._logs: set[LogData] = set()
self._events_queue: list[dict[str, Any]] = []
self._queued_configs: list[dict] = []
self._sent_configs: list[dict] = []
Expand Down Expand Up @@ -588,7 +588,7 @@ def add_distribution_metric(
tags,
)

def _report_logs(self) -> set[dict[str, Any]]:
def _report_logs(self) -> set[LogData]:
with self._service_lock:
logs = self._logs
self._logs = set()
Expand Down
Loading