timestampprocessor

package module
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Timestamp Processor for OpenTelemetry Collector

Supported pipeline types: metrics

The timestamp processor will round all timestamps in metrics streams to the nearest <duration>.

Examples:

processors:
  timestamp:
    round_to_nearest: 1s

Publishing a new version of this module

Please use semantic versioning standards when deciding on a new version number.

First, make sure that all changes are committed and pushed to the main branch.

Then:

go test ./...
git tag timestampprocessor/v1.4.0 # substitute the appropriate version
git push --follow-tags

To confirm that the published module is available:

go list -m github.com/honeycombio/opentelemetry-collector-configs/timestampprocessor@v1.4.0

Documentation

Overview

package timestampprocessor implements a processor for snapping timestamps to the nearest <duration>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() processor.Factory

NewFactory returns a new factory for the Filter processor.

Types

type Config

type Config struct {
	RoundToNearest *time.Duration `mapstructure:"round_to_nearest"`
}

Config defines configuration for Resource processor.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the processor configuration is valid

Jump to

Keyboard shortcuts

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