mathworks / OpenTelemetry-MATLAB

MATLAB interface to OpenTelemetry
Apache License 2.0
14 stars 3 forks source link

testOtlpFileExporter in tmetrics_sdk failing on Linux #156

Closed duncanpo closed 1 month ago

duncanpo commented 1 month ago

Following error occurred in the last 2 jobs. The failure is reproducible manually, and seems to be a test issue. Apparently, there is a race condition in the test where the meter provider can be destroyed before any data is written. Somehow the data is not automatically flushed at meter provider destruction.

================================================================================ Error occurred in tmetrics_sdk/testOtlpFileExporter and it did not run to completion.

  Error ID:
  ---------
  'MATLAB:fileread:cannotOpenFile'
  --------------
  Error Details:
  --------------
  Error using fileread (line 10)
  Could not open file
  /tmp/tpcb56c552_f621_4837_ac2c_a4dd6570bced/output_latest.json. No such file
  or
  directory.

  Error in tmetrics_sdk/testOtlpFileExporter (line 100)
              results = jsondecode(fileread(alias));

================================================================================