|
6 | 6 | % Copyright 2023 The MathWorks, Inc.
|
7 | 7 |
|
8 | 8 | properties (SetAccess=immutable)
|
9 |
| - Endpoint (1,1) string |
10 |
| - Format (1,1) string |
11 |
| - JsonBytesMapping (1,1) string |
12 |
| - UseJsonName (1,1) logical |
13 |
| - Timeout (1,1) duration |
14 |
| - HttpHeaders (1,1) dictionary |
| 9 | + Endpoint (1,1) string % Export destination |
| 10 | + Format (1,1) string % Data format, JSON or binary |
| 11 | + JsonBytesMapping (1,1) string % What to convert JSON bytes to |
| 12 | + UseJsonName (1,1) logical % Whether to use JSON name of protobuf field to set the key of JSON |
| 13 | + Timeout (1,1) duration % Maximum time above which exports will abort |
| 14 | + HttpHeaders (1,1) dictionary % Additional HTTP headers |
15 | 15 | end
|
16 | 16 |
|
17 | 17 | methods
|
18 | 18 | function obj = OtlpHttpSpanExporter(optionnames, optionvalues)
|
| 19 | + % OtlpHttpSpanExporter exports spans in OpenTelemetry Protocol format via HTTP. |
| 20 | + % EXP = OPENTELEMETRY.EXPORTERS.OTLP.OTLPHTTPSPANEXPORTER |
| 21 | + % creates an exporter that uses default configurations. |
| 22 | + % |
| 23 | + % EXP = |
| 24 | + % OPENTELEMETRY.EXPORTERS.OTLP.OTLPHTTPSPANEXPORTER(PARAM1, |
| 25 | + % VALUE1, PARAM2, VALUE2, ...) specifies optional parameter |
| 26 | + % name/value pairs. Parameters are: |
| 27 | + % "Endpoint" - Endpoint to export to |
| 28 | + % "Format" - Data format: "JSON" (default) or "binary" |
| 29 | + % "JsonBytesMapping" - What to convert JSON bytes to. Supported |
| 30 | + % values are "hex", "hexId" (default), and |
| 31 | + % "base64". Default "hexId" |
| 32 | + % converts to base 64 except for IDs |
| 33 | + % which are converted to hexadecimals. |
| 34 | + % "UseJsonName" - Whether to use JSON name of protobuf |
| 35 | + % field to set the key of JSON |
| 36 | + % "Timeout" - Maximum time above which exports |
| 37 | + % will abort |
| 38 | + % "HTTPHeaders" - Additional HTTP Headers |
| 39 | + % |
| 40 | + % See also OPENTELEMETRY.EXPORTERS.OTLP.OTLPGRPCSPANEXPORTER |
19 | 41 | arguments (Repeating)
|
20 | 42 | optionnames (1,:) {mustBeTextScalar}
|
21 | 43 | optionvalues
|
|
0 commit comments