_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c13300 | train | // Sample adds a sample to the counter. | {
"resource": ""
} | ||
c13301 | train | // Flush generates an InterMetric from the current state of this Counter. | {
"resource": ""
} | ||
c13302 | train | // Metric returns a protobuf-compatible metricpb.Metric with values set
// at the time this function was called. This should be used to export
// a Counter for forwarding. | {
"resource": ""
} | ||
c13303 | train | // Merge adds the value from the input CounterValue to this one. | {
"resource": ""
} | ||
c13304 | train | // NewCounter generates and returns a new Counter. | {
"resource": ""
} | ||
c13305 | train | // Flush generates an InterMetric from the current state of this gauge. | {
"resource": ""
} | ||
c13306 | train | // Export converts a Gauge into a JSONMetric. | {
"resource": ""
} | ||
c13307 | train | // Metric returns a protobuf-compatible metricpb.Metric with values set
// at the time this function was called. This should be used to export
// a Gauge for forwarding. | {
"resource": ""
} | ||
c13308 | train | // Merge sets the value of this Gauge to the value of the other. | {
"resource": ""
} | ||
c13309 | train | // Flush generates an InterMetric from the current state of this status check. | {
"resource": ""
} | ||
c13310 | train | // Export converts a StatusCheck into a JSONMetric. | {
"resource": ""
} | ||
c13311 | train | // Sample checks if the supplied value has is already in the filter. If not, it increments
// the counter! | {
"resource": ""
} | ||
c13312 | train | // NewSet generates a new Set and returns it | {
"resource": ""
} | ||
c13313 | train | // Flush generates an InterMetric for the state of this Set. | {
"resource": ""
} | ||
c13314 | train | // Export converts a Set into a JSONMetric which reports the Tags in the set. | {
"resource": ""
} | ||
c13315 | train | // Metric returns a protobuf-compatible metricpb.Metric with values set
// at the time this function was called. This should be used to export
// a Set for forwarding. | {
"resource": ""
} | ||
c13316 | train | // Merge combines the HyperLogLog with that of the input Set. Since the
// HyperLogLog is marshalled in the value, it unmarshals it first. | {
"resource": ""
} | ||
c13317 | train | // Sample adds the supplied value to the histogram. | {
"resource": ""
} | ||
c13318 | train | // NewHist generates a new Histo and returns it. | {
"resource": ""
} | ||
c13319 | train | // Export converts a Histogram into a JSONMetric | {
"resource": ""
} | ||
c13320 | train | // Metric returns a protobuf-compatible metricpb.Metric with values set
// at the time this function was called. This should be used to export
// a Histo for forwarding. | {
"resource": ""
} | ||
c13321 | train | // Merge merges the t-digests of the two histograms and mutates the state
// of this one. | {
"resource": ""
} | ||
c13322 | train | // ToPB maps the metric scope to a protobuf Scope type. | {
"resource": ""
} | ||
c13323 | train | // ScopeFromPB creates an internal MetricScope type from the protobuf Scope type. | {
"resource": ""
} | ||
c13324 | train | // NewMetricKeyFromMetric initializes a MetricKey from the protobuf-compatible
// metricpb.Metric | {
"resource": ""
} | ||
c13325 | train | // ToString returns a string representation of this MetricKey | {
"resource": ""
} | ||
c13326 | train | // ConvertMetrics examines an SSF message, parses and returns a new
// array containing any metrics contained in the message. If any parse
// error occurs in processing any of the metrics, ExtractMetrics
// collects them into the error type InvalidMetrics and returns this
// error alongside any valid metrics that could... | {
"resource": ""
} | ||
c13327 | train | // ValidMetric takes in an SSF sample and determines if it is valid or not. | {
"resource": ""
} | ||
c13328 | train | // ParseMetricSSF converts an incoming SSF packet to a Metric. | {
"resource": ""
} | ||
c13329 | train | // WithForwardTimeout sets the time after which an individual RPC to a
// downstream Veneur times out | {
"resource": ""
} | ||
c13330 | train | // WithLog sets the logger entry used in the object. | {
"resource": ""
} | ||
c13331 | train | // WithStatsInterval sets the time interval at which diagnostic metrics about
// the server will be emitted. | {
"resource": ""
} | ||
c13332 | train | // WithTraceClient sets the trace client used by the server. | {
"resource": ""
} | ||
c13333 | train | // EncodeInterMetricCSV generates a newline-terminated CSV row that describes
// the data represented by the InterMetric.
// The caller is responsible for setting w.Comma as the appropriate delimiter.
// For performance, encodeCSV does not flush after every call; the caller is
// expected to flush at the end of the ope... | {
"resource": ""
} | ||
c13334 | train | // New creates a new Server with the provided destinations. The server returned
// is unstarted. | {
"resource": ""
} | ||
c13335 | train | // SetDestinations updates the ring of hosts that are forwarded to by
// the server. If new hosts are being added, a gRPC connection is initialized
// for each.
//
// This also prunes the list of open connections. If a connection exists to
// a host that wasn't in either the current list or the last one, the
// conne... | {
"resource": ""
} | ||
c13336 | train | // SendMetrics spawns a new goroutine that forwards metrics to the destinations
// and exist immediately. | {
"resource": ""
} | ||
c13337 | train | // destForMetric returns a destination for the input metric. | {
"resource": ""
} | ||
c13338 | train | // forward sends a set of metrics to the destination address, and returns
// an error if necessary. | {
"resource": ""
} | ||
c13339 | train | // reportStats reports statistics about the server to the internal trace client | {
"resource": ""
} | ||
c13340 | train | // Error returns a summary of the data in a forwardError. | {
"resource": ""
} | ||
c13341 | train | // reportMetrics adds various metrics to an input span. | {
"resource": ""
} | ||
c13342 | train | // Error prints the first 10 errors. | {
"resource": ""
} | ||
c13343 | train | // StartStatsd spawns a goroutine that listens for metrics in statsd
// format on the address a, and returns the concrete listening
// address. As this is a setup routine, if any error occurs, it
// panics. | {
"resource": ""
} | ||
c13344 | train | // startProcessingOnUDP starts network num_readers listeners on the
// given address in one goroutine each, using the passed pool. When
// the listener is established, it starts the udpProcessor with the
// listener. | {
"resource": ""
} | ||
c13345 | train | // startStatsdUnix starts listening for datagram statsd metric packets
// on a UNIX domain socket address. It does so until the
// server's shutdown socket is closed. startStatsdUnix returns a channel
// that is closed once the listening connection has terminated. | {
"resource": ""
} | ||
c13346 | train | // StartSSF starts listening for SSF on an address a, and returns the
// concrete address that the server is listening on. | {
"resource": ""
} | ||
c13347 | train | // startSSFUnix starts listening for connections that send framed SSF
// spans on a UNIX domain socket address. It does so until the
// server's shutdown socket is closed. startSSFUnix returns a channel
// that is closed once the listener has terminated. | {
"resource": ""
} | ||
c13348 | train | // Acquires exclusive use lock for a given socket file and returns the lock
// Panic's if unable to acquire lock | {
"resource": ""
} | ||
c13349 | train | // Clone creates a new textMapReaderWriter with the same
// key-value pairs | {
"resource": ""
} | ||
c13350 | train | // CloneTo clones the textMapReaderWriter into the provided TextMapWriter | {
"resource": ""
} | ||
c13351 | train | // parseBaggageInt64 searches for the target key in the BaggageItems
// and parses it as an int64. It treats keys as case-insensitive. | {
"resource": ""
} | ||
c13352 | train | // Resource returns the resource assocaited with the spanContext | {
"resource": ""
} | ||
c13353 | train | // ClientFinish ends a trace and records it with the given Client. | {
"resource": ""
} | ||
c13354 | train | // FinishWithOptions finishes the span, but with explicit
// control over timestamps and log data.
// The BulkLogData field is deprecated and ignored. | {
"resource": ""
} | ||
c13355 | train | // ClientFinishWithOptions finishes the span and records it on the
// given client, but with explicit control over timestamps and log
// data. The BulkLogData field is deprecated and ignored. | {
"resource": ""
} | ||
c13356 | train | // SetOperationName sets the name of the operation being performed
// in this span. | {
"resource": ""
} | ||
c13357 | train | // SetTag sets the tags on the underlying span | {
"resource": ""
} | ||
c13358 | train | // Attach attaches the span to the context.
// It delegates to opentracing.ContextWithSpan | {
"resource": ""
} | ||
c13359 | train | // LogFields sets log fields on the underlying span.
// Currently these are ignored, but they can be fun to set anyway! | {
"resource": ""
} | ||
c13360 | train | // SetBaggageItem sets the value of a baggage in the span. | {
"resource": ""
} | ||
c13361 | train | // BaggageItem fetches the value of a baggage item in the span. | {
"resource": ""
} | ||
c13362 | train | // customSpanStart returns a StartSpanOption that can be passed to
// StartSpan, and which will set the created Span's StartTime to the specified
// value. | {
"resource": ""
} | ||
c13363 | train | // InjectRequest injects a trace into an HTTP request header.
// It is a convenience function for Inject. | {
"resource": ""
} | ||
c13364 | train | // InjectHeader injects a trace into an HTTP header.
// It is a convenience function for Inject. | {
"resource": ""
} | ||
c13365 | train | // ExtractRequestChild extracts a span from an HTTP request
// and creates and returns a new child of that span | {
"resource": ""
} | ||
c13366 | train | // EncodeInterMetricsCSV returns a reader containing the gzipped CSV representation of the
// InterMetric data, one row per InterMetric.
// the AWS sdk requires seekable input, so we return a ReadSeeker here | {
"resource": ""
} | ||
c13367 | train | // NewSplitBytes initializes a SplitBytes struct with the provided buffer and delimiter. | {
"resource": ""
} | ||
c13368 | train | // Next advances SplitBytes to the next chunk, returning true if a new chunk
// actually exists and false otherwise. | {
"resource": ""
} | ||
c13369 | train | // Start performs final preparations on the sink before it is
// ready to begin ingesting spans. | {
"resource": ""
} | ||
c13370 | train | // Ingest takes in a span and streams it over gRPC to the connected server. | {
"resource": ""
} | ||
c13371 | train | // newRequest creates a new streaming HEC raw request and returns the
// writer to it. The request is submitted when the writer is closed. | {
"resource": ""
} | ||
c13372 | train | // newHTTPClientTracer makes a new HTTPClientTracer with new span created from
// the context. | {
"resource": ""
} | ||
c13373 | train | // getClientTrace is a convenience to return a filled-in `ClientTrace`. | {
"resource": ""
} | ||
c13374 | train | // startSpan is a convenience that replaces the current span in our
// tracer and flushes the outgoing one. | {
"resource": ""
} | ||
c13375 | train | // finishSpan is called to ensure we're done tracing | {
"resource": ""
} | ||
c13376 | train | // NewXRaySpanSink creates a new instance of a XRaySpanSink. | {
"resource": ""
} | ||
c13377 | train | // Start the sink | {
"resource": ""
} | ||
c13378 | train | // Flush doesn't need to do anything, so we emit metrics
// instead. | {
"resource": ""
} | ||
c13379 | train | // Report sends one-off metric samples encapsulated in a Samples
// structure to a trace client without waiting for a reply. If the
// batch of metrics is empty, an error NoMetrics is returned. | {
"resource": ""
} | ||
c13380 | train | // ReportBatch sends a batch of one-off metrics to a trace client without
// waiting for a reply. If the batch of metrics is empty, an error
// NoMetrics is returned. | {
"resource": ""
} | ||
c13381 | train | // ReportOne sends a single metric to a veneur using a trace client
// without waiting for a reply. | {
"resource": ""
} | ||
c13382 | train | // Set the end timestamp and finalize Span state | {
"resource": ""
} | ||
c13383 | train | // Duration is a convenience function for
// the difference between the Start and End timestamps.
// It assumes the span has already ended. | {
"resource": ""
} | ||
c13384 | train | // ProtoMarshalTo writes the Trace as a protocol buffer
// in text format to the specified writer. | {
"resource": ""
} | ||
c13385 | train | // Record sends a trace to a veneur instance using the DefaultClient . | {
"resource": ""
} | ||
c13386 | train | // ClientRecord uses the given client to send a trace to a veneur
// instance. | {
"resource": ""
} | ||
c13387 | train | // Attach attaches the current trace to the context
// and returns a copy of the context with that trace
// stored under the key "trace". | {
"resource": ""
} | ||
c13388 | train | // StartTrace is called by to create the root-level span
// for a trace | {
"resource": ""
} | ||
c13389 | train | // StartChildSpan creates a new Span with the specified parent | {
"resource": ""
} | ||
c13390 | train | // NewKafkaMetricSink creates a new Kafka Plugin. | {
"resource": ""
} | ||
c13391 | train | // newConfiguredProducer returns a configured Sarama SyncProducer | {
"resource": ""
} | ||
c13392 | train | // Flush sends a slice of metrics to Kafka | {
"resource": ""
} | ||
c13393 | train | // NewKafkaSpanSink creates a new Kafka Plugin. | {
"resource": ""
} | ||
c13394 | train | // Flush emits metrics, since the spans have already been ingested and are
// sending async. | {
"resource": ""
} | ||
c13395 | train | // New creates an unstarted Server with the input MetricIngester's to send
// output to. | {
"resource": ""
} | ||
c13396 | train | // NewWorkerMetrics initializes a WorkerMetrics struct | {
"resource": ""
} | ||
c13397 | train | // appendExportedMetric appends the exported version of the input metric, with
// the inputted type. If the export fails, the original slice is returned
// and an error is logged. | {
"resource": ""
} | ||
c13398 | train | // NewWorker creates, and returns a new Worker object. | {
"resource": ""
} | ||
c13399 | train | // MetricsProcessedCount is a convenince method for testing
// that allows us to fetch the Worker's processed count
// in a non-racey way. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.