Commit c6b8e05
committed
refactor(otel): use Apache HttpClient for cross-version compatibility
Address PR review feedback - use Apache HttpClient instead of platform httpPost API.
Changes:
- Replace IntelliJ Platform httpPost with Apache HttpClient
- Works consistently across all IDE versions (2024.2 - 2025.3+)
- Matches existing pattern used in SigV4OtlpSpanProcessor
- No version-specific compatibility wrappers needed
- Single OTelService.kt in common src/ directory
This approach:
- Uses same HTTP library as CawsEnvironmentClient and SigV4OtlpSpanProcessor
- Avoids platform API incompatibilities between IDE versions
- Follows established codebase patterns for HTTP operations1 parent 543169d commit c6b8e05
File tree
3 files changed
+16
-38
lines changed- plugins/core/jetbrains-community
- src-242-252/software/aws/toolkits/jetbrains/services/telemetry/otel
- src-253+/software/aws/toolkits/jetbrains/services/telemetry/otel
- src/software/aws/toolkits/jetbrains/services/telemetry/otel
3 files changed
+16
-38
lines changedLines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
52 | 67 | | |
53 | 68 | | |
54 | 69 | | |
| |||
0 commit comments