Documentation ¶
Index ¶
- func NewProfilesExporter(ctx context.Context, set exporter.Settings, cfg component.Config, ...) (exporterprofiles.Profiles, error)
- func NewProfilesRequestExporter(_ context.Context, set exporter.Settings, converter RequestFromProfilesFunc, ...) (exporterprofiles.Profiles, error)
- type RequestFromProfilesFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProfilesExporter ¶
func NewProfilesExporter( ctx context.Context, set exporter.Settings, cfg component.Config, pusher consumerprofiles.ConsumeProfilesFunc, options ...exporterhelper.Option, ) (exporterprofiles.Profiles, error)
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.