Commit 5e4d512
Refactor Lambda dimensions into helper method to reduce branches
Extract Lambda dimension logic into _add_lambda_dimensions() method
to reduce the number of branches in _create_emf_log() from 13 to 12,
fixing the pylint too-many-branches error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent de9383a commit 5e4d512
File tree
1 file changed
+25
-7
lines changed- aws-opentelemetry-distro/src/amazon/opentelemetry/distro/exporter/aws/metrics
1 file changed
+25
-7
lines changedaws-opentelemetry-distro/src/amazon/opentelemetry/distro/exporter/aws/metrics/base_emf_exporter.py
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
194 | 218 | | |
195 | 219 | | |
196 | 220 | | |
| |||
501 | 525 | | |
502 | 526 | | |
503 | 527 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
| 528 | + | |
511 | 529 | | |
512 | 530 | | |
513 | 531 | | |
| |||
0 commit comments