Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Jul 1, 2024
1 parent 9ce3395 commit 7fa713f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions processor/transformprocessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ In addition to OTTL functions, the processor defines its own functions to help w
- [convert_summary_count_val_to_sum](#convert_summary_count_val_to_sum)
- [convert_summary_sum_val_to_sum](#convert_summary_sum_val_to_sum)
- [copy_metric](#copy_metric)
- [convert_exponential_hist_to_explicit_hist](#convert_exponential_hist_to_explicit_hist)

### convert_sum_to_gauge

Expand Down Expand Up @@ -347,6 +348,19 @@ Examples:

- `copy_metric(desc="new desc") where description == "old desc"`

### convert_exponential_hist_to_explicit_hist

`convert_exponential_hist_to_explicit_hist([ExplicitBounds])`

the `convert_exponential_hist_to_explicit_hist` function converts an ExponentialHistogram to an Explicit (_normal_) Histogram.

`ExplicitBounds` is represents the list of bucket boundaries for the new histogram. This argument is __required__ and __cannot be empty__.

__WARNING:__

The process of converting an ExponentialHistogram to an Explicit Histogram is not perfect and may result in a loss of precision. It is important to define an appropriate set of bucket boundaries to minimize this loss. For example, selecting Boundaries that are too high or too low may result histogram buckets that are too wide or too narrow, respectively.


## Examples

### Perform transformation if field does not exist
Expand Down

0 comments on commit 7fa713f

Please sign in to comment.