@google-cloud/trace-agent
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -107,2 +107,6 @@ "use strict"; | ||
.activate(); | ||
// Require http and https again, now that the plugin loader is activated. | ||
// This forces them to be patched. | ||
require('http'); | ||
require('https'); | ||
if (typeof this.config.writerConfig.authOptions.projectId !== 'string' && | ||
@@ -109,0 +113,0 @@ typeof this.config.writerConfig.authOptions.projectId !== 'undefined') { |
@@ -1,1 +0,10 @@ | ||
Please consult the [GitHub Releases section of this repository](https://github.com/googleapis/cloud-trace-nodejs/releases) for a history of changes to the Trace Agent. | ||
# Changelog | ||
### [4.1.1](https://www.github.com/googleapis/cloud-trace-nodejs/compare/v4.1.0...v4.1.1) (2019-08-05) | ||
### Bug Fixes | ||
* **deps:** update dependency @opencensus/propagation-stackdriver to v0.0.16 ([#1079](https://www.github.com/googleapis/cloud-trace-nodejs/issues/1079)) ([e48dc54](https://www.github.com/googleapis/cloud-trace-nodejs/commit/e48dc54)) | ||
* **docs:** standardize README and add repo metadata ([#1095](https://www.github.com/googleapis/cloud-trace-nodejs/issues/1095)) ([c24faa3](https://www.github.com/googleapis/cloud-trace-nodejs/commit/c24faa3)) | ||
* force http and https clients to be patched ([#1084](https://www.github.com/googleapis/cloud-trace-nodejs/issues/1084)) ([3ac0b90](https://www.github.com/googleapis/cloud-trace-nodejs/commit/3ac0b90)) |
@@ -69,3 +69,3 @@ # The `Tracer` Object | ||
* Returns `boolean` | ||
* Returns whether the trace agent was started with an enhanced level of reporting. See the [configuration][config-js] object definition for more details. | ||
* Returns whether the trace agent was started with an enhanced level of reporting. See the [configuration][config-ts] object definition for more details. | ||
@@ -115,5 +115,5 @@ ## Cross-Service Trace Contexts | ||
[config-js]: https://github.com/googleapis/cloud-trace-nodejs/blob/master/config.js | ||
[config-ts]: https://github.com/googleapis/cloud-trace-nodejs/blob/master/src/config.ts | ||
[stackdriver-trace-faq]: https://cloud.google.com/trace/docs/faq | ||
[stackdriver-trace-span]: https://cloud.google.com/trace/api/reference/rest/v1/projects.traces#TraceSpan | ||
[dapper-paper]: https://research.google.com/pubs/pub36356.html |
{ | ||
"name": "@google-cloud/trace-agent", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Node.js Support for StackDriver Trace", | ||
@@ -55,3 +55,3 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@compodoc/compodoc": "1.1.9", | ||
"@compodoc/compodoc": "1.1.10", | ||
"@grpc/proto-loader": "^0.5.0", | ||
@@ -70,2 +70,3 @@ "@types/builtin-modules": "^2.0.0", | ||
"@types/node": "~10.7.2", | ||
"@types/node-fetch": "^2.5.0", | ||
"@types/once": "^1.4.0", | ||
@@ -84,3 +85,3 @@ "@types/proxyquire": "^1.3.28", | ||
"glob": "^7.0.3", | ||
"grpc": "1.21.1", | ||
"grpc": "1.22.2", | ||
"gts": "^1.0.0", | ||
@@ -96,4 +97,4 @@ "intelli-espower-loader": "^1.0.1", | ||
"rimraf": "^2.6.2", | ||
"standard-version": "^6.0.0", | ||
"teeny-request": "^4.0.0", | ||
"standard-version": "^7.0.0", | ||
"teeny-request": "^5.0.0", | ||
"timekeeper": "^2.0.0", | ||
@@ -106,3 +107,3 @@ "tmp": "0.1.0", | ||
"@google-cloud/common": "^2.0.0", | ||
"@opencensus/propagation-stackdriver": "0.0.14", | ||
"@opencensus/propagation-stackdriver": "0.0.16", | ||
"builtin-modules": "^3.0.0", | ||
@@ -109,0 +110,0 @@ "console-log-level": "^1.4.0", |
140
README.md
@@ -1,12 +0,54 @@ | ||
# Stackdriver Trace Agent for Node.js | ||
[//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[//]: # "To regenerate it, use `python -m synthtool`." | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
[![NPM Version][npm-image]][npm-url] | ||
[![Build Status][circle-image]][circle-url] | ||
[![Test Coverage][codecov-image]][codecov-url] | ||
[![Dependency Status][david-image]][david-url] | ||
[![devDependency Status][david-dev-image]][david-dev-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
# [Stackdriver Trace: Node.js Client](https://github.com/googleapis/cloud-trace-nodejs) | ||
> **Beta**. *This is a Beta release of the Stackdriver Trace agent for Node.js. These libraries might be changed in backward-incompatible ways and are not subject to any SLA or deprecation policy.* | ||
[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) | ||
[![npm version](https://img.shields.io/npm/v/@google-cloud/trace-agent.svg)](https://www.npmjs.org/package/@google-cloud/trace-agent) | ||
[![codecov](https://img.shields.io/codecov/c/github/googleapis/cloud-trace-nodejs/master.svg?style=flat)](https://codecov.io/gh/googleapis/cloud-trace-nodejs) | ||
Node.js Support for StackDriver Trace | ||
* [Stackdriver Trace Node.js Client API Reference][client-docs] | ||
* [Stackdriver Trace Documentation][product-docs] | ||
* [github.com/googleapis/cloud-trace-nodejs](https://github.com/googleapis/cloud-trace-nodejs) | ||
Read more about the client libraries for Cloud APIs, including the older | ||
Google APIs Client Libraries, in [Client Libraries Explained][explained]. | ||
[explained]: https://cloud.google.com/apis/docs/client-libraries-explained | ||
**Table of contents:** | ||
* [Quickstart](#quickstart) | ||
* [Before you begin](#before-you-begin) | ||
* [Installing the client library](#installing-the-client-library) | ||
* [Samples](#samples) | ||
* [Versioning](#versioning) | ||
* [Contributing](#contributing) | ||
* [License](#license) | ||
## Quickstart | ||
### Before you begin | ||
1. [Select or create a Cloud Platform project][projects]. | ||
1. [Enable the Stackdriver Trace API][enable_api]. | ||
1. [Set up authentication with a service account][auth] so you can access the | ||
API from your local workstation. | ||
### Installing the client library | ||
```bash | ||
npm install @google-cloud/trace-agent | ||
``` | ||
This module provides automatic tracing for Node.js applications with Stackdriver Trace. [Stackdriver Trace](https://cloud.google.com/cloud-trace/) is a feature of [Google Cloud Platform](https://cloud.google.com/) that collects latency data (traces) from your applications and displays it in near real-time in the [Google Cloud Console][cloud-console]. | ||
@@ -64,3 +106,3 @@ | ||
* [hapi](https://www.npmjs.com/package/hapi) (versions 8 - 16) | ||
* [koa](https://www.npmjs.com/package/koa) (version 1) | ||
* [koa](https://www.npmjs.com/package/koa) (version 1 - 2) | ||
* [restify](https://www.npmjs.com/package/restify) (versions 3 - 7) | ||
@@ -87,9 +129,9 @@ | ||
```js | ||
require('@google-cloud/trace-agent').start({ | ||
plugins: { | ||
// You may use a package name or absolute path to the file. | ||
'my-module': '@google-cloud/trace-agent-plugin-my-module', | ||
'another-module': path.join(__dirname, 'path/to/my-custom-plugins/plugin-another-module.js') | ||
} | ||
}); | ||
require('@google-cloud/trace-agent').start({ | ||
plugins: { | ||
// You may use a package name or absolute path to the file. | ||
'my-module': '@google-cloud/trace-agent-plugin-my-module', | ||
'another-module': path.join(__dirname, 'path/to/my-custom-plugins/plugin-another-module.js') | ||
} | ||
}); | ||
``` | ||
@@ -162,2 +204,43 @@ | ||
[async-hooks]: https://nodejs.org/api/async_hooks.html | ||
[cloud-console]: https://console.cloud.google.com | ||
[codecov-image]: https://codecov.io/gh/googleapis/cloud-trace-nodejs/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/googleapis/cloud-trace-nodejs | ||
[queuing-problem]: https://github.com/groundwater/nodejs-symposiums/tree/master/2016-02-26-Errors/Round1/UserModeQueuing | ||
[setting-up-stackdriver-trace]: https://cloud.google.com/trace/docs/setup/nodejs | ||
## Samples | ||
Samples are in the [`samples/`](https://github.com/googleapis/cloud-trace-nodejs/tree/master/samples) directory. The samples' `README.md` | ||
has instructions for running the samples. | ||
| Sample | Source Code | Try it | | ||
| --------------------------- | --------------------------------- | ------ | | ||
| App | [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/master/samples/app.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-trace-nodejs&page=editor&open_in_editor=samples/app.js,samples/README.md) | | ||
| Snippets | [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/master/samples/snippets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-trace-nodejs&page=editor&open_in_editor=samples/snippets.js,samples/README.md) | | ||
The [Stackdriver Trace Node.js Client API Reference][client-docs] documentation | ||
also contains samples. | ||
## Versioning | ||
This library follows [Semantic Versioning](http://semver.org/). | ||
This library is considered to be in **beta**. This means it is expected to be | ||
mostly stable while we work toward a general availability release; however, | ||
complete stability is not guaranteed. We will address issues and requests | ||
against beta libraries with a high priority. | ||
More Information: [Google Cloud Platform Launch Stages][launch_stages] | ||
[launch_stages]: https://cloud.google.com/terms/launch-stages | ||
## Contributing | ||
@@ -173,17 +256,10 @@ | ||
[async-hooks]: https://nodejs.org/api/async_hooks.html | ||
[cloud-console]: https://console.cloud.google.com | ||
[codecov-image]: https://codecov.io/gh/googleapis/cloud-trace-nodejs/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/googleapis/cloud-trace-nodejs | ||
[david-dev-image]: https://david-dm.org/googleapis/cloud-trace-nodejs/dev-status.svg | ||
[david-dev-url]: https://david-dm.org/googleapis/cloud-trace-nodejs?type=dev | ||
[david-image]: https://david-dm.org/googleapis/cloud-trace-nodejs.svg | ||
[david-url]: https://david-dm.org/googleapis/cloud-trace-nodejs | ||
[npm-image]: https://badge.fury.io/js/%40google-cloud%2Ftrace-agent.svg | ||
[npm-url]: https://npmjs.org/package/@google-cloud/trace-agent | ||
[queuing-problem]: https://github.com/groundwater/nodejs-symposiums/tree/master/2016-02-26-Errors/Round1/UserModeQueuing | ||
[setting-up-stackdriver-trace]: https://cloud.google.com/trace/docs/setup/nodejs | ||
[snyk-image]: https://snyk.io/test/github/googleapis/cloud-trace-nodejs/badge.svg | ||
[snyk-url]: https://snyk.io/test/github/googleapis/cloud-trace-nodejs | ||
[circle-image]: https://circleci.com/gh/googleapis/cloud-trace-nodejs.svg?style=svg | ||
[circle-url]: https://circleci.com/gh/googleapis/cloud-trace-nodejs | ||
[client-docs]: https://googleapis.dev/nodejs/trace/latest/#reference | ||
[product-docs]: https://cloud.google.com/trace | ||
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png | ||
[projects]: https://console.cloud.google.com/project | ||
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing | ||
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=cloudtrace.googleapis.com | ||
[auth]: https://cloud.google.com/docs/authentication/getting-started | ||
<a name="reference"></a> |
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
Network access
Supply chain riskThis module accesses the network.
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
324024
7069
262
45
3
+ Added@opencensus/core@0.0.16(transitive)
+ Added@opencensus/propagation-stackdriver@0.0.16(transitive)
- Removed@opencensus/core@0.0.14(transitive)
- Removed@opencensus/propagation-stackdriver@0.0.14(transitive)