Skip to content

Commit 7be0e7d

Browse files
authored
feat: add periodic telemetry event flushing (#1829)
1 parent bb00412 commit 7be0e7d

6 files changed

Lines changed: 437 additions & 102 deletions

File tree

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.13.14"
3+
version = "2.13.15"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath/src/uipath/telemetry/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from ._track import ( # noqa: D104
1+
"""UiPath telemetry tracking."""
2+
3+
from ._constants import PERIODIC_TELEMETRY_FLUSH_FEATURE_FLAG
4+
from ._track import (
25
flush_events,
36
is_telemetry_enabled,
47
reset_event_client,
@@ -8,6 +11,7 @@
811
)
912

1013
__all__ = [
14+
"PERIODIC_TELEMETRY_FLUSH_FEATURE_FLAG",
1115
"track",
1216
"track_event",
1317
"is_telemetry_enabled",

packages/uipath/src/uipath/telemetry/_constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
_CONNECTION_STRING = "$CONNECTION_STRING"
22

3+
PERIODIC_TELEMETRY_FLUSH_FEATURE_FLAG = "EnablePeriodicTelemetryFlush"
4+
35
_APP_INSIGHTS_EVENT_MARKER_ATTRIBUTE = "APPLICATION_INSIGHTS_EVENT_MARKER_ATTRIBUTE"
46
_OTEL_RESOURCE_ATTRIBUTES = "OTEL_RESOURCE_ATTRIBUTES"
57
_SDK_VERSION = "SdkVersion"

0 commit comments

Comments
 (0)