code: def end(self):
          '''Ends the tracer.
  
          May be called in any state. Transitions the state to ended and releases
          any SDK resources owned by this tracer (this includes only internal
          resources, things like passed-in
          :class:`oneagent.common.DbInfoHandle` need to be released manually).
  
          Prefer using the tracer as a context manager (i.e., with a
          :code:`with`-block) instead of manually calling this method.
          '''
          if self.handle is not None:
              self.nsdk.tracer_end(self.handle)
              self.handle = Nonf end(self):
          '''Ends the tracer.
  
          May be called in any state. Transitions the state to ended and releases
          any SDK resources owned by this tracer (this includes only internal
          resources, things like passed-in
          :class:`oneagent.common.DbInfoHandle` need to be released manually).
  
          Prefer using the tracer as a context manager (i.e., with a
          :code:`with`-block) instead of manually calling this method.
          '''
          if self.handle is not None:
              self.nsdk.tracer_end(self.handle)
              self.handle = None
docs: Ends the tracer.
  
          May be called in any state. Transitions the state to ended and releases
          any SDK resources owned by this tracer (this includes only internal
          resources, things like passed-in
          :class:`oneagent.common.DbInfoHandle` need to be released manually).
  
          Prefer using the tracer as a context manager (i.e., with a
          :code:`with`-block) instead of manually calling this method.