DefaultObservationCompressor 默认的观察结果压缩器实现
| 78 | |
| 79 | // DefaultObservationCompressor 默认的观察结果压缩器实现 |
| 80 | type DefaultObservationCompressor struct { |
| 81 | // maxSummaryLength 摘要最大长度 |
| 82 | maxSummaryLength int |
| 83 | |
| 84 | // minCompressLength 触发压缩的最小长度 |
| 85 | minCompressLength int |
| 86 | |
| 87 | // preservePatterns 需要保留的模式 |
| 88 | preservePatterns []*regexp.Regexp |
| 89 | } |
| 90 | |
| 91 | // NewDefaultObservationCompressor 创建默认压缩器 |
| 92 | func NewDefaultObservationCompressor() *DefaultObservationCompressor { |
nothing calls this directly
no outgoing calls
no test coverage detected