Skip to content

Commit 65b799e

Browse files
committed
some have newlines
1 parent 2a47dc9 commit 65b799e

File tree

49 files changed

+531
-531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+531
-531
lines changed

packages/datadog-plugin-aerospike/test/index.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('Plugin', () => {
6262

6363
it('should instrument put', done => {
6464
agent
65-
.use(traces => {
65+
.assertSomeTraces(traces => {
6666
const span = traces[0][0]
6767
expect(span).to.have.property('name', expectedSchema.command.opName)
6868
expect(span).to.have.property('service', expectedSchema.command.serviceName)
@@ -88,7 +88,7 @@ describe('Plugin', () => {
8888

8989
it('should instrument connect', done => {
9090
agent
91-
.use(traces => {
91+
.assertSomeTraces(traces => {
9292
const span = traces[0][0]
9393
expect(span).to.have.property('name', expectedSchema.command.opName)
9494
expect(span).to.have.property('service', expectedSchema.command.serviceName)
@@ -105,7 +105,7 @@ describe('Plugin', () => {
105105

106106
it('should instrument get', done => {
107107
agent
108-
.use(traces => {
108+
.assertSomeTraces(traces => {
109109
const span = traces[0][0]
110110
expect(span).to.have.property('name', expectedSchema.command.opName)
111111
expect(span).to.have.property('service', expectedSchema.command.serviceName)
@@ -129,7 +129,7 @@ describe('Plugin', () => {
129129

130130
it('should instrument operate', done => {
131131
agent
132-
.use(traces => {
132+
.assertSomeTraces(traces => {
133133
const span = traces[0][0]
134134
expect(span).to.have.property('name', expectedSchema.command.opName)
135135
expect(span).to.have.property('service', expectedSchema.command.serviceName)
@@ -160,7 +160,7 @@ describe('Plugin', () => {
160160

161161
it('should instrument createIndex', done => {
162162
agent
163-
.use(traces => {
163+
.assertSomeTraces(traces => {
164164
const span = traces[0][0]
165165
expect(span).to.have.property('name', expectedSchema.command.opName)
166166
expect(span).to.have.property('service', expectedSchema.command.serviceName)
@@ -192,7 +192,7 @@ describe('Plugin', () => {
192192

193193
it('should instrument query', done => {
194194
agent
195-
.use(traces => {
195+
.assertSomeTraces(traces => {
196196
const span = traces[0][0]
197197
expect(span).to.have.property('name', expectedSchema.command.opName)
198198
expect(span).to.have.property('service', expectedSchema.command.serviceName)
@@ -246,7 +246,7 @@ describe('Plugin', () => {
246246
let error
247247

248248
agent
249-
.use(traces => {
249+
.assertSomeTraces(traces => {
250250
expect(traces[0][0].meta).to.have.property(ERROR_TYPE, error.name)
251251
expect(traces[0][0].meta).to.have.property(ERROR_MESSAGE, error.message)
252252
expect(traces[0][0].meta).to.have.property(ERROR_STACK, error.stack)
@@ -293,7 +293,7 @@ describe('Plugin', () => {
293293

294294
it('should be configured with the correct values', done => {
295295
agent
296-
.use(traces => {
296+
.assertSomeTraces(traces => {
297297
expect(traces[0][0]).to.have.property('name', expectedSchema.command.opName)
298298
expect(traces[0][0]).to.have.property('service', 'custom')
299299
})

packages/datadog-plugin-amqp10/test/index.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('Plugin', () => {
7171

7272
it('should do automatic instrumentation', done => {
7373
agent
74-
.use(traces => {
74+
.assertSomeTraces(traces => {
7575
const span = traces[0][0]
7676

7777
expect(span).to.have.property('name', expectedSchema.send.opName)
@@ -100,7 +100,7 @@ describe('Plugin', () => {
100100
let error
101101

102102
agent
103-
.use(traces => {
103+
.assertSomeTraces(traces => {
104104
const span = traces[0][0]
105105

106106
expect(span.error).to.equal(1)
@@ -144,7 +144,7 @@ describe('Plugin', () => {
144144
describe('when consuming messages', () => {
145145
it('should do automatic instrumentation', done => {
146146
agent
147-
.use(traces => {
147+
.assertSomeTraces(traces => {
148148
const span = traces[0][0]
149149
expect(span).to.have.property('name', expectedSchema.receive.opName)
150150
expect(span).to.have.property('service', expectedSchema.receive.serviceName)
@@ -210,7 +210,7 @@ describe('Plugin', () => {
210210

211211
it('should be configured with the correct values', done => {
212212
agent
213-
.use(traces => {
213+
.assertSomeTraces(traces => {
214214
const span = traces[0][0]
215215

216216
expect(span).to.have.property('service', 'test-custom-name')

packages/datadog-plugin-amqplib/test/index.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('Plugin', () => {
6767

6868
it('should do automatic instrumentation for immediate commands', done => {
6969
agent
70-
.use(traces => {
70+
.assertSomeTraces(traces => {
7171
const span = traces[0][0]
7272
expect(span).to.have.property('name', expectedSchema.controlPlane.opName)
7373
expect(span).to.have.property('service', expectedSchema.controlPlane.serviceName)
@@ -86,7 +86,7 @@ describe('Plugin', () => {
8686

8787
it('should do automatic instrumentation for queued commands', done => {
8888
agent
89-
.use(traces => {
89+
.assertSomeTraces(traces => {
9090
const span = traces[0][0]
9191

9292
expect(span).to.have.property('name', expectedSchema.controlPlane.opName)
@@ -109,7 +109,7 @@ describe('Plugin', () => {
109109
let error
110110

111111
agent
112-
.use(traces => {
112+
.assertSomeTraces(traces => {
113113
const span = traces[0][0]
114114

115115
expect(span).to.have.property('error', 1)
@@ -145,7 +145,7 @@ describe('Plugin', () => {
145145

146146
it('should do automatic instrumentation', done => {
147147
agent
148-
.use(traces => {
148+
.assertSomeTraces(traces => {
149149
const span = traces[0][0]
150150

151151
expect(span).to.have.property('name', expectedSchema.send.opName)
@@ -169,7 +169,7 @@ describe('Plugin', () => {
169169
let error
170170

171171
agent
172-
.use(traces => {
172+
.assertSomeTraces(traces => {
173173
const span = traces[0][0]
174174

175175
expect(span).to.have.property('error', 1)
@@ -203,7 +203,7 @@ describe('Plugin', () => {
203203
let queue
204204

205205
agent
206-
.use(traces => {
206+
.assertSomeTraces(traces => {
207207
const span = traces[0][0]
208208
expect(span).to.have.property('name', expectedSchema.receive.opName)
209209
expect(span).to.have.property('service', expectedSchema.receive.serviceName)
@@ -543,7 +543,7 @@ describe('Plugin', () => {
543543

544544
it('should be configured with the correct values', done => {
545545
agent
546-
.use(traces => {
546+
.assertSomeTraces(traces => {
547547
expect(traces[0][0]).to.have.property('service', 'test-custom-service')
548548
expect(traces[0][0]).to.have.property('resource', `queue.declare ${queue}`)
549549
}, 2)

packages/datadog-plugin-apollo/test/index.spec.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe('Plugin', () => {
112112
}
113113
}`
114114
agent
115-
.use((traces) => {
115+
.assertSomeTraces((traces) => {
116116
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
117117
expect(traces[0][1]).to.have.property('name', 'apollo.gateway.validate')
118118
expect(traces[0][2]).to.have.property('name', 'apollo.gateway.plan')
@@ -139,7 +139,7 @@ describe('Plugin', () => {
139139
const source = `query ${operationName} { hello(name: "world") }`
140140
const variableValues = { who: 'world' }
141141
agent
142-
.use((traces) => {
142+
.assertSomeTraces((traces) => {
143143
// the spans are in order of execution
144144
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
145145
expect(traces[0][0]).to.have.property('service', expectedSchema.server.serviceName)
@@ -194,7 +194,7 @@ describe('Plugin', () => {
194194
it('should instrument schema resolver', done => {
195195
const source = '{ hello(name: "world") }'
196196
agent
197-
.use((traces) => {
197+
.assertSomeTraces((traces) => {
198198
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
199199
expect(traces[0][0]).to.have.property('service', expectedSchema.server.serviceName)
200200
expect(traces[0][0]).to.have.property('resource', '{hello(name:"")}')
@@ -226,7 +226,7 @@ describe('Plugin', () => {
226226
}
227227
`
228228
agent
229-
.use((traces) => {
229+
.assertSomeTraces((traces) => {
230230
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
231231
expect(traces[0][0]).to.have.property('service', expectedSchema.server.serviceName)
232232
expect(traces[0][0]).to.have.property('resource', '{human{address{civicNumber street}name}}')
@@ -249,7 +249,7 @@ describe('Plugin', () => {
249249
const source = 'mutation { human { name } }'
250250

251251
agent
252-
.use((traces) => {
252+
.assertSomeTraces((traces) => {
253253
expect(traces[0][0].meta).to.have.property('graphql.operation.type', 'mutation')
254254
})
255255
.then(done)
@@ -284,7 +284,7 @@ describe('Plugin', () => {
284284
}`
285285
const variableValues = { who: 'world' }
286286
agent
287-
.use((traces) => {
287+
.assertSomeTraces((traces) => {
288288
expect(traces[0].length).equal(2)
289289
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
290290
expect(traces[0][0]).to.have.property('service', expectedSchema.server.serviceName)
@@ -319,7 +319,7 @@ describe('Plugin', () => {
319319
const source = `subscription ${operationName} { hello(name: "world") }`
320320
const variableValues = { who: 'world' }
321321
agent
322-
.use((traces) => {
322+
.assertSomeTraces((traces) => {
323323
expect(traces[0].length).equal(3)
324324
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
325325
expect(traces[0][0]).to.have.property('service', expectedSchema.server.serviceName)
@@ -354,7 +354,7 @@ describe('Plugin', () => {
354354
const source = `query ${operationName} { hello(name: "world") }`
355355
const variableValues = { who: 'world' }
356356
agent
357-
.use((traces) => {
357+
.assertSomeTraces((traces) => {
358358
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
359359
expect(traces[0][0]).to.have.property('error', 1)
360360
expect(traces[0][0].meta).to.have.property(ERROR_TYPE, error.name)
@@ -414,7 +414,7 @@ describe('Plugin', () => {
414414
const variableValues = { who: 'world' }
415415

416416
agent
417-
.use((traces) => {
417+
.assertSomeTraces((traces) => {
418418
// the spans are in order of execution
419419
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
420420

@@ -470,7 +470,7 @@ describe('Plugin', () => {
470470
const source = `query ${operationName} { hello(name: "world") }`
471471
const variableValues = { who: 'world' }
472472
agent
473-
.use((traces) => {
473+
.assertSomeTraces((traces) => {
474474
expect(traces[0][0]).to.have.property('name', expectedSchema.server.opName)
475475
expect(traces[0][0]).to.have.property('service', 'custom')
476476
expect(traces[0][0]).to.have.property('resource', `query ${operationName}`)

packages/datadog-plugin-cassandra-driver/test/index.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('Plugin', () => {
5353
it('should do automatic instrumentation', done => {
5454
const query = 'SELECT now() FROM local;'
5555
agent
56-
.use(traces => {
56+
.assertSomeTraces(traces => {
5757
expect(traces[0][0]).to.have.property('name', expectedSchema.outbound.opName)
5858
expect(traces[0][0]).to.have.property('service', expectedSchema.outbound.serviceName)
5959
expect(traces[0][0]).to.have.property('resource', query)
@@ -81,7 +81,7 @@ describe('Plugin', () => {
8181
]
8282

8383
agent
84-
.use(traces => {
84+
.assertSomeTraces(traces => {
8585
expect(traces[0][0]).to.have.property('resource', `${queries[0].query}; ${queries[1]}`)
8686
})
8787
.then(done)
@@ -98,7 +98,7 @@ describe('Plugin', () => {
9898
]
9999

100100
agent
101-
.use(traces => {
101+
.assertSomeTraces(traces => {
102102
expect(traces[0][0]).to.have.property('resource', `${queries[0].query}; ${queries[1]}`)
103103
})
104104
.then(done)
@@ -115,7 +115,7 @@ describe('Plugin', () => {
115115
let error
116116

117117
agent
118-
.use(traces => {
118+
.assertSomeTraces(traces => {
119119
expect(traces[0][0].meta).to.have.property(ERROR_TYPE, error.name)
120120
expect(traces[0][0].meta).to.have.property(ERROR_MESSAGE, error.message)
121121
expect(traces[0][0].meta).to.have.property(ERROR_STACK, error.stack)
@@ -247,7 +247,7 @@ describe('Plugin', () => {
247247
const query = 'SELECT now() FROM local;'
248248

249249
agent
250-
.use(traces => {
250+
.assertSomeTraces(traces => {
251251
expect(traces[0][0]).to.have.property('name', expectedSchema.outbound.opName)
252252
expect(traces[0][0]).to.have.property('service', expectedSchema.outbound.serviceName)
253253
expect(traces[0][0]).to.have.property('resource', query)
@@ -275,7 +275,7 @@ describe('Plugin', () => {
275275
]
276276

277277
agent
278-
.use(traces => {
278+
.assertSomeTraces(traces => {
279279
expect(traces[0][0]).to.have.property('resource', `${queries[0].query}; ${queries[1]}`)
280280
})
281281
.then(done)

0 commit comments

Comments
 (0)