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