mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-11-03 02:20:04 +00:00
- Go module: github.com/SigNoz/signoz-otel-collector → github.com/hanzoai/otel-collector - All signoz-prefixed packages → o11y-prefixed - Docker: signoz/* → ghcr.io/hanzoai/otel-collector - ClickHouse exporter → Hanzo Datastore - Env vars: SIGNOZ_* → HANZO_* - Directory renames for all processor/receiver/exporter packages
28 lines
789 B
Go
28 lines
789 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package unmarshaler // import "github.com/hanzoai/otel-collector/receiver/o11yawsfirehosereceiver/internal/unmarshaler"
|
|
|
|
import (
|
|
"go.opentelemetry.io/collector/pdata/plog"
|
|
"go.opentelemetry.io/collector/pdata/pmetric"
|
|
)
|
|
|
|
// MetricsUnmarshaler deserializes the message body
|
|
type MetricsUnmarshaler interface {
|
|
// Unmarshal deserializes the records into metrics.
|
|
Unmarshal(records [][]byte) (pmetric.Metrics, error)
|
|
|
|
// Type of the serialized messages.
|
|
Type() string
|
|
}
|
|
|
|
// LogsUnmarshaler deserializes the message body
|
|
type LogsUnmarshaler interface {
|
|
// Unmarshal deserializes the records into logs.
|
|
Unmarshal(records [][]byte) (plog.Logs, error)
|
|
|
|
// Type of the serialized messages.
|
|
Type() string
|
|
}
|