Commit 3edd436
committed
Simplify session params handling
Address PR review comments by simplifying the session configuration logic.
Always create a new map and copy existing params regardless of whether
metric view metadata is enabled.
This makes the code cleaner and more consistent:
- No nil check needed (ranging over nil map is safe in Go)
- Consistent behavior in all cases
- More readable code
Resolves reviewer comments from @vikrantpuppala, @copilot-pull-request-reviewer, and @gopalldb
Signed-off-by: Shivam Raj <[email protected]>1 parent 5a113cb commit 3edd436
1 file changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
| |||
0 commit comments