sdk

package module
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const HELIOS_TEST_TRIGGERED_TRACE = "hs-triggered-test"

Variables

This section is empty.

Functions

func CreateCustomSpan

func CreateCustomSpan(context context.Context, spanName string, attributes []attribute.KeyValue, callback func()) context.Context

func Initialize

func Initialize(serviceName string, apiToken string, attrs ...attribute.KeyValue) (*trace.TracerProvider, error)

func WithCollectorEndpoint

func WithCollectorEndpoint(collectorEndpoint string) attribute.KeyValue

func WithCollectorInsecure

func WithCollectorInsecure() attribute.KeyValue

func WithCollectorMetricsPath added in v0.1.19

func WithCollectorMetricsPath(collectorMetricsPath string) attribute.KeyValue

func WithCollectorPath

func WithCollectorPath(collectorPath string) attribute.KeyValue

func WithCommitHash

func WithCommitHash(commitHash string) attribute.KeyValue

func WithDebugMode

func WithDebugMode() attribute.KeyValue

func WithDisableMetricsCollection added in v0.1.21

func WithDisableMetricsCollection() attribute.KeyValue

func WithEnvironment

func WithEnvironment(environment string) attribute.KeyValue

func WithInstrumentationDisabled added in v0.1.17

func WithInstrumentationDisabled() attribute.KeyValue

func WithMetadataOnlyMode added in v0.1.13

func WithMetadataOnlyMode() attribute.KeyValue

func WithObfuscationAllowlistRules added in v0.1.16

func WithObfuscationAllowlistRules(allowlistRules []string) attribute.KeyValue

func WithObfuscationBlocklistRules added in v0.1.16

func WithObfuscationBlocklistRules(blocklistRules []string) attribute.KeyValue

func WithSamplingRatio

func WithSamplingRatio(samplingRatio float64) attribute.KeyValue

func WithServiceNamespace added in v0.1.20

func WithServiceNamespace(serviceNamespace string) attribute.KeyValue

func WithhmacKey added in v0.1.16

func WithhmacKey(hMacKey string) attribute.KeyValue

Types

type HeliosConfig

type HeliosConfig struct {
	// contains filtered or unexported fields
}

type HeliosProcessor

type HeliosProcessor struct{}

func (HeliosProcessor) ForceFlush

func (heliosProcessor HeliosProcessor) ForceFlush(context.Context) error

func (HeliosProcessor) OnEnd

func (heliosProcessor HeliosProcessor) OnEnd(s trace.ReadOnlySpan)

func (HeliosProcessor) OnStart

func (heliosProcessor HeliosProcessor) OnStart(ctx context.Context, s trace.ReadWriteSpan)

func (HeliosProcessor) Shutdown

func (heliosProcessor HeliosProcessor) Shutdown(context.Context) error

type HeliosSampler

type HeliosSampler struct {
	// contains filtered or unexported fields
}

func NewHeliosSampler

func NewHeliosSampler(samplingRatio float64) HeliosSampler

func (HeliosSampler) Description

func (hs HeliosSampler) Description() string

func (HeliosSampler) ShouldSample

func (hs HeliosSampler) ShouldSample(parameters trace.SamplingParameters) trace.SamplingResult

Jump to

Keyboard shortcuts

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