apm

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	EnvOTELServiceName          = "OTEL_SERVICE_NAME"
	EnvOTELExporterOTLPEndpoint = "OTEL_EXPORTER_OTLP_ENDPOINT"
	EnvOTELResourceAttrs        = "OTEL_RESOURCE_ATTRIBUTES"
	EnvOTELPropagators          = "OTEL_PROPAGATORS"
	EnvOTELTracesSampler        = "OTEL_TRACES_SAMPLER"
	EnvOTELTracesSamplerArg     = "OTEL_TRACES_SAMPLER_ARG"

	EnvPodName  = "OTEL_RESOURCE_ATTRIBUTES_POD_NAME"
	EnvPodUID   = "OTEL_RESOURCE_ATTRIBUTES_POD_UID"
	EnvNodeName = "OTEL_RESOURCE_ATTRIBUTES_NODE_NAME"
)
View Source
const (
	EnvNewRelicAppName            = "NEW_RELIC_APP_NAME"
	EnvNewRelicK8sOperatorEnabled = "NEW_RELIC_K8S_OPERATOR_ENABLED"
	EnvNewRelicLabels             = "NEW_RELIC_LABELS"
	EnvNewRelicLicenseKey         = "NEW_RELIC_LICENSE_KEY"
)
View Source
const LicenseKey = "new_relic_license_key"

Variables

View Source
var DefaultInjectorRegistry = NewInjectorRegistry()
View Source
var ErrInjectorAlreadyRegistered = errors.New("injector already registered in registry")

Functions

This section is empty.

Types

type DotnetInjector added in v0.14.0

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

func (*DotnetInjector) ConfigureClient added in v0.14.0

func (i *DotnetInjector) ConfigureClient(client client.Client)

func (*DotnetInjector) ConfigureLogger added in v0.14.0

func (i *DotnetInjector) ConfigureLogger(logger logr.Logger)

func (DotnetInjector) Inject added in v0.14.0

func (*DotnetInjector) Language added in v0.14.0

func (i *DotnetInjector) Language() string

type GoInjector added in v0.14.0

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

func (*GoInjector) ConfigureClient added in v0.14.0

func (i *GoInjector) ConfigureClient(client client.Client)

func (*GoInjector) ConfigureLogger added in v0.14.0

func (i *GoInjector) ConfigureLogger(logger logr.Logger)

func (*GoInjector) Inject added in v0.14.0

func (*GoInjector) Language added in v0.14.0

func (i *GoInjector) Language() string

type Injector added in v0.14.0

type Injector interface {
	Inject(ctx context.Context, inst v1alpha2.Instrumentation, ns corev1.Namespace, pod corev1.Pod) (corev1.Pod, error)
	Language() string
	ConfigureClient(client client.Client)
	ConfigureLogger(logger logr.Logger)
}

type InjectorRegistery added in v0.14.0

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

func NewInjectorRegistry added in v0.14.0

func NewInjectorRegistry() *InjectorRegistery

func (*InjectorRegistery) GetInjectors added in v0.14.0

func (ir *InjectorRegistery) GetInjectors() Injectors

func (*InjectorRegistery) MustRegister added in v0.14.0

func (ir *InjectorRegistery) MustRegister(injector Injector)

func (*InjectorRegistery) Register added in v0.14.0

func (ir *InjectorRegistery) Register(injector Injector) error

type Injectors added in v0.14.0

type Injectors []Injector

func (Injectors) Names added in v0.14.0

func (i Injectors) Names() []string

type JavaInjector added in v0.14.0

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

func (*JavaInjector) ConfigureClient added in v0.14.0

func (i *JavaInjector) ConfigureClient(client client.Client)

func (*JavaInjector) ConfigureLogger added in v0.14.0

func (i *JavaInjector) ConfigureLogger(logger logr.Logger)

func (*JavaInjector) Inject added in v0.14.0

func (*JavaInjector) Language added in v0.14.0

func (i *JavaInjector) Language() string

type NodejsInjector added in v0.14.0

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

func (*NodejsInjector) ConfigureClient added in v0.14.0

func (i *NodejsInjector) ConfigureClient(client client.Client)

func (*NodejsInjector) ConfigureLogger added in v0.14.0

func (i *NodejsInjector) ConfigureLogger(logger logr.Logger)

func (*NodejsInjector) Inject added in v0.14.0

func (*NodejsInjector) Language added in v0.14.0

func (i *NodejsInjector) Language() string

type PhpInjector added in v0.14.0

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

func (*PhpInjector) ConfigureClient added in v0.14.0

func (i *PhpInjector) ConfigureClient(client client.Client)

func (*PhpInjector) ConfigureLogger added in v0.14.0

func (i *PhpInjector) ConfigureLogger(logger logr.Logger)

func (*PhpInjector) Inject added in v0.14.0

Inject is used to inject the PHP agent.

func (PhpInjector) Language added in v0.14.0

func (al PhpInjector) Language() string

type PythonInjector added in v0.14.0

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

func (*PythonInjector) ConfigureClient added in v0.14.0

func (i *PythonInjector) ConfigureClient(client client.Client)

func (*PythonInjector) ConfigureLogger added in v0.14.0

func (i *PythonInjector) ConfigureLogger(logger logr.Logger)

func (*PythonInjector) Inject added in v0.14.0

func (*PythonInjector) Language added in v0.14.0

func (i *PythonInjector) Language() string

type RubyInjector added in v0.14.0

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

func (*RubyInjector) ConfigureClient added in v0.14.0

func (i *RubyInjector) ConfigureClient(client client.Client)

func (*RubyInjector) ConfigureLogger added in v0.14.0

func (i *RubyInjector) ConfigureLogger(logger logr.Logger)

func (*RubyInjector) Inject added in v0.14.0

func (*RubyInjector) Language added in v0.14.0

func (i *RubyInjector) Language() string

Jump to

Keyboard shortcuts

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