flare

package
v0.0.0-...-2feb83d Latest Latest
Warning

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

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

Documentation

Overview

Package flare implements a component to generate flares from the agent.

A flare is a archive containing all the information necessary to troubleshoot the Agent. When openeing a support ticket a flare might be requested. Flares contain the Agent logs, configurations and much more.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fxutil.Module

Module defines the fx options for this component.

Types

type Component

type Component interface {
	// Create creates a new flare locally and returns the path to the flare file.
	Create(pdata ProfileData, ipcError error) (string, error)
	// Send sends a flare archive to Datadog.
	Send(flarePath string, caseID string, email string, source helpers.FlareSource) (string, error)
}

Component is the component type.

type Params

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

Params defines the parameters for the flare component.

func NewLocalParams

func NewLocalParams(distPath string, pythonChecksPath string, defaultLogFile string, defaultJMXLogFile string, defaultDogstatsdLogFile string) Params

NewLocalParams returns parameters for to initialize a local flare component. Local flares are meant to be created by the CLI process instead of the main Agent one.

func NewParams

func NewParams(distPath string, pythonChecksPath string, defaultLogFile string, defaultJMXLogFile string, defaultDogstatsdLogFile string) Params

NewParams returns parameters for to initialize a non local flare component

type ProfileData

type ProfileData map[string][]byte

ProfileData maps (pprof) profile names to the profile data.

Directories

Path Synopsis
Package helpers contains helpers for the flare component.
Package helpers contains helpers for the flare component.
types module

Jump to

Keyboard shortcuts

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