Skip to content

Commit

Permalink
Merge branch 'main' into headers
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv committed Feb 11, 2023
2 parents 92001b1 + 3bcc9fb commit 1d56de7
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,19 @@ def test_uninstrumented(self):

PymemcacheInstrumentor().instrument()

def test_no_op_tracer_provider(self):
PymemcacheInstrumentor().uninstrument()
tracer_provider = trace_api.NoOpTracerProvider()
PymemcacheInstrumentor().instrument(tracer_provider=tracer_provider)

client = self.make_client([b"STORED\r\n"])
result = client.set(b"key", b"value", noreply=False)
self.assertTrue(result)

spans = self.memory_exporter.get_finished_spans()
assert spans is not None
self.assertEqual(len(spans), 0)


class PymemcacheHashClientTestCase(TestBase):
"""Tests for a patched pymemcache.client.hash.HashClient."""
Expand Down

0 comments on commit 1d56de7

Please sign in to comment.