Skip to content

Commit 15991af

Browse files
alrexc24t
alrex
authored andcommitted
Adding link to docs (#312)
Fixes #245
1 parent 4ead3f4 commit 15991af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ext/opentelemetry-ext-opentracing-shim/tests/test_shim.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def test_explicit_start_time(self):
132132
now = time.time()
133133
with self.shim.start_active_span("TestSpan", start_time=now) as scope:
134134
result = util.time_seconds_from_ns(scope.span.unwrap().start_time)
135-
# Tolerate inaccuracies of less than a microsecond.
136-
# TODO: Put a link to an explanation in the docs.
135+
# Tolerate inaccuracies of less than a microsecond. See Note:
136+
# https://open-telemetry.github.io/opentelemetry-python/opentelemetry.ext.opentracing_shim.html
137137
# TODO: This seems to work consistently, but we should find out the
138138
# biggest possible loss of precision.
139139
self.assertAlmostEqual(result, now, places=6)
@@ -146,8 +146,8 @@ def test_explicit_end_time(self):
146146
span.finish(now)
147147

148148
end_time = util.time_seconds_from_ns(span.unwrap().end_time)
149-
# Tolerate inaccuracies of less than a microsecond.
150-
# TODO: Put a link to an explanation in the docs.
149+
# Tolerate inaccuracies of less than a microsecond. See Note:
150+
# https://open-telemetry.github.io/opentelemetry-python/opentelemetry.ext.opentracing_shim.html
151151
# TODO: This seems to work consistently, but we should find out the
152152
# biggest possible loss of precision.
153153
self.assertAlmostEqual(end_time, now, places=6)
@@ -412,8 +412,8 @@ def test_log_kv(self):
412412
span.unwrap().events[1].timestamp
413413
)
414414
self.assertEqual(span.unwrap().events[1].attributes["foo"], "bar")
415-
# Tolerate inaccuracies of less than a microsecond.
416-
# TODO: Put a link to an explanation in the docs.
415+
# Tolerate inaccuracies of less than a microsecond. See Note:
416+
# https://open-telemetry.github.io/opentelemetry-python/opentelemetry.ext.opentracing_shim.html
417417
# TODO: This seems to work consistently, but we should find out the
418418
# biggest possible loss of precision.
419419
self.assertAlmostEqual(result, now, places=6)

0 commit comments

Comments
 (0)