Skip to content

Autotrace errors when specifying multiple directories as ExcludeFiles #195

@duncanpo

Description

@duncanpo

Suppose I have two directories dir1 and dir2 with more than one file but different number of files (e.g. dir1 has 2 files and dir2 has 3). If I exclude both directories in AutoTrace, it returns the following error:

>> at = opentelemetry.autoinstrument.AutoTrace(@myapp, ...
    ExcludeFiles=["dir1" "dir2"], TracerName="testing");
Error using [vertcat](matlab:matlab.lang.internal.introspective.errorDocCallback('vertcat'))
Dimensions of arrays being concatenated are not consistent.

Error in [opentelemetry.autoinstrument.AutoTrace](matlab:matlab.lang.internal.introspective.errorDocCallback('opentelemetry.autoinstrument.AutoTrace', 'C:\Users\dpo\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\MATLAB Interface to OpenTelemetry\+opentelemetry\+autoinstrument\AutoTrace.m', 108)) ([line 108](matlab: opentoline('C:\Users\dpo\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\MATLAB Interface to OpenTelemetry\+opentelemetry\+autoinstrument\AutoTrace.m',108,0)))
                    excfiles = [excfiles; processFileOrFolderInput(excinput(i))];   %#ok<AGROW>
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions