Versions in this module Expand all Collapse all v1 v1.0.2 May 10, 2023 Changes in this version + func Check(t *testing.T, configuration []Configuration, key string, expected interface{}) + func Disabled() bool + func LoadIntegration(name string) + func MockGlobalClient(client Client) func() + func SetAgentlessEndpoint(endpoint string) string + func Time(namespace Namespace, name string, tags []string, common bool) (finish func()) + type AdditionalPayload struct + Name string + Value interface{} + type AppStarted struct + AdditionalPayload []AdditionalPayload + Configuration []Configuration + Error Error + Products Products + type Application struct + Env string + LanguageName string + LanguageVersion string + RuntimeName string + RuntimePatches string + RuntimeVersion string + ServiceName string + ServiceVersion string + TracerVersion string + type Body struct + APIVersion string + Application Application + Debug bool + Host Host + Payload interface{} + RequestType RequestType + RuntimeID string + SeqID int64 + TracerTime int64 + type Client interface + ApplyOps func(opts ...Option) + Count func(namespace Namespace, name string, value float64, tags []string, common bool) + ProductStart func(namespace Namespace, configuration []Configuration) + Record func(namespace Namespace, metric MetricKind, name string, value float64, ...) + Stop func() + var GlobalClient Client + var LogPrefix = "Instrumentation telemetry: " + type Configuration struct + Error Error + IsOverriden bool + Name string + Origin string + Value interface{} + func BoolConfig(key string, val bool) Configuration + func FloatConfig(key string, val float64) Configuration + func IntConfig(key string, val int) Configuration + func StringConfig(key string, val string) Configuration + type ConfigurationChange struct + Configuration []Configuration + RemoteConfig RemoteConfig + type Dependencies struct + Dependencies []Dependency + type Dependency struct + Name string + Version string + type DistributionMetrics struct + Namespace Namespace + Series []DistributionSeries + type DistributionSeries struct + Common bool + Metric string + Points []float64 + Tags []string + type Error struct + Code int + Message string + type Host struct + Architecture string + Hostname string + KernelName string + KernelRelease string + KernelVersion string + OS string + OSVersion string + type Integration struct + AutoEnabled bool + Compatible bool + Enabled bool + Error string + Name string + Version string + func Integrations() []Integration + type IntegrationsChange struct + Integrations []Integration + type MetricKind string + var MetricKindCount MetricKind = "count" + var MetricKindDist MetricKind = "distribution" + var MetricKindGauge MetricKind = "gauge" + type Metrics struct + Namespace Namespace + Series []Series + type Namespace string + const NamespaceASM + const NamespaceProfilers + const NamespaceTracers + type Option func(*client) + func WithAPIKey(v string) Option + func WithEnv(env string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithNamespace(name Namespace) Option + func WithService(service string) Option + func WithURL(agentless bool, agentURL string) Option + func WithVersion(version string) Option + type ProductDetails struct + Enabled bool + Error Error + Version string + type Products struct + AppSec ProductDetails + Profiler ProductDetails + type RemoteConfig struct + ConfigsRecieved bool + Error Error + UserEnabled string + type Request struct + Body *Body + HTTPClient *http.Client + Header *http.Header + URL string + type RequestType string + const RequestTypeAppClientConfigurationChange + const RequestTypeAppClosing + const RequestTypeAppHeartbeat + const RequestTypeAppIntegrationsChange + const RequestTypeAppProductChange + const RequestTypeAppStarted + const RequestTypeDependenciesLoaded + const RequestTypeDistributions + const RequestTypeGenerateMetrics + type Series struct + Common bool + Interval int + Metric string + Namespace string + Points [][2]float64 + Tags []string + Type string