Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8a85f1c
chore(mongoose): remove diag prints in patch
blumamir Apr 27, 2024
5351954
chore(tedious): remove diag prints in patch
blumamir Apr 27, 2024
eba86f2
chore(dns): remove diag prints in patch
blumamir Apr 27, 2024
ab58270
chore(fastify): remove diag prints in patch
blumamir Apr 27, 2024
9811baa
chore(hapi): remove diag prints in patch
blumamir Apr 27, 2024
53a4811
chore(knex): remove diag prints in patch
blumamir Apr 27, 2024
203f82d
chore(mysql): remove diag prints in patch
blumamir Apr 27, 2024
2b105cc
chore(pg): remove diag prints in patch
blumamir Apr 27, 2024
d3e00f2
chore(redis): remove diag prints in patch
blumamir Apr 27, 2024
182405f
docs: document when to use diag for patch
blumamir Apr 27, 2024
e602c3b
chore: lint markdown
blumamir Apr 27, 2024
5cf1a43
fix: unused import
blumamir Apr 27, 2024
c547835
chore: remove unused import
blumamir Apr 27, 2024
b3cf029
Merge branch 'main' into no-patch-diag
blumamir Apr 29, 2024
7a7f69f
Merge branch 'main' into no-patch-diag
blumamir Apr 29, 2024
628471d
Merge branch 'main' into no-patch-diag
blumamir Apr 29, 2024
3c5ca76
Merge branch 'main' into no-patch-diag
blumamir Apr 29, 2024
124d1aa
Update GUIDELINES.md
blumamir Apr 30, 2024
00e3416
Update GUIDELINES.md
blumamir Apr 30, 2024
ee1e0fa
Update GUIDELINES.md
blumamir Apr 30, 2024
4d5050c
Update GUIDELINES.md
blumamir Apr 30, 2024
855d264
Update GUIDELINES.md
blumamir Apr 30, 2024
f84890d
Merge branch 'main' into no-patch-diag
blumamir Apr 30, 2024
5b22de0
Merge branch 'main' into no-patch-diag
blumamir Apr 30, 2024
0aa2cfe
Merge branch 'main' into no-patch-diag
blumamir Apr 30, 2024
cccc9ba
Merge branch 'main' into no-patch-diag
blumamir Apr 30, 2024
4bb5e16
Update GUIDELINES.md
blumamir May 1, 2024
928fe6a
Merge remote-tracking branch 'upstream/main' into no-patch-diag
blumamir May 1, 2024
0ade21f
fix: name of diag in CHANGELOG
blumamir May 1, 2024
8185fbd
Merge branch 'main' into no-patch-diag
blumamir May 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore(mongoose): remove diag prints in patch
  • Loading branch information
blumamir committed Apr 27, 2024
commit 8a85f1c7fddab12eb00b64db41f0c49c8776c0d6
5 changes: 0 additions & 5 deletions plugins/node/instrumentation-mongoose/src/mongoose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export class MongooseInstrumentation extends InstrumentationBase {

private patchAggregateExec(moduleVersion: string | undefined) {
const self = this;
this._diag.debug('patched mongoose Aggregate exec function');
return (originalAggregate: Function) => {
return function exec(this: any, callback?: Function) {
if (
Expand Down Expand Up @@ -183,7 +182,6 @@ export class MongooseInstrumentation extends InstrumentationBase {

private patchQueryExec(moduleVersion: string | undefined) {
const self = this;
this._diag.debug('patched mongoose Query exec function');
return (originalExec: Function) => {
return function exec(this: any, callback?: Function) {
if (
Expand Down Expand Up @@ -226,7 +224,6 @@ export class MongooseInstrumentation extends InstrumentationBase {

private patchOnModelMethods(op: string, moduleVersion: string | undefined) {
const self = this;
this._diag.debug(`patching mongoose Model '${op}' operation`);
return (originalOnModelFunction: Function) => {
return function method(this: any, options?: any, callback?: Function) {
if (
Expand Down Expand Up @@ -275,7 +272,6 @@ export class MongooseInstrumentation extends InstrumentationBase {
// the aggregate of Model, and set the context on the Aggregate object
private patchModelAggregate() {
const self = this;
this._diag.debug('patched mongoose model aggregate function');
return (original: Function) => {
return function captureSpanContext(this: any) {
const currentSpan = trace.getSpan(context.active());
Expand All @@ -290,7 +286,6 @@ export class MongooseInstrumentation extends InstrumentationBase {

private patchAndCaptureSpanContext(funcName: string) {
const self = this;
this._diag.debug(`patching mongoose query ${funcName} function`);
return (original: Function) => {
return function captureSpanContext(this: any) {
this[_STORED_PARENT_SPAN] = trace.getSpan(context.active());
Expand Down