exporterhelperprofiles

package module
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProfilesExporter

NewProfilesExporter creates an exporterprofiles.Profiles that records observability metrics and wraps every request with a Span.

func NewProfilesRequestExporter

func NewProfilesRequestExporter(
	_ context.Context,
	set exporter.Settings,
	converter RequestFromProfilesFunc,
	options ...exporterhelper.Option,
) (exporterprofiles.Profiles, error)

NewProfilesRequestExporter creates a new profiles exporter based on a custom ProfilesConverter and RequestSender. Experimental: This API is at the early stage of development and may change without backward compatibility until https://github.com/open-telemetry/opentelemetry-collector/issues/8122 is resolved.

Types

type RequestFromProfilesFunc

type RequestFromProfilesFunc func(context.Context, pprofile.Profiles) (exporterhelper.Request, error)

RequestFromProfilesFunc converts pprofile.Profiles into a user-defined Request. Experimental: This API is at the early stage of development and may change without backward compatibility until https://github.com/open-telemetry/opentelemetry-collector/issues/8122 is resolved.

Jump to

Keyboard shortcuts

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