Skip to content

Commit

Permalink
Updates to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpo committed Sep 29, 2023
1 parent 90bea3a commit 9989441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/context_propagation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In this example, a C++ client calls a MATLAB function hosted on MATLAB Productio
The built examples can be found in build/examples/context_propagation and subdirectories.
2. [Create](https://www.mathworks.com/help/mps/server/creating-a-server.html) and [start](https://www.mathworks.com/help/mps/qs/starting-and-stopping.html) a MATLAB Production Server instance.
3. [Deploy](https://www.mathworks.com/help/mps/qs/share-a-ctf-archive-on-the-server-instance.html) archive to server instance by copying to the auto_deploy directory.
4. [Copy](https://www.mathworks.com/help/mps/server/use-web-handler-for-custom-routes-and-custom-payloads.html) matlab/routes.json to the config directory of the server instance.
4. If using a MATLAB release before R2023b, [copy](https://www.mathworks.com/help/mps/server/use-web-handler-for-custom-routes-and-custom-payloads.html) matlab/routes.json to the config directory of the server instance.
6. Start an instance of [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector).
7. Start the C++ client.
```
Expand Down
4 changes: 2 additions & 2 deletions examples/context_propagation/matlab/mymagic.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sp = startSpan(tr, "mymagic", "SpanKind", "server");

sz = double(request.Body);
magicsquare = magic(request.Body); % generate the magic square
magicsquare = magic(sz); % generate the magic square
setAttributes(sp, "input", sz, "output", magicsquare);

% convert magic square to char
Expand Down Expand Up @@ -48,7 +48,7 @@
setTextMapPropagator(prop);
end

% Thie helper ensures the input function is only run once
% This helper ensures the input function is only run once
function runOnce(fh)
persistent hasrun
if isempty(hasrun)
Expand Down

0 comments on commit 9989441

Please sign in to comment.