@opencensus/exporter-instana
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -34,12 +34,12 @@ /** | ||
* Sends spans to Instana. | ||
* This method purposefully does not return a rejected Promise, because the | ||
* code path calling the publish function does not expect a Promise to be | ||
* returned. For this reason, a rejection handler is never registered for | ||
* these promises. For this reason returning a rejected Promise would result | ||
* in a UnhandledPromiseRejectionWarning. | ||
* | ||
* This Promise is meant as a problem indicator for tests only. | ||
* | ||
* @param rootSpans The spans to transmit to Instana | ||
* @returns An indicator whether publishing was successful. This method | ||
* purposefully does not return a rejected Promise, because the code path | ||
* calling the publish function does not expect a Promise to be returned. For | ||
* this reason, a rejection handler is never registered for these promises. | ||
* For this reason returning a rejected Promise would result in a | ||
* UnhandledPromiseRejectionWarning. | ||
* | ||
* This Promise is meant as a problem indicator for tests only. | ||
* @returns An indicator whether publishing was successful. | ||
*/ | ||
@@ -46,0 +46,0 @@ publish(rootSpans: RootSpan[]): Promise<void>; |
@@ -42,12 +42,12 @@ "use strict"; | ||
* Sends spans to Instana. | ||
* This method purposefully does not return a rejected Promise, because the | ||
* code path calling the publish function does not expect a Promise to be | ||
* returned. For this reason, a rejection handler is never registered for | ||
* these promises. For this reason returning a rejected Promise would result | ||
* in a UnhandledPromiseRejectionWarning. | ||
* | ||
* This Promise is meant as a problem indicator for tests only. | ||
* | ||
* @param rootSpans The spans to transmit to Instana | ||
* @returns An indicator whether publishing was successful. This method | ||
* purposefully does not return a rejected Promise, because the code path | ||
* calling the publish function does not expect a Promise to be returned. For | ||
* this reason, a rejection handler is never registered for these promises. | ||
* For this reason returning a rejected Promise would result in a | ||
* UnhandledPromiseRejectionWarning. | ||
* | ||
* This Promise is meant as a problem indicator for tests only. | ||
* @returns An indicator whether publishing was successful. | ||
*/ | ||
@@ -54,0 +54,0 @@ publish(rootSpans) { |
{ | ||
"name": "@opencensus/exporter-instana", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "OpenCensus Instana Exporter allows the user to send collected traces with OpenCensus Node.js to Instana.", | ||
@@ -9,3 +9,3 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"test": "nyc mocha build/test/**/*.js", | ||
"test": "nyc ts-mocha -p ./tsconfig.json test/**/*.ts", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json", | ||
@@ -17,3 +17,2 @@ "clean": "rimraf build/*", | ||
"prepare": "npm run compile", | ||
"pretest": "npm run compile", | ||
"posttest": "npm run check" | ||
@@ -41,2 +40,13 @@ }, | ||
], | ||
"nyc": { | ||
"extension": [ | ||
".ts", | ||
".tsx" | ||
], | ||
"exclude": [ | ||
"**/*.d.ts", | ||
"build/**/**/*.js" | ||
], | ||
"all": true | ||
}, | ||
"publishConfig": { | ||
@@ -49,16 +59,14 @@ "access": "public" | ||
"@types/node": "^10.12.12", | ||
"@types/semver": "^5.5.0", | ||
"@types/uuid": "^3.4.3", | ||
"codecov": "^3.1.0", | ||
"gts": "^0.9.0", | ||
"mocha": "^5.0.4", | ||
"ncp": "^2.0.0", | ||
"mocha": "^6.0.0", | ||
"nock": "^10.0.0", | ||
"nyc": "13.1.0", | ||
"ts-node": "^7.0.1", | ||
"nyc": "13.3.0", | ||
"ts-mocha": "^6.0.0", | ||
"ts-node": "^8.0.0", | ||
"typescript": "~3.2.0" | ||
}, | ||
"dependencies": { | ||
"@opencensus/core": "^0.0.9" | ||
"@opencensus/core": "^0.0.10" | ||
} | ||
} |
@@ -1,6 +0,9 @@ | ||
# OpenCensus Instana Exporter for Node.js | ||
# OpenCensus Instana Trace Exporter | ||
[![Gitter chat][gitter-image]][gitter-url] | ||
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/). | ||
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/). | ||
[Instana](http://www.instana.com/) is a distributed | ||
tracing system. Instana provides AI Powered Application and Infrastructure Monitoring, allowing you to deliver Faster With Confidence, and automatic Analysis and Optimization. | ||
This project is still at an early stage of development. It's subject to change. | ||
@@ -17,7 +20,7 @@ | ||
## Usage | ||
To use Instana as your exporter, first ensure that you have an [Instana agent running on your system](https://docs.instana.io/quick_start/getting_started/) and reporting to your environment. The Instana OpenCensus exporter directly communicates with the Instana agent in order to transmit data to Instana. | ||
To use Instana as your exporter, first ensure that you have an [Instana agent running on your system](https://docs.instana.io/quick_start/getting_started/) and reporting to your environment. The Instana OpenCensus exporter directly communicates with the Instana agent in order to transmit data to Instana. | ||
```javascript | ||
var tracing = require('@opencensus/nodejs'); | ||
var instana = require('@opencensus/exporter-instana'); | ||
const tracing = require('@opencensus/nodejs'); | ||
const instana = require('@opencensus/exporter-instana'); | ||
@@ -31,2 +34,3 @@ tracing.start({ | ||
- For more information on OpenCensus, visit: <https://opencensus.io/> | ||
- For Instana project at https://www.instana.com/ | ||
- To checkout the OpenCensus for Node.js, visit: <https://github.com/census-instrumentation/opencensus-node> | ||
@@ -33,0 +37,0 @@ - For help or feedback on this project, join us on [gitter](https://gitter.im/census-instrumentation/Lobby) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23508
11
39
+ Added@opencensus/core@0.0.10(transitive)
+ Addedsemver@6.3.1(transitive)
- Removed@opencensus/core@0.0.9(transitive)
Updated@opencensus/core@^0.0.10