Commit e7b140f
authored
[exporterhelper] Switch request context encoding from map to KV list (#13216)
Resolves
#13188 (review)
This also required moving to gogoproto to reuse existing
opentelemetry.proto.common.v1.KeyValue message.
Benchmarks:
```
goos: darwin
goarch: arm64
pkg: go.opentelemetry.io/collector/pdata/xpdata/request
cpu: Apple M1 Max
before:
BenchmarkEncodeDecodeContext-10 519790 2278 ns/op 1376 B/op 22 allocs/op
after:
BenchmarkEncodeDecodeContext-10 747158 1600 ns/op 661 B/op 18 allocs/op
```1 parent d77b601 commit e7b140f
13 files changed
Lines changed: 1800 additions & 637 deletions
File tree
- exporter
- exporterhelper/internal/queue
- pdata/xpdata
- request
- internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
0 commit comments