From 66d7aa783a8ad1b3eb6d17ba086e2dda8a912ab6 Mon Sep 17 00:00:00 2001
From: Patrick Cloke <clokep@users.noreply.github.com>
Date: Thu, 23 Dec 2021 06:47:24 -0500
Subject: [PATCH] Fix mypy error with opentracing.tags. (#11622)

---
 changelog.d/11622.misc         | 1 +
 synapse/logging/opentracing.py | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 changelog.d/11622.misc

diff --git a/changelog.d/11622.misc b/changelog.d/11622.misc
new file mode 100644
index 0000000000..def24afb8d
--- /dev/null
+++ b/changelog.d/11622.misc
@@ -0,0 +1 @@
+Add opentracing type stubs and fix associated mypy errors.
\ No newline at end of file
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py
index 6364290615..622445e9f4 100644
--- a/synapse/logging/opentracing.py
+++ b/synapse/logging/opentracing.py
@@ -220,6 +220,7 @@ class _DummyTagNames:
 
 try:
     import opentracing
+    import opentracing.tags
 
     tags = opentracing.tags
 except ImportError:
-- 
GitLab