flightrecorderreceiver

package module
v0.0.0-...-19af07a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 24 Imported by: 0

README

FlightRecorder Receiver

The FlightRecorder receiver collects profiles, generated by Go's trace.FlightRecorder, from files specified with a global pattern.

Configuration

  • include (required): The glob path for files to watch
  • collection_interval (default = 1m): The interval at which metrics are emitted by this receiver.
  • initial_delay (default = 1s): defines how long this receiver waits before starting.
Example
receivers:
  flightrecorder:
    include: /tmp/flightrecorder/*
    collection_interval: 10s
    initial_delay: 1s

service:
  pipelines:
    profiles:
      receivers: [flightrecorder]
      exporters: [otlp/profiles]

    metrics:
      receivers: [flightrecorder]
      exporters: [otlp/metrics]
Note

This receiver does not replace specialized tools like gotraceui, as the transformation from the format of trace.FlightRecorder to OpenTelemetry Profiles is NOT lossless.

Donation

There is a donation proposal for this component with https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/46089.

Documentation

Overview

Package flightrecorderreceiver transforms Go Flight Recorder data into a OTel Profiles signal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

Types

type Config

type Config struct {
	scraperhelper.ControllerConfig `mapstructure:",squash"`

	// Include specifies the glob pattern for flight recorder files to process
	Include string `mapstructure:"include"`
	// contains filtered or unexported fields
}

Directories

Path Synopsis
internal
metadata
Package metadata holds auto generated code by mdatagen.
Package metadata holds auto generated code by mdatagen.

Jump to

Keyboard shortcuts

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