mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-10-30 18:26:25 +00:00
Finish the signoz -> o11y debrand that the debrand branch left partial:
- repoint SigNoz/signoz-otel-collector/{utils,constants,keycheck,metadataexporter,
processor/*} imports to the local hanzoai/otel-collector/* copies (already folded)
- rename package signozllmpricingprocessor -> o11yllmpricingprocessor (dir+pkg+typeStr)
- rename component type IDs: signozclickhouse{metrics,meter} -> o11yclickhouse*,
signozlogspipeline -> o11ylogspipeline, signozllmpricing -> o11yllmpricing
- rename files: schema-signoz.go -> schema.go, signoz_attributes.go -> o11y_attributes.go
- vendor SigNoz/grok's mutex-patched fork in-tree as pkg/grok (Apache-2.0, self-contained)
and drop the segmentio/ksuid->signoz/ksuid + vjeantet/grok->signoz/grok replaces
- restore constants.DistributedFieldKeysTable dropped in the earlier fold
- go.mod/go.sum: SigNoz/signoz-otel-collector require gone; 0 signoz in code
Full ./... build passes. LICENSE keeps upstream Apache attribution (legal).
Residual: ClickHouse dd-sketch driver forks (ch-go, clickhouse-go/v2) — next.
28 lines
742 B
YAML
28 lines
742 B
YAML
operators:
|
|
- id: router_o11y
|
|
type: router
|
|
default: noop
|
|
routes:
|
|
- expr: '"log_tags" in attributes'
|
|
output: parse-namespace
|
|
- id: parse-namespace
|
|
type: regex_parser
|
|
if: attributes?.log_tags != nil && attributes.log_tags matches "kube_namespace:(?P<k8s_namespace_name>[^,]+)"
|
|
on_error: send
|
|
parse_from: attributes.log_tags
|
|
parse_to: attributes
|
|
regex: kube_namespace:(?P<k8s_namespace_name>[^,]+)
|
|
output: remove-log-tags
|
|
- id: remove-log-tags
|
|
type: remove
|
|
if: attributes?.k8s_namespace_name != nil
|
|
field: attributes.log_tags
|
|
output: add-worked
|
|
- id: add-worked
|
|
type: add
|
|
field: attributes.worked
|
|
value: "true"
|
|
output: noop
|
|
- id: noop
|
|
type: noop
|