Skip to content

Commit 17414a9

Browse files
fix: update package name for component to match full path (#62)
### Description Added `github.com/observeinc` prefix to package name for component to match fully qualified package path. Also updated `README.md` to reflect new processor and docs for `init-config` command. ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
1 parent 1ab3090 commit 17414a9

File tree

18 files changed

+86
-327
lines changed

18 files changed

+86
-327
lines changed

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,26 @@ Current OTEL Collector Version: `v0.105.0`
4141

4242
This section lists the components that are included in the Observe Distribution of the OpenTelemetry Collector.
4343

44-
| Receivers | Processors | Exporters | Extensions | Connectors |
45-
|----------------------------------------------------------|-------------------------------------------------|------------------------------|--------------------------------------|-----------------------------|
46-
| [awsecscontainermetrics][awsecscontainermetricsreceiver] | [attributes][attributesprocessor] | [debug][debugexporter] | [file_storage][filestorage] | [count][countconnector] |
47-
| [docker_stats][dockerstatsreceiver] | [batch][batchprocessor] | [file][fileexporter] | [health_check][healthcheckextension] | [forward][forwardconnector] |
48-
| [elasticsearch][elasticsearchreceiver] | [filter][filterprocessor] | [otlphttp][otlphttpexporter] | [zpages][zpagesextension] | |
49-
| [filelog][filelogreceiver] | [k8sattributes][k8sattributesprocessor] | | | |
50-
| [filestats][filestatsreceiver] | [memory_limiter][memorylimiterprocessor] | | | |
51-
| [hostmetrics][hostmetricsreceiver] | [resourcedetection][resourcedetectionprocessor] | | | |
52-
| [iis][iisreceiver] | [transform][transformprocessor] | | | |
53-
| [journald][journaldreceiver] | | | | |
54-
| [k8s_cluster][k8sclusterreceiver] | | | | |
55-
| [k8sobjects][k8sobjectsreceiver] | | | | |
56-
| [kafkametrics][kafkametricsreceiver] | | | | |
57-
| [kafka][kafkareceiver] | | | | |
58-
| [kubeletstats][kubeletstatsreceiver] | | | | |
59-
| [otlp][otlpreceiver] | | | | |
60-
| [prometheus][prometheusreceiver] | | | | |
61-
| [redis][redisreceiver] | | | | |
62-
| [statsd][statsdreceiver] | | | | |
63-
| [windowseventlog][windowseventlogreceiver] | | | | |
44+
| Receivers | Processors | Exporters | Extensions | Connectors |
45+
|----------------------------------------------------------|-------------------------------------------------------|------------------------------|--------------------------------------|-----------------------------|
46+
| [awsecscontainermetrics][awsecscontainermetricsreceiver] | [attributes][attributesprocessor] | [debug][debugexporter] | [file_storage][filestorage] | [count][countconnector] |
47+
| [docker_stats][dockerstatsreceiver] | [batch][batchprocessor] | [file][fileexporter] | [health_check][healthcheckextension] | [forward][forwardconnector] |
48+
| [elasticsearch][elasticsearchreceiver] | [filter][filterprocessor] | [otlphttp][otlphttpexporter] | [zpages][zpagesextension] | |
49+
| [filelog][filelogreceiver] | [k8sattributes][k8sattributesprocessor] | | | |
50+
| [filestats][filestatsreceiver] | [memory_limiter][memorylimiterprocessor] | | | |
51+
| [hostmetrics][hostmetricsreceiver] | [observek8sattributes][observek8sattributesprocessor] | | | |
52+
| [iis][iisreceiver] | [resourcedetection][resourcedetectionprocessor] | | | |
53+
| [journald][journaldreceiver] | [transform][transformprocessor] | | | |
54+
| [k8s_cluster][k8sclusterreceiver] | | | | |
55+
| [k8sobjects][k8sobjectsreceiver] | | | | |
56+
| [kafkametrics][kafkametricsreceiver] | | | | |
57+
| [kafka][kafkareceiver] | | | | |
58+
| [kubeletstats][kubeletstatsreceiver] | | | | |
59+
| [otlp][otlpreceiver] | | | | |
60+
| [prometheus][prometheusreceiver] | | | | |
61+
| [redis][redisreceiver] | | | | |
62+
| [statsd][statsdreceiver] | | | | |
63+
| [windowseventlog][windowseventlogreceiver] | | | | |
6464

6565
[awsecscontainermetricsreceiver]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.105.0/receiver/awsecscontainermetricsreceiver
6666
[dockerstatsreceiver]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.105.0/receiver/dockerstatsreceiver
@@ -85,6 +85,7 @@ This section lists the components that are included in the Observe Distribution
8585
[filterprocessor]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.105.0/processor/filterprocessor
8686
[k8sattributesprocessor]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.105.0/processor/k8sattributesprocessor
8787
[memorylimiterprocessor]: https://github.com/open-telemetry/opentelemetry-collector/tree/v0.105.0/processor/memorylimiterprocessor
88+
[observek8sattributesprocessor]: ./components/processors/observek8sattributesprocessor
8889
[resourcedetectionprocessor]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.105.0/processor/resourcedetectionprocessor
8990
[transformprocessor]: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.105.0/processor/transformprocessor
9091
[debugexporter]: https://github.com/open-telemetry/opentelemetry-collector/tree/v0.105.0/exporter/debugexporter

cmd/commands/initconfig/initconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewConfigureCmd() *cobra.Command {
4141
return &cobra.Command{
4242
Use: "init-config",
4343
Short: "Initialize agent configuration",
44-
Long: `This command takes in parameters and creates an initialized observe agent configuration file. Will overwrite existing config files with default values.`,
44+
Long: `This command takes in parameters and creates an initialized observe agent configuration file. Will overwrite existing config file and should only be used to initialize.`,
4545
RunE: func(cmd *cobra.Command, args []string) error {
4646
configValues := FlatAgentConfig{
4747
Token: viper.GetString("token"),

components/processors/observek8sattributesprocessor/factory.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package observek8sattributesprocessor
33
import (
44
"context"
55

6+
"github.com/observeinc/observe-agent/components/processors/observek8sattributesprocessor/internal/metadata"
7+
68
"go.opentelemetry.io/collector/component"
79
"go.opentelemetry.io/collector/consumer"
810
"go.opentelemetry.io/collector/processor"
@@ -13,9 +15,9 @@ var processorCapabilities = consumer.Capabilities{MutatesData: true}
1315

1416
func NewFactory() processor.Factory {
1517
return processor.NewFactory(
16-
Type,
18+
metadata.Type,
1719
createDefaultConfig,
18-
processor.WithLogs(createLogsProcessor, LogsStability),
20+
processor.WithLogs(createLogsProcessor, metadata.LogsStability),
1921
)
2022
}
2123

components/processors/observek8sattributesprocessor/generated_component_test.go

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/processors/observek8sattributesprocessor/generated_status.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

components/processors/observek8sattributesprocessor/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module observe-agent/components/processors/observek8sattributesprocessor
1+
module github.com/observeinc/observe-agent/components/processors/observek8sattributesprocessor
22

33
go 1.22.3
44

components/processors/observek8sattributesprocessor/internal/metadata/generated_status.go

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/processors/observek8sattributesprocessor/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ scope_name: observe-agent/processor/observek8sattributes
44
status:
55
class: processor
66
stability:
7-
beta: [traces, metrics, logs]
7+
beta: [logs]

go.work

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ use (
55
./cmd/collector
66
./components/processors/observek8sattributesprocessor
77
)
8-
9-
replace github.com/observeinc/observe-agent/components/processors/observek8sattributesprocessor => ./components/processors/observek8sattributesprocessor

vendor/github.com/observeinc/observe-agent/components/processors/observek8sattributesprocessor/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)