metric

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MetricAttributeDocumentType = "document_type"
View Source
const MetricDescriptionDocumentGenerateDuration = "The duration of the document generation"
View Source
const MetricDescriptionDocumentGenerateFailed = "Sum of documents that failed to generate due to an error"
View Source
const MetricDescriptionDocumentGenerateSuccessful = "Sum of documents that were generated successfully"
View Source
const MetricDescriptionDocumentPreviewDelivered = "Sum of document previews that was delivered fully to the client"
View Source
const MetricDescriptionDocumentPreviewRequested = "Sum of requested document previews"
View Source
const MetricNameDocumentGenerateDuration = "restaurant.documents.generate.duration" // "Duration of document generation" Unit: "ms" Histogram
View Source
const MetricNameDocumentGenerateFailed = "restaurant.documents.generate.failed"
View Source
const MetricNameDocumentGenerateSuccessful = "restaurant.documents.generate.successful"
View Source
const MetricNameDocumentPreviewDelivered = "restaurant.documents.preview.delivered"
View Source
const MetricNameDocumentPreviewRequested = "restaurant.documents.preview.requested"
View Source
const OtelMetricEndpointEnv = "OTEL_EXPORTER_OTLP_METRICS_ENDPOINT"
View Source
const ServiceNameEnv = "OTEL_SERVICE_NAME"

Variables

This section is empty.

Functions

func ActualMetrics

func ActualMetrics(t *testing.T, reader *metric.ManualReader) metricdata.ResourceMetrics

func DocumentGenerated

func DocumentGenerated(documentType string, duration time.Duration, err error)

func ForceFlush

func ForceFlush()

func InitializeMetrics

func InitializeMetrics() (*metric.MeterProvider, error)

func MockMetric

func MockMetric() (*metric.ManualReader, *metric.MeterProvider)

func PreviewDelivered

func PreviewDelivered()

func PreviewRequested

func PreviewRequested()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL