Commit Graph

267 Commits

Author SHA1 Message Date
Vladimir Krivosheev
84f9e11734 support openTelemetryExporterProvider on a platform level
GitOrigin-RevId: be9ebae7c3edeb15753ca87731b56abb0cfe5129
2023-07-28 15:14:25 +00:00
Vladimir Krivosheev
6fa942c538 rename extension point oTelExportersProvider to more intuitive openTelemetryExporterProvider
GitOrigin-RevId: fd2d5a681833e915a0dff2e10131dd6a0ebcaa52
2023-07-28 15:14:24 +00:00
Vladimir Krivosheev
accb33fe52 cleanup
GitOrigin-RevId: 30db2226bd44dca8e9039db0f2e2d491ec055b8c
2023-07-28 15:14:23 +00:00
Vladimir Krivosheev
856137c609 Replace java.time.Duration with kotlin.time.Duration
Updated duration expressions to use kotlin.time.Duration for consistency and readability. The change includes replacing Duration.ofMinutes() and Duration.ofSeconds() with Duration.minutes and Duration.seconds respectively in various telemetry and tracing related classes.

GitOrigin-RevId: 86b6f5289e29f226de3a774b2f617b0cfea0895c
2023-07-28 15:14:22 +00:00
Vladimir Krivosheev
82e2f9981f Remove unnecessary isTracingAvailable() method
Deleted the method isTracingAvailable() from the OpenTelemetryExporterProvider interface and updated all implementations accordingly. The system property RDCT_TRACING_DIAGNOSTIC_FLAG check was moved to the getSpanExporters() method in the RdctExportersProvider implementation. This modification makes it more clear and straightforward since the availability of tracking can be directly deduced from the returned list by getSpanExporters() method, simplifying the code and reducing redundancy.

GitOrigin-RevId: d2e4949663dbb01fc22b0003f2dc7b6d5ee435ee
2023-07-28 15:14:21 +00:00
Vladimir Krivosheev
97e82841b8 Renamed the class 'OTelExportersProvider' to 'OpenTelemetryExporterProvider' across multiple files for better readability and understanding. The original name was abbreviated, potentially causing confusion. This change improves code readability and maintains coding best practices.
GitOrigin-RevId: 2b0b197c8f3bbf0136c54c38c80c1799bbe5132b
2023-07-28 15:14:20 +00:00
Vladimir Krivosheev
2dda3bdb53 prefer Path
GitOrigin-RevId: 850352a7086ccbd55a2039b87f603b974db7de52
2023-07-28 15:14:19 +00:00
Vladimir Krivosheev
a70829acfa bring back intellij.platform.diagnostic module (part 3 - LoadingState is decoupled from StartUpMeasurer, do not init CsvMetricsExporter as a part of telemetry init)
GitOrigin-RevId: c9013eb16e0ae5ea1d6b7bf221abfde22c7454bc
2023-07-26 20:57:56 +00:00
Vladimir Krivosheev
44bb3924c6 bring back intellij.platform.diagnostic module
GitOrigin-RevId: 7c3c0f0bccc96d030412506d927597d9cb21fde3
2023-07-26 20:57:44 +00:00
Vladimir Krivosheev
6e35250d34 opentelemetry coroutine tracer (part 5 - use NoopIntelliJTracer if possible)
GitOrigin-RevId: 456a536ead4099638cf19892d073b94c7cb1e336
2023-07-26 20:57:37 +00:00
Vladimir Krivosheev
afdaf59bdb opentelemetry coroutine tracer (part 1)
GitOrigin-RevId: 91322611bb8d8f3e111e9da089f148b4d862dcb4
2023-07-26 20:57:31 +00:00
Vladimir Krivosheev
73a355fa7e cleanup
GitOrigin-RevId: 56e6947e95b34f82080880b441310b3f5e062a46
2023-07-26 20:57:15 +00:00
Nikolay Chashnikov
8b2410d2c6 [rdct] enable "process per connection" mode by default (RDCT-6)
GitOrigin-RevId: da21dc0cda8d2d71552ad330d91f3b661d42b6e5
2023-07-25 09:33:37 +00:00
Anastasia Katsman
286fe8357c [rdct-tests]: add ability to provide debug categories to tests to avoid too much traces from the specific category
GitOrigin-RevId: d14a11dd59704ab9710311f59ab82269472a991d
2023-07-20 16:23:05 +00:00
Anastasia Katsman
ade5ea0ad4 [rdct-tests]: split ScriptingAPI.Editor into many files + better focus handling + better Toolwindows, Copy Api, popups API
GitOrigin-RevId: a56bf91d157fbad7be7b2d76f6b2dbbfef2db0db
2023-07-20 16:22:36 +00:00
Anastasia Katsman
e20da13ed4 [rdct-tests]: allow makeScreenshot to take screenshot of the focused area
GitOrigin-RevId: cdf75e86417c5d89f8f5d19046368972fcf427d7
2023-07-20 16:22:33 +00:00
Anastasia Katsman
06d73df5ac [rdct-tests]: move isResponding to the right place
GitOrigin-RevId: 0f74d1cef5c6a7ae83397a06bb2eee30ac395a7b
2023-07-20 16:22:31 +00:00
Nikolay Chashnikov
aa3ebab95b [rdct tests] refactoring: convert tests in intellij.remoteDev.util module to JUnit5
...and simplify ClientVersionUtilTest using parameterized tests.

GitOrigin-RevId: da96ef4a92674cde5bd3c840a6b406a078c69584
2023-07-19 16:40:55 +00:00
Nikolay Chashnikov
464a3c3031 [rdct] cleanup: use BuildNumber API to check whether separate configs are supported in JetBrains Client
This way, there is no need to explicitly check for SNAPSHOT builds.

GitOrigin-RevId: e7044d35a1ebbdd80d332836b732f8d091556c80
2023-07-19 16:40:52 +00:00
Vladimir Krivosheev
2b84437611 Refactor getTracer method to use Scope instead of separate parameters
The getTracer method in the TelemetryManager and TelemetryDefaultManager classes has been refactored to use a Scope object as a parameter instead of separate scopeName and verbose parameters. This change simplifies the method signature and encapsulates the details within the Scope object. The Scope object's toString method is used to obtain the scope name. The verbose property of Scope object is used instead of a separate parameter. Also, the usage of RDCT_INSTRUMENTER_NAME constant in TelemetryDataUtil class has been replaced with a Scope object. CodeVision has been made verbose by default.

GitOrigin-RevId: 9619ab169250bc72328438cd2898480c248a4fe1
2023-07-16 21:04:56 +00:00
Vladimir Krivosheev
b4626dd263 don't use varargs in API
GitOrigin-RevId: 5f8c0a07c6ed6f7db97d9d90a247468914ac1692
2023-07-16 21:04:55 +00:00
Anastasia Katsman
8d26726ce1 [rdct-tests]: small change: better getenv usage
GitOrigin-RevId: 5459a4ded3227e2306e421003f93c15782234896
2023-07-12 19:26:42 +00:00
Anastasia Katsman
699c8fb12c [rdct]: better variables names
GitOrigin-RevId: aa61e24991c7032b05736f87987459b435cd494a
2023-07-12 16:28:29 +00:00
Anastasia Katsman
7c06476249 [rdct]: treat 233.snapshot version as one with separate configs supported + tests
GitOrigin-RevId: 0acf88b7fc830bcd6dcd64fda94be7d1a335976b
2023-07-12 16:28:27 +00:00
Anastasia Katsman
1ea0e522ed [rdct-tests]: don't try closing the project/ide gracefully if it is not responding
GitOrigin-RevId: 79facf3060e2ecc18f98ee0ba9c21d11c713d4cb
2023-07-12 16:28:26 +00:00
Anastasia Katsman
2ba54ab141 [rdct-tests]: do not skip client start if custom test properties are set
GitOrigin-RevId: cd8e48b60336ca28334f6ed30d7a1120b9ea9dad
2023-07-12 16:28:23 +00:00
Anastasia Katsman
79ffdf8597 [rdct-tests]: set correct values for test properties
GitOrigin-RevId: 8ea72da5c2c928ce05dab01a3727df69dd677eb7
2023-07-12 16:28:22 +00:00
Grigory Ponomarev
93ace05bf1 [rdct-test] Test build number and a new env variable for gateway added.
GitOrigin-RevId: cc287e6c7295b61b641d959195e8a758c8d32595
2023-07-12 16:28:19 +00:00
Grigory Ponomarev
c8c6b25fdf [rdct-test] Environment variables for overriding thin client downloading url and signature check properties.
GitOrigin-RevId: 28c58f58b86b04d45dce3100e2cf60221cb89178
2023-07-12 16:28:15 +00:00
Anastasia Katsman
6835053fbe [rdct-tests]: add agent id to notification
GitOrigin-RevId: 827fb5f9a44e71a7cef2bc9a173e198683060411
2023-07-05 14:56:42 +00:00
Anastasia Katsman
155b7e40d9 [rdct-tests]: performGetString implementation on nullable strings
GitOrigin-RevId: 1a2395e891876b95d54b53b4100ef521abbafe95
2023-06-30 14:35:21 +00:00
Anastasia Katsman
d1176cdc4f [rdct-tests]: allow getting string from the ide agent to the test process
GitOrigin-RevId: 89c2e04729b3efa95ac9c15379676bd284f2f900
2023-06-29 22:17:37 +00:00
Anastasia Katsman
19ae546703 [rdct-tests]: fix exceptions handling after BackEndExceptionWithStacktrace was introduced
The main struggle is that we want to preserve all the short error descriptions for consistency of mutes in TC

GitOrigin-RevId: 45ef7b79b0e4ce3161088f86cfe8e6b2e59a79f8
2023-06-28 20:25:53 +00:00
Ivan Pashchenko
178c26d23a [rdct] inheritHandles=false for consistency with prev behaviour of ShellExecuteEx
GitOrigin-RevId: f051002b238cdc979177bf920fa6cd3c031747ce
2023-06-23 13:38:28 +00:00
Ivan Pashchenko
7195ba2205 [rdct] GTW-5313 review fix: check whether the client supports the JBC_SEPARATE_CONFIG
GitOrigin-RevId: 22efb50e712b6cdbc63d549da84f3c538ed4c824
2023-06-22 22:55:28 +00:00
Ivan Pashchenko
9015d57b6e [rdct] GTW-5313 fix CreateProcessW call
GitOrigin-RevId: c427608d461e91acef9b0f6a6e796fd12915ef56
2023-06-22 22:55:25 +00:00
Ivan Pashchenko
dfa348395b [rdct] GTW-5313 process-per-connection Client support in GTW
Also replaced ShellExecuteEx with CreateProcess for Windows client launch so that we can set the environment variables

GitOrigin-RevId: 573773c76cf8e8b3cb314a77709baa5f4615b31c
2023-06-21 20:20:19 +00:00
Olga Klisho
898090b7cb [gtw] (GTW-1482) per-project logs collection in gtw.
GitOrigin-RevId: 77566078d851601addd24af2f6e84bdc0204b324
2023-06-21 19:43:04 +00:00
Nikita Kudrin
2c2f83cf93 [workspace model metrics] IJ-CR-107012 renaming TelemetryTracer to TelemetryManager
GitOrigin-RevId: bff0cf8af8d50aedd376bdbf54714dc06fc8c1ff
2023-06-19 16:11:16 +00:00
Vladimir Muzhichenko
5d82e2075f RDO-156: close JBC window on quit btn in GW space plugin
GitOrigin-RevId: 590607d0cfcf52aa1d10401d8ec41b4101132617
2023-06-15 19:37:09 +00:00
Vladimir Muzhichenko
d9c6bc5f0e GTW-2728: fix opening client after connection lost
GitOrigin-RevId: 46da17a81f622b13ccccc2fc8b7a03f27dc5a2e7
2023-06-15 14:07:21 +00:00
Ivan Pashchenko
f47fa86364 [rdct] pre-emptive fix for somethings like GTW-5122 on Windows
GitOrigin-RevId: 78d3f23742841c8b4f48c5d228aa2270e63dd7ad
2023-06-14 13:31:00 +00:00
Ivan Pashchenko
b5c0bf03a8 [rdct] fix GTW-5122
one day, a wild .DS_Store file appeared out of nowhere and an honest FileManifestUtil class reported a discrepancy between the downloaded client and the expected one from the archive headers. How did this work before for so long still continues to be a mystery

GitOrigin-RevId: fa7e461f6b85554ace9e8ab417969610cd7a9373
2023-06-14 13:30:58 +00:00
Vladimir Muzhichenko
eb8eb55ac9 RDO-149: pass new ui preference from IDE backend to the Client
Merge-request: IJ-MR-108463
Merged-by: Vladimir Muzhichenko <Vladimir.Muzhichenko@jetbrains.com>

GitOrigin-RevId: a5876c11ed82610c33a4607dcb23f5eca8ade92e
2023-06-13 17:55:31 +00:00
Alexey Belkov
c6138e8d67 Apply Kotlin inspection "Redundant semicolon"
GitOrigin-RevId: e97056ead03cff412fc10cee0d5fa2d4cc7dde30
2023-06-13 13:58:20 +00:00
Evgenii Novozhilov
c206d785bf decompressor: rename incorrectly named method
accidentally forgot to rename builder method during development

GitOrigin-RevId: ad1c93637b0900dab187a426a4e7805dff65b769
2023-06-12 16:45:04 +00:00
Evgenii Novozhilov
bd28994745 configure tar decompressor to make trick on extract
sometimes absolute symlinks could make no sense as they
point to wrong or missing files after extract. but if
the actual target is already in archive then converting
absolute symlink to relative could make it work more
correct

GitOrigin-RevId: 4ecad097287f9e7f0b60589354b3a197964ccaff
2023-06-07 13:55:51 +00:00
Eugene Lazurin
9c50cb771f [rdct] GTW-2926: Allow to override -Xmx vmoptions from Gateway SSH deploy for server part
GitOrigin-RevId: 1cb582c6caffd26692700c4b52103b52e19afc15
2023-06-06 10:50:07 +00:00
Anastasia Katsman
21c93e40f9 [rdct-tests]: make sure we can create thread dumps even if the process is not responding
GitOrigin-RevId: b82d4f2bf7171b4d5a33d71b6ba4f096854dee22
2023-05-31 15:20:05 +00:00
Ilya.Usov
593459143b update rd
GitOrigin-RevId: 1fa830504abe746caf90a8909c0cac45302c478b
2023-05-27 01:05:27 +00:00