File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
instrumentation/buildtool/+matlab/+buildtool/+plugins Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 44
55 methods (Access = protected )
66 function runBuild(plugin , pluginData )
7+ % Warn users that tasks on workers will not emit telemetry data
8+ % if a pool is open.
9+ %
10+ % Imperfect detection of parallel builds but
11+ % the impact of a false positive is very low
12+ p = gcp(" nocreate" );
13+ if ~isempty(p )
14+ warning(" opentelemetry:buildtool:OpenTelemetryPlugin:NoParallelEmit" , ...
15+ " Tasks executed on parallel workers do not emit telemetry data." );
16+ end
17+
718 % Configure by attaching to span if passed in via environment
819 % variable, and propagating baggage
920 configureOTel();
@@ -56,10 +67,6 @@ function runBuild(plugin, pluginData)
5667 end
5768
5869 function runTask(plugin , pluginData )
59- % TODO:
60- % - buildtool.task.outputs
61- % - buildtool.task.inputs
62-
6370 % Definitions
6471 task = pluginData .TaskGraph .Tasks ;
6572 taskName = pluginData .Name ;
@@ -187,4 +194,4 @@ function cleanupOTel(span)
187194otellp = opentelemetry .logs .Provider .getLoggerProvider ;
188195opentelemetry .sdk .common .Cleanup .forceFlush(otellp , timeout );
189196opentelemetry .sdk .common .Cleanup .shutdown(otellp );
190- end
197+ end
You can’t perform that action at this time.
0 commit comments