Skip to content

Commit

Permalink
Rename attributes_to_metrics to metrics_from_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrannajaryan committed Jul 19, 2022
1 parent 850108f commit 0d31213
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specification/schemas/file_format_v1.1.0.md
Expand Up @@ -170,8 +170,8 @@ applicable only to Span's Event data type. It must contain a sub-section named
"changes" that defines a sequence of actions to be applied to convert events
from the previous version to this version.

Two transformations are supported for section "spans_events": "rename_events"
and "rename_attributes".
Three transformations are supported for section "spans_events": "rename_events",
"rename_attributes" and "split".

#### rename_events Transformation

Expand Down Expand Up @@ -271,7 +271,7 @@ Here is the structure:
# eliminated, the new metric will not have it.
by_attribute:
# Names of new metrics to create, one for each possible value of attribute.
attributes_to_metrics:
metrics_from_attributes:
# map of key/values. The keys are the new metric name starting from this
# version, the values are the old attribute value used in the previous version.
```
Expand Down Expand Up @@ -558,7 +558,7 @@ versions:
# eliminated, the new metric will not have it.
by_attribute: direction
# Names of new metrics to create, one for each possible value of attribute.
attributes_to_metrics:
metrics_from_attributes:
# If "direction" attribute equals "in" create a new metric called "system.paging.operations.in".
system.paging.operations.in: in
# If "direction" attribute equals "out" create a new metric called "system.paging.operations.out".
Expand Down

0 comments on commit 0d31213

Please sign in to comment.