avrologencodingextension

package module
v0.156.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 15 Imported by: 2

README

AVRO Log Encoding Extension

The avrolog encoding extension is used to unmarshal AVRO and insert it into the body of a log record. Marshalling is not supported.

Status
Stability development
Distributions []
Issues Open issues Closed issues
Code Owners @thmshmm

The extension accepts a configuration option to specify the Avro schema to use to read the log record body.

Example:

extensions:
  avro_log_encoding:
    schema: |
      {
        "type" : "record",
        "namespace" : "example",
        "name" : "Datapoint",
        "fields" : [
          { "name" : "Key" , "type" : "string" },
          { "name" : "Value" , "type" : "int" }
        ]
      }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type Config

type Config struct {
	Schema string `mapstructure:"schema"`
	// contains filtered or unexported fields
}

func (*Config) Validate

func (c *Config) Validate() error

Directories

Path Synopsis
internal
metadata
Package metadata contains the autogenerated telemetry and build information for the extension/avro_log_encoding component.
Package metadata contains the autogenerated telemetry and build information for the extension/avro_log_encoding component.

Jump to

Keyboard shortcuts

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