internal

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheckResponseBasedLabels

func AddCheckResponseBasedLabels(attributes pcommon.Map, checkResponse *flowcontrolv1.CheckResponse, sourceStr string)

AddCheckResponseBasedLabels adds the following labels: * otelconsts.ApertureProcessingDurationLabel * otelconsts.ApertureServicesLabel * otelconsts.ApertureControlPointLabel * otelconsts.ApertureRateLimitersLabel * otelconsts.ApertureDroppingRateLimitersLabel * otelconsts.ApertureConcurrencyLimitersLabel * otelconsts.ApertureDroppingConcurrencyLimitersLabel * otelconsts.ApertureWorkloadsLabel * otelconsts.ApertureDroppingWorkloadsLabel * otelconsts.ApertureFluxMetersLabel * otelconsts.ApertureFlowLabelKeysLabel * otelconsts.ApertureClassifiersLabel * otelconsts.ApertureClassifierErrorsLabel * otelconsts.ApertureDecisionTypeLabel * otelconsts.ApertureRejectReasonLabel * dynamic flow labels.

func AddEnvoySpecificLabels

func AddEnvoySpecificLabels(attributes pcommon.Map)

AddEnvoySpecificLabels adds labels specific to Envoy data source.

func AddFlowLabels

func AddFlowLabels(attributes pcommon.Map, checkResponse *flowcontrolv1.CheckResponse)

AddFlowLabels adds dynamic from labels.

func AddLuaSpecificLabels added in v1.1.0

func AddLuaSpecificLabels(attributes pcommon.Map)

AddLuaSpecificLabels adds labels specific to data source.

func AddSDKSpecificLabels

func AddSDKSpecificLabels(attributes pcommon.Map)

AddSDKSpecificLabels adds labels specific to SDK data source.

func EnforceIncludeListHTTP

func EnforceIncludeListHTTP(attributes pcommon.Map)

EnforceIncludeListHTTP filters attributes for HTTP telemetry.

func EnforceIncludeListSDK

func EnforceIncludeListSDK(attributes pcommon.Map)

EnforceIncludeListSDK filters attributes for SDK telemetry.

func FlowStatusForTelemetry added in v0.11.0

func FlowStatusForTelemetry(statusCode, flowStatusStr string) string

FlowStatusForTelemetry returns protocol independent Flow status for telemetry based on HTTP status code and Flow status.

func StatusLabelsForMetrics

func StatusLabelsForMetrics(
	decisionType flowcontrolv1.CheckResponse_DecisionType,
	statusCode string,
	flowStatus string,
) map[string]string

StatusLabelsForMetrics returns labels maps used which describe Histogram.

func StatusesFromAttributes

func StatusesFromAttributes(attributes pcommon.Map) (statusCode string, flowStatus string)

StatusesFromAttributes gets HTTP status code and Flow status from attributes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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