@@ -132,8 +132,8 @@ def test_explicit_start_time(self):
132
132
now = time .time ()
133
133
with self .shim .start_active_span ("TestSpan" , start_time = now ) as scope :
134
134
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
137
137
# TODO: This seems to work consistently, but we should find out the
138
138
# biggest possible loss of precision.
139
139
self .assertAlmostEqual (result , now , places = 6 )
@@ -146,8 +146,8 @@ def test_explicit_end_time(self):
146
146
span .finish (now )
147
147
148
148
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
151
151
# TODO: This seems to work consistently, but we should find out the
152
152
# biggest possible loss of precision.
153
153
self .assertAlmostEqual (end_time , now , places = 6 )
@@ -412,8 +412,8 @@ def test_log_kv(self):
412
412
span .unwrap ().events [1 ].timestamp
413
413
)
414
414
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
417
417
# TODO: This seems to work consistently, but we should find out the
418
418
# biggest possible loss of precision.
419
419
self .assertAlmostEqual (result , now , places = 6 )
0 commit comments