original_docstring: Pushes a span to Honeycomb and returns its ID, randomly generated on the fly within the function.
docstring: Pushes a span to Honeycomb and returns its ID, randomly generated on the fly within the function.
docstring_tokens: Pushes a span to Honeycomb and returns its ID randomly generated on the fly within the function .
code: def push(self, trace_id, parent_id):
          """Pushes a span to Honeycomb and returns its ID, randomly generated on the fly within the function."""
          span_id = secrets.token_hex(16)
          ev = libhoney.new_event()
          ev.add_field("service_name", self.service_name)
          ev.add_field("name", self.name)
          ev.created_at = datetime.datetime.fromtimestamp(self.started_at // 1000)
          ev.add_field(
              "duration_ms",
              to_millis(self.duration.get("secs"), self.duration.get("nanos")),
          )
          ev.add_field("trace.parent_id", parent_id)
          ev.add_field("trace.span_id", span_id)
          ev.add_field("trace.trace_id", trace_id)
          ev.add_field("ci_provider", "GitLab-CI")
          ev.add_field("execution_result", self.result)
          ev.send()
          return span_id
code_tokens: def push ( self , trace_id , parent_id ) : span_id = secrets . token_hex ( 16 ) ev = libhoney . new_event ( ) ev . add_field ( "service_name" , self . service_name ) ev . add_field ( "name" , self . name ) ev . created_at = datetime . datetime . fromtimestamp ( self . started_at // 1000 ) ev . add_field ( "duration_ms" , to_millis ( self . duration . get ( "secs" ) , self . duration . get ( "nanos" ) ) , ) ev . add_field ( "trace.parent_id" , parent_id ) ev . add_field ( "trace.span_id" , span_id ) ev . add_field ( "trace.trace_id" , trace_id ) ev . add_field ( "ci_provider" , "GitLab-CI" ) ev . add_field ( "execution_result" , self . result ) ev . send ( ) return span_id
short_docstring: Pushes a span to Honeycomb and returns its ID, randomly generated on the fly within the function.
short_docstring_tokens: Pushes a span to Honeycomb and returns its ID randomly generated on the fly within the function .
comment: """Pushes a span to Honeycomb and returns its ID, randomly generated on the fly within the function."""