Files
jcoffey-dev 1e7e8dfd48
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 7m26s
Vendor upstream's opentelemetry-rust fork at the pinned commit
2026-10-27 22:55:35 -07:00

46 lines
1.3 KiB
YAML

# Whitespace control settings to simplify the definition of templates
whitespace_control:
trim_blocks: true
lstrip_blocks: true
# Configuration for the comment formatting
comment_formats:
rust:
format: markdown
prefix: "/// "
trim: true
remove_trailing_dots: true
escape_square_brackets: true
default_comment_format: rust
params:
schema_url: "https://opentelemetry.io/schemas/1.42.0"
exclude_root_namespace: []
excluded_attributes: ["messaging.client_id"]
templates:
- pattern: attribute.rs.j2
filter: semconv_grouped_attributes($params)
application_mode: single
- pattern: metric.rs.j2
filter: semconv_grouped_metrics($params)
application_mode: single
- pattern: resource.rs.j2
filter: >
semconv_signal("resource"; $params)
| map(.attributes[])
| unique_by(.name)
| sort_by(.name)
| map({name, brief, examples, deprecated, requirement_level, stability, type})
application_mode: single
- pattern: trace.rs.j2
filter: >
(semconv_signal("span"; $params) // []) + (semconv_signal("event"; $params) // [])
| map(.attributes // [] | .[])
| unique_by(.name)
| sort_by(.name)
| map({name, brief, examples, deprecated, requirement_level, stability, type})
application_mode: single
- pattern: lib.rs.j2
filter: .
application_mode: single