Documentation ¶
Index ¶
- Constants
- func ActualMetrics(t *testing.T, reader *metric.ManualReader) metricdata.ResourceMetrics
- func DocumentGenerated(documentType string, duration time.Duration, err error)
- func ForceFlush()
- func InitializeMetrics() (*metric.MeterProvider, error)
- func MockMetric() (*metric.ManualReader, *metric.MeterProvider)
- func PreviewDelivered()
- func PreviewRequested()
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 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.
Click to show internal directories.
Click to hide internal directories.