Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mhennoch committed Jan 10, 2025
1 parent 5425e40 commit b2dc6f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/metrics.options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ describe('metrics options', () => {
const exporter = reader['_exporter'];
assert(exporter instanceof OTLPHttpProtoMetricExporter);
assert.deepStrictEqual(
exporter._delegate['_transport']['_transport']['_parameters'].headers()['X-SF-TOKEN'],
exporter._delegate['_transport']['_transport']['_parameters'].headers()[
'X-SF-TOKEN'
],
'abc'
);

Expand Down
4 changes: 3 additions & 1 deletion test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export function exporterHeaders(exporter: any) {
}

if (exporter instanceof OTLPGrpcTraceExporter) {
return exporter['_delegate']['_transport']['_parameters'].metadata().toJSON();
return exporter['_delegate']['_transport']['_parameters']
.metadata()
.toJSON();
}

if (exporter instanceof OTLPMetricExporterBase) {
Expand Down

0 comments on commit b2dc6f3

Please sign in to comment.