File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/plugins/opentelemetry/src Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphql-mesh/plugin-opentelemetry ' : patch
3
+ ---
4
+
5
+ Fix the types exporters factories, the configuration is actually optional. All parameters can be determined from environement variables.
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ export function createStdoutExporter(
39
39
}
40
40
41
41
export function createZipkinExporter (
42
- config : ZipkinExporterConfig ,
42
+ config ? : ZipkinExporterConfig ,
43
43
batchingConfig ?: BatchingConfig ,
44
44
) : SpanProcessor {
45
45
return resolveBatchingConfig ( new ZipkinExporter ( config ) , batchingConfig ) ;
46
46
}
47
47
48
48
export function createOtlpHttpExporter (
49
- config : OTLPExporterNodeConfigBase ,
49
+ config ? : OTLPExporterNodeConfigBase ,
50
50
batchingConfig ?: BatchingConfig ,
51
51
) : SpanProcessor {
52
52
return resolveBatchingConfig ( new OtlpHttpExporter ( config ) , batchingConfig ) ;
@@ -86,7 +86,7 @@ function loadExporterLazily<
86
86
}
87
87
88
88
export function createOtlpGrpcExporter (
89
- config : OTLPGRPCExporterConfigNode ,
89
+ config ? : OTLPGRPCExporterConfigNode ,
90
90
batchingConfig ?: BatchingConfig ,
91
91
) : MaybePromise < SpanProcessor > {
92
92
return handleMaybePromise (
You can’t perform that action at this time.
0 commit comments