diff options
author | Zuul <zuul@review.opendev.org> | 2022-10-04 03:34:14 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-10-04 03:34:14 +0000 |
commit | ac9958ada599207747da1a0e89d08e72b0a11872 (patch) | |
tree | fb716ad9f51fa581a573bce55ab8ddfe66587ec9 /zuul/web/__init__.py | |
parent | 08cf7c5f2b65310cb05716c8162d5d5d3153f822 (diff) | |
parent | 7d52b9837308595ef574cf32fed384697f05e761 (diff) | |
download | zuul-ac9958ada599207747da1a0e89d08e72b0a11872.tar.gz |
Merge "Trace received Github events"
Diffstat (limited to 'zuul/web/__init__.py')
-rwxr-xr-x | zuul/web/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zuul/web/__init__.py b/zuul/web/__init__.py index c2b6a4ddf..995b28271 100755 --- a/zuul/web/__init__.py +++ b/zuul/web/__init__.py @@ -18,6 +18,7 @@ import socket from collections import defaultdict from contextlib import suppress +from opentelemetry import trace from ws4py.server.cherrypyserver import WebSocketPlugin, WebSocketTool from ws4py.websocket import WebSocket import codecs @@ -39,7 +40,7 @@ from zuul import exceptions from zuul.configloader import ConfigLoader from zuul.connection import BaseConnection, ReadOnlyBranchCacheError import zuul.lib.repl -from zuul.lib import commandsocket, encryption, streamer_utils +from zuul.lib import commandsocket, encryption, streamer_utils, tracing from zuul.lib.ansible import AnsibleManager from zuul.lib.jsonutil import ZuulJSONEncoder from zuul.lib.keystorage import KeyStorage @@ -1781,6 +1782,7 @@ class StreamManager(object): class ZuulWeb(object): log = logging.getLogger("zuul.web") + tracer = trace.get_tracer("zuul") def __init__(self, config, @@ -1789,6 +1791,7 @@ class ZuulWeb(object): info: WebInfo = None): self.start_time = time.time() self.config = config + self.tracing = tracing.Tracing(self.config) self.metrics = WebMetrics() self.statsd = get_statsd(config) @@ -2079,6 +2082,7 @@ class ZuulWeb(object): self._command_running = False self.command_socket.stop() self.monitoring_server.stop() + self.tracing.stop() def join(self): self.command_thread.join() |