Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 31bfa65

Browse files
authored
Exporter/Instana: Enforce strictNullChecks and noUnusedLocals (#390)
1 parent 85e2fc2 commit 31bfa65

5 files changed

Lines changed: 12 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
1616
- Enforce `--strictNullChecks` and `--noUnusedLocals` Compiler Options on [opencensus-instrumentation-http], [opencensus-instrumentation-grpc] and [opencensus-propagation-tracecontext] packages.
1717
- Enforce `--strictNullChecks` and `--noUnusedLocals` Compiler Options on [opencensus-exporter-zipkin] packages.
1818
- Add NoRecordRootSpan, NoRecordSpan and NoRecordSpanBase.
19+
- Enforce `--strictNullChecks` and `--noUnusedLocals` Compiler Options on [opencensus-exporter-instana] package.
1920
- Add an API `globalStats.unregisterExporter()`.
2021

2122
## 0.0.9 - 2019-02-12

packages/opencensus-exporter-instana/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# OpenCensus Instana Exporter for Node.js
1+
# OpenCensus Instana Trace Exporter
22
[![Gitter chat][gitter-image]][gitter-url]
33

4-
OpenCensus Instana Exporter allows the user to send collected traces with [OpenCensus Node.js](https://github.com/census-instrumentation/opencensus-node) to [Instana](https://www.instana.com/).
4+
OpenCensus Instana Trace Exporter allows the user to send collected traces with [OpenCensus Node.js](https://github.com/census-instrumentation/opencensus-node) to [Instana](https://www.instana.com/).
5+
6+
[Instana](http://www.instana.com/) is a distributed
7+
tracing system. Instana provides AI Powered Application and Infrastructure Monitoring, allowing you to deliver Faster With Confidence, and automatic Analysis and Optimization.
58

69
This project is still at an early stage of development. It's subject to change.
710

@@ -27,6 +30,7 @@ tracing.start({
2730

2831
## Useful links
2932
- For more information on OpenCensus, visit: <https://opencensus.io/>
33+
- For Instana project at https://www.instana.com/
3034
- To checkout the OpenCensus for Node.js, visit: <https://github.com/census-instrumentation/opencensus-node>
3135
- For help or feedback on this project, join us on [gitter](https://gitter.im/census-instrumentation/Lobby)
3236

packages/opencensus-exporter-instana/src/instana.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {Exporter, ExporterBuffer, ExporterConfig, RootSpan, Span, SpanKind} from '@opencensus/core';
17+
import {Exporter, ExporterBuffer, ExporterConfig, RootSpan, Span} from '@opencensus/core';
1818
import {logger, Logger} from '@opencensus/core';
1919
import {request} from 'http';
2020

packages/opencensus-exporter-instana/test/test-instana.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,9 @@
1616

1717
import {CoreTracer, RootSpan, SpanKind, TracerConfig} from '@opencensus/core';
1818
import * as assert from 'assert';
19-
import * as http from 'http';
20-
import * as mocha from 'mocha';
2119
import * as nock from 'nock';
22-
2320
import {InstanaTraceExporter} from '../src/instana';
2421

25-
/** Interface with request response model */
26-
interface RequestResponse {
27-
statusCode: number;
28-
statusMessage: string;
29-
}
30-
3122
/** Default config for traces tests */
3223
const defaultConfig: TracerConfig = {
3324
samplingRate: 1

packages/opencensus-exporter-instana/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"outDir": "build",
66
"pretty": true,
77
"module": "commonjs",
8-
"target": "es6"
8+
"target": "es6",
9+
"strictNullChecks": true,
10+
"noUnusedLocals": true
911
},
1012
"include": [
1113
"src/**/*.ts",
@@ -14,4 +16,4 @@
1416
"exclude": [
1517
"node_modules"
1618
]
17-
}
19+
}

0 commit comments

Comments
 (0)