Skip to content

Commit 14c5aaa

Browse files
committed
Feedback
1 parent eef2a44 commit 14c5aaa

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

opamp/opentelemetry-opamp-client/MANIFEST.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

opamp/opentelemetry-opamp-client/src/opentelemetry/_opamp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
OpenTelemetry Python - OpAMP client
1717
-----------------------------------
1818
19-
This package provides a bunch of classes that can be used by OpenTelemetry distributions implementers
19+
This package provides a bunch of classes that can be used by OpenTelemetry distributions implementors
2020
to implement remote config support via the `OpAMP protocol`_.
2121
2222
The client implements the following capabilities:

opamp/opentelemetry-opamp-client/src/opentelemetry/_opamp/agent.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def send(
158158

159159
def _run_scheduler(self) -> None:
160160
"""
161-
After me made a connection periodically enqueue “heartbeat” jobs until stop is signaled.
161+
After we made a connection, periodically enqueue “heartbeat” jobs until stop is signaled.
162162
"""
163163
while not self._stop.wait(self._interval):
164164
if self._schedule:
@@ -240,16 +240,16 @@ def stop(self) -> None:
240240

241241
# Before exiting send signal the server we are disconnecting to free our resources
242242
# This is not required by the spec but is helpful in practice
243-
logger.debug("Stopping OpAMPClient: sending AgentDisconnect")
243+
logger.debug("Stopping OpAMPAgent: sending AgentDisconnect")
244244
payload = self._client.build_agent_disconnect_message()
245245
try:
246246
self._client.send(payload)
247247
except Exception: # pylint: disable=broad-exception-caught
248248
logger.debug(
249-
"Stopping OpAMPClient: failed to send AgentDisconnect message"
249+
"Stopping OpAMPAgent: failed to send AgentDisconnect message"
250250
)
251251

252-
logger.debug("Stopping OpAMPClient: cancelling jobs")
252+
logger.debug("Stopping OpAMPAgent: cancelling jobs")
253253
# Clear pending jobs
254254
while True:
255255
try:
@@ -265,12 +265,12 @@ def stop(self) -> None:
265265
self._worker.join()
266266
except RuntimeError as exc:
267267
logger.warning(
268-
"Stopping OpAMPClient: worker thread failed to join %s", exc
268+
"Stopping OpAMPAgent: worker thread failed to join %s", exc
269269
)
270270
try:
271271
self._scheduler.join()
272272
except RuntimeError as exc:
273273
logger.warning(
274-
"Stopping OpAMPClient: scheduler thread failed to join %s", exc
274+
"Stopping OpAMPAgent: scheduler thread failed to join %s", exc
275275
)
276-
logger.debug("OpAMPClient stopped")
276+
logger.debug("OpAMPAgent stopped")

0 commit comments

Comments
 (0)