mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-10-30 18:26:25 +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
101 lines
3.1 KiB
YAML
101 lines
3.1 KiB
YAML
o11ytransform:
|
|
trace_statements:
|
|
- context: span
|
|
statements:
|
|
- set(name, "bear") where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
- context: resource
|
|
statements:
|
|
- set(attributes["name"], "bear")
|
|
metric_statements:
|
|
- context: datapoint
|
|
statements:
|
|
- set(metric.name, "bear") where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
- context: resource
|
|
statements:
|
|
- set(attributes["name"], "bear")
|
|
log_statements:
|
|
- context: log
|
|
statements:
|
|
- set(body, "bear") where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
- context: resource
|
|
statements:
|
|
- set(attributes["name"], "bear")
|
|
|
|
o11ytransform/ignore_errors:
|
|
error_mode: ignore
|
|
trace_statements:
|
|
- context: resource
|
|
statements:
|
|
- set(attributes["name"], "bear")
|
|
|
|
o11ytransform/bad_syntax_log:
|
|
log_statements:
|
|
- context: log
|
|
statements:
|
|
- set(body, "bear" where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/bad_syntax_metric:
|
|
metric_statements:
|
|
- context: datapoint
|
|
statements:
|
|
- set(name, "bear" where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/bad_syntax_trace:
|
|
trace_statements:
|
|
- context: span
|
|
statements:
|
|
- set(name, "bear" where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/bad_syntax_multi_signal:
|
|
trace_statements:
|
|
- context: span
|
|
statements:
|
|
- set(name, "bear" where attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
metric_statements:
|
|
- context: datapoint
|
|
statements:
|
|
- set(name, "bear" attributes["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
log_statements:
|
|
- context: log
|
|
statements:
|
|
- set(body, "bear" none["http.path"] == "/animal"
|
|
- keep_keys(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/unknown_function_log:
|
|
log_statements:
|
|
- context: log
|
|
statements:
|
|
- set(body, "bear") where attributes["http.path"] == "/animal"
|
|
- not_a_function(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/unknown_function_metric:
|
|
metric_statements:
|
|
- context: datapoint
|
|
statements:
|
|
- set(metric.name, "bear") where attributes["http.path"] == "/animal"
|
|
- not_a_function(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/unknown_function_trace:
|
|
trace_statements:
|
|
- context: span
|
|
statements:
|
|
- set(name, "bear") where attributes["http.path"] == "/animal"
|
|
- not_a_function(attributes, ["http.method", "http.path"])
|
|
|
|
o11ytransform/unknown_context:
|
|
trace_statements:
|
|
- context: test
|
|
statements:
|
|
- set(name, "bear") where attributes["http.path"] == "/animal"
|
|
|
|
o11ytransform/unknown_error_mode:
|
|
error_mode: test
|