Skip to content

Commit 9989441

Browse files
committed
Updates to examples
1 parent 90bea3a commit 9989441

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/context_propagation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In this example, a C++ client calls a MATLAB function hosted on MATLAB Productio
1111
The built examples can be found in build/examples/context_propagation and subdirectories.
1212
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.
1313
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.
14-
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.
14+
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.
1515
6. Start an instance of [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector).
1616
7. Start the C++ client.
1717
```

examples/context_propagation/matlab/mymagic.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
sp = startSpan(tr, "mymagic", "SpanKind", "server");
1818

1919
sz = double(request.Body);
20-
magicsquare = magic(request.Body); % generate the magic square
20+
magicsquare = magic(sz); % generate the magic square
2121
setAttributes(sp, "input", sz, "output", magicsquare);
2222

2323
% convert magic square to char
@@ -48,7 +48,7 @@
4848
setTextMapPropagator(prop);
4949
end
5050

51-
% Thie helper ensures the input function is only run once
51+
% This helper ensures the input function is only run once
5252
function runOnce(fh)
5353
persistent hasrun
5454
if isempty(hasrun)

0 commit comments

Comments
 (0)