opencensusexporter

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

OpenCensus Exporter

Exports traces and/or metrics via gRPC using OpenCensus format.

The following settings are required:

The following settings can be optionally configured:

  • insecure (default = false): whether to enable client transport security for the exporter's gRPC connection. See grpc.WithInsecure().
  • ca_file path to the CA cert. For a client this verifies the server certificate. Should only be used if insecure is set to false.
  • cert_file path to the TLS cert to use for TLS required connections. Should only be used if insecure is set to false.
  • key_file path to the TLS key to use for TLS required connections. Should only be used if insecure is set to false.
  • compression (default = gzip): compression key for supported compression types within collector. Currently the only supported mode is gzip.
  • headers the headers associated with gRPC requests.
  • keepalive keepalive parameters for client gRPC. See grpc.WithKeepaliveParams().
  • num_workers (default = 2): number of workers that send the gRPC requests. Optional.
  • balancer_name(default = pick_first): Sets the balancer in grpclb_policy to discover the servers. See grpc loadbalancing example.
  • wait_for_ready: Option not supported.

Example:

exporters:
  opencensus:
    endpoint: otelcol2:55678

The full list of settings exposed for this exporter are documented here with detailed sample configurations here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.9.0

func NewFactory() component.ExporterFactory

NewFactory creates a factory for OTLP exporter.

Types

type Config

type Config struct {
	configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.

	configgrpc.GRPCClientSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.

	// The number of workers that send the gRPC requests.
	NumWorkers int `mapstructure:"num_workers"`
}

Config defines configuration for OpenCensus exporter.

Jump to

Keyboard shortcuts

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