-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
exporters/otlp/+opentelemetry/+exporters/+otlp/defaultSpanExporter.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
function dexp = defaultSpanExporter | ||
% Get the default span exporter depending on installation | ||
% EXP = OPENTELEMETRY.EXPORTERS.OTLP.DEFAULTSPANEXPORTER returns the | ||
% default span exporter. OtlpHttpSpanExporter is the default if it is | ||
% installed. Otherwise, OtlpGrpcSpanExporter is the default. | ||
% | ||
% See also OPENTELEMETRY.EXPORTERS.OTLP.OTLPHTTPSPANEXPORTER, | ||
% OPENTELEMETRY.EXPORTERS.OTLP.OTLPGRPCSPANEXPORTER | ||
|
||
% Copyright 2023 The MathWorks, Inc. | ||
|
||
if exist("opentelemetry.exporters.otlp.OtlpHttpSpanExporter", "class") | ||
dexp = opentelemetry.exporters.otlp.OtlpHttpSpanExporter; | ||
else | ||
dexp = opentelemetry.exporters.otlp.OtlpGrpcSpanExporter; | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
% OPENTELEMETRY.SDK.TRACE.TRACERPROVIDER | ||
arguments | ||
spanexporter {mustBeA(spanexporter, "opentelemetry.sdk.trace.SpanExporter")} = ... | ||
opentelemetry.exporters.otlp.OtlpHttpSpanExporter() | ||
opentelemetry.exporters.otlp.defaultSpanExporter() | ||
end | ||
|
||
obj = [email protected](spanexporter, ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters