Skip to content

Commit ba7c075

Browse files
committed
help text for exporters
1 parent b3ad6a0 commit ba7c075

File tree

2 files changed

+56
-12
lines changed

2 files changed

+56
-12
lines changed

exporters/otlp/+opentelemetry/+exporters/+otlp/OtlpGrpcSpanExporter.m

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,38 @@
66
% Copyright 2023 The MathWorks, Inc.
77

88
properties (SetAccess=immutable)
9-
Endpoint (1,1) string
10-
UseCredentials (1,1) logical
11-
CertificatePath (1,1) string
12-
CertificateString (1,1) string
13-
Timeout (1,1) duration
14-
HttpHeaders (1,1) dictionary
9+
Endpoint (1,1) string % Export destination
10+
UseCredentials (1,1) logical % Whether to use SSL credentials
11+
CertificatePath (1,1) string % Path to .pem file for SSL encryption
12+
CertificateString (1,1) string % In-memory string representation of .pem file for SSL encryption
13+
Timeout (1,1) duration % Maximum time above which exports will abort
14+
HttpHeaders (1,1) dictionary % Additional HTTP headers
1515
end
1616

1717
methods
1818
function obj = OtlpGrpcSpanExporter(optionnames, optionvalues)
19+
% OtlpGrpcSpanExporter exports spans in OpenTelemetry Protocol format via gRPC.
20+
% EXP = OPENTELEMETRY.EXPORTERS.OTLP.OTLPGRPCSPANEXPORTER
21+
% creates an exporter that uses default configurations.
22+
%
23+
% EXP =
24+
% OPENTELEMETRY.EXPORTERS.OTLP.OTLPGRPCSPANEXPORTER(PARAM1,
25+
% VALUE1, PARAM2, VALUE2, ...) specifies optional parameter
26+
% name/value pairs. Parameters are:
27+
% "Endpoint" - Endpoint to export to
28+
% "UseCredentials" - Whether to use SSL credentials.
29+
% Default is false. If true, use
30+
% .pem file specified in
31+
% "CertificatePath" or
32+
% "CertificateString".
33+
% "CertificatePath" - Path to .pem file for SSL encryption
34+
% "CertificateString" - .pem file specified in memory as
35+
% a string
36+
% "Timeout" - Maximum time above which exports
37+
% will abort
38+
% "HTTPHeaders" - Additional HTTP Headers
39+
%
40+
% See also OPENTELEMETRY.EXPORTERS.OTLP.OTLPHTTPSPANEXPORTER
1941
arguments (Repeating)
2042
optionnames (1,:) {mustBeTextScalar}
2143
optionvalues

exporters/otlp/+opentelemetry/+exporters/+otlp/OtlpHttpSpanExporter.m

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,38 @@
66
% Copyright 2023 The MathWorks, Inc.
77

88
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
1515
end
1616

1717
methods
1818
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
1941
arguments (Repeating)
2042
optionnames (1,:) {mustBeTextScalar}
2143
optionvalues

0 commit comments

Comments
 (0)