You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/context_propagation/README.md
+7-13Lines changed: 7 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,15 @@
3
3
In this example, a C++ client calls a MATLAB function hosted on MATLAB Production Server that returns a magic square matrix. Both the C++ client and the MATLAB code are instrumented with OpenTelemetry, and their generated spans form a single trace.
4
4
5
5
## Building the Example
6
-
1.Build the C++ client, which requires an installed opentelemetry-cpp package and a vcpkg library manager
6
+
1.Enable WITH_EXAMPLES when building OpenTelemetry-Matlab
where <all_target> is "all" on most platforms but is "ALL_BUILD" on Windows with Visual Studio.
13
-
2. Build MATLAB code into a deployable archive. Use the following MATLAB command:
14
-
```
15
-
cd matlab
16
-
mcc -W CTF:mymagic -U mymagic.m -a <opentelemetry-cpp_install_root> -a <opentelemetry-cpp_install_root>\+libmexclass\+proxy
17
-
```
18
-
3.[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.
19
-
4.[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.
20
-
5.[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.
11
+
The built examples can be found in build/examples/context_propagation and subdirectories.
12
+
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.
13
+
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.
21
15
6. Start an instance of [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector).
0 commit comments