Documentation ¶
Overview ¶
Package headers provides an otelcol.auth.headers component.
Index ¶
- Variables
- type Action
- type Arguments
- func (args Arguments) Convert() (otelcomponent.Config, error)
- func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
- func (args Arguments) Exporters() map[pipeline.Signal]map[otelcomponent.ID]otelcomponent.Component
- func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
- func (args *Arguments) SetToDefault()
- type Header
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHeader = Header{ Action: ActionUpsert, }
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
func (*Action) Convert ¶
func (a *Action) Convert(hc *headerssetterextension.HeaderConfig) error
Convert the Alloy type to the Otel type. TODO: When headerssetterextension.actionValue is made external, remove the input parameter and make this output the Otel type.
func (*Action) UnmarshalText ¶
type Arguments ¶
type Arguments struct { Headers []Header `alloy:"header,block,optional"` // DebugMetrics configures component internal metrics. Optional. DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"` }
Arguments configures the otelcol.auth.headers component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements auth.Arguments.
func (Arguments) DebugMetricsConfig ¶ added in v1.2.0
func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
DebugMetricsConfig implements auth.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[pipeline.Signal]map[otelcomponent.ID]otelcomponent.Component
Exporters implements auth.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements auth.Arguments.
func (*Arguments) SetToDefault ¶ added in v1.2.0
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Header ¶
type Header struct { Key string `alloy:"key,attr"` Value *alloytypes.OptionalSecret `alloy:"value,attr,optional"` FromContext *string `alloy:"from_context,attr,optional"` Action Action `alloy:"action,attr,optional"` }
Header is an individual Header to send along with requests.
func (*Header) SetToDefault ¶
func (h *Header) SetToDefault()
SetToDefault implements syntax.Defaulter.
Click to show internal directories.
Click to hide internal directories.