Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit c57a0b1

Browse files
build: address build issues (#1376)
* boop * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d5c7cfd commit c57a0b1

24 files changed

+13
-44
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Node.js Support for StackDriver Trace
1515

1616

1717
A comprehensive list of changes in each version may be found in
18-
[the CHANGELOG](https://github.com/googleapis/cloud-trace-nodejs/blob/master/CHANGELOG.md).
18+
[the CHANGELOG](https://github.com/googleapis/cloud-trace-nodejs/blob/main/CHANGELOG.md).
1919

2020
* [Stackdriver Trace Node.js Client API Reference][client-docs]
2121
* [Stackdriver Trace Documentation][product-docs]
@@ -212,12 +212,12 @@ The Trace Agent does not support bundled server code, so bundlers like webpack o
212212

213213
## Samples
214214

215-
Samples are in the [`samples/`](https://github.com/googleapis/cloud-trace-nodejs/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.
215+
Samples are in the [`samples/`](https://github.com/googleapis/cloud-trace-nodejs/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
216216

217217
| Sample | Source Code | Try it |
218218
| --------------------------- | --------------------------------- | ------ |
219-
| 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) |
220-
| 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) |
219+
| App | [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/main/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) |
220+
| Snippets | [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/main/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) |
221221

222222

223223

@@ -265,7 +265,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]
265265

266266
## Contributing
267267

268-
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/cloud-trace-nodejs/blob/master/CONTRIBUTING.md).
268+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/cloud-trace-nodejs/blob/main/CONTRIBUTING.md).
269269

270270
Please note that this `README.md`, the `samples/README.md`,
271271
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
@@ -277,7 +277,7 @@ to its template in this
277277

278278
Apache Version 2.0
279279

280-
See [LICENSE](https://github.com/googleapis/cloud-trace-nodejs/blob/master/LICENSE)
280+
See [LICENSE](https://github.com/googleapis/cloud-trace-nodejs/blob/main/LICENSE)
281281

282282
[client-docs]: https://googleapis.dev/nodejs/trace/latest/
283283
[product-docs]: https://cloud.google.com/trace

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"@types/methods": "^1.1.0",
6262
"@types/mocha": "^8.0.0",
6363
"@types/mongoose": "^5.3.26",
64-
"@types/nock": "^10.0.0",
6564
"@types/node": "^14.0.0",
6665
"@types/node-fetch": "^2.5.0",
6766
"@types/once": "^1.4.0",

samples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Before running the samples, make sure you've followed the steps outlined in
3232

3333
### App
3434

35-
View the [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/master/samples/app.js).
35+
View the [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/main/samples/app.js).
3636

3737
[![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)
3838

@@ -49,7 +49,7 @@ __Usage:__
4949

5050
### Snippets
5151

52-
View the [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/master/samples/snippets.js).
52+
View the [source code](https://github.com/googleapis/cloud-trace-nodejs/blob/main/samples/snippets.js).
5353

5454
[![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)
5555

src/cls.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ interface CLSConstructor {
9494
*/
9595
export class TraceCLS implements CLS<RootContext> {
9696
private currentCLS: CLS<RootContext>;
97-
// tslint:disable-next-line:variable-name CLSClass is a constructor.
9897
private CLSClass: CLSConstructor;
9998
private enabled = false;
10099

src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// TODO(kjin): Once tests are fully converted, undercase the name of this
1616
// variable.
1717
/** Constant values. */
18-
// tslint:disable-next-line:variable-name
1918
export const Constants = {
2019
/** The metadata key under which trace context is stored as a binary value. */
2120
TRACE_CONTEXT_GRPC_METADATA_NAME: 'grpc-trace-bin',

src/plugins/plugin-bluebird.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ type BluebirdModule = typeof bluebird_3 & {prototype: {_then: Function}};
2323
const plugin: PluginTypes.Plugin = [
2424
{
2525
// Bluebird is a class.
26-
// tslint:disable-next-line:variable-name
2726
patch: (Bluebird, tracer) => {
2827
// any is a type arg; args are type checked when read directly, otherwise
2928
// passed through to a function with the same type signature.
@@ -41,7 +40,6 @@ const plugin: PluginTypes.Plugin = [
4140
]);
4241
};
4342
});
44-
// tslint:enable:no-any
4543
},
4644
} as PluginTypes.Monkeypatch<BluebirdModule>,
4745
];

src/plugins/plugin-grpc.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ const SKIP_FRAMES = 1;
125125
// depends on Metadata.
126126
// TODO(kjin): This could cause bugs if there are multiple gRPC modules being
127127
// used at once.
128-
// tslint:disable-next-line:variable-name
129128
let MetadataModuleValue: MetadataModule;
130129

131130
function patchMetadata(metadata: MetadataModule) {
@@ -304,7 +303,6 @@ function patchClient(client: ClientModule, api: Tracer) {
304303
): MakeClientConstructorFunction {
305304
return function makeClientConstructorTrace(this: never, methods) {
306305
// Client is a class.
307-
// tslint:disable-next-line:variable-name
308306
// eslint-disable-next-line prefer-rest-params
309307
const Client = makeClientConstructor.apply(this, arguments);
310308
const methodsToWrap = [

src/plugins/plugin-hapi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ const plugin: PluginTypes.Plugin = [
137137
versions: '>=17',
138138
file: 'lib/request.js',
139139
// Request is a class name.
140-
// tslint:disable-next-line:variable-name
141140
patch: (Request, api) => {
142141
// TODO(kjin): shimmer cannot wrap AsyncFunction objects.
143142
// Once shimmer introduces this functionality, change this code to use it.
@@ -153,7 +152,6 @@ const plugin: PluginTypes.Plugin = [
153152
);
154153
},
155154
// Request is a class name.
156-
// tslint:disable-next-line:variable-name
157155
unpatch: Request => {
158156
if (Request.prototype._execute[ORIGINAL]) {
159157
Request.prototype._execute = Request.prototype._execute[ORIGINAL]!;

src/plugins/plugin-pg.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ class PostgresPatchUtility {
109109
// eslint-disable-next-line @typescript-eslint/no-explicit-any
110110
...args: any[]
111111
): void {
112-
// tslint:enable:no-any
113112
if (!spanEnded) {
114113
const err: Error = args[0];
115114
maybePopulateLabelsFromOutputs(span, err);
@@ -131,7 +130,6 @@ class PostgresPatchUtility {
131130
// eslint-disable-next-line @typescript-eslint/no-explicit-any
132131
...args: any[]
133132
): void {
134-
// tslint:enable:no-any
135133
if (!spanEnded) {
136134
maybePopulateLabelsFromOutputs(span, null, this._result);
137135
span.endSpan();
@@ -181,7 +179,6 @@ const plugin: Plugin = [
181179
file: 'lib/client.js',
182180
versions: '^6.x',
183181
// TS: Client is a class name.
184-
// tslint:disable-next-line:variable-name
185182
patch: (Client, api) => {
186183
const pgPatch = new PostgresPatchUtility(api);
187184

@@ -227,7 +224,6 @@ const plugin: Plugin = [
227224
});
228225
},
229226
// TS: Client is a class name.
230-
// tslint:disable-next-line:variable-name
231227
unpatch(Client) {
232228
shimmer.unwrap(Client.prototype, 'query');
233229
},
@@ -236,7 +232,6 @@ const plugin: Plugin = [
236232
file: 'lib/client.js',
237233
versions: '^7.x',
238234
// TS: Client is a class name.
239-
// tslint:disable-next-line:variable-name
240235
patch: (Client, api) => {
241236
const pgPatch = new PostgresPatchUtility(api);
242237
shimmer.wrap(Client.prototype, 'query', query => {
@@ -301,7 +296,6 @@ const plugin: Plugin = [
301296
});
302297
},
303298
// TS: Client is a class name.
304-
// tslint:disable-next-line:variable-name
305299
unpatch(Client) {
306300
shimmer.unwrap(Client.prototype, 'query');
307301
},

src/span-data.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const spanRandomBuffer = randomFillSync
3535
: () => randomBytes(SPAN_ID_RANDOM_BYTES);
3636

3737
function randomSpanId() {
38-
// tslint:disable-next-line:ban Needed to parse hexadecimal.
3938
return parseInt(spanRandomBuffer().toString('hex'), 16).toString();
4039
}
4140

0 commit comments

Comments
 (0)