Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Nov 11, 2024
1 parent 969091f commit ee5d65d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/datadog-plugin-aws-sdk/test/s3.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Plugin', () => {
it('should add span pointer for putObject operation', (done) => {
agent.use(traces => {
const span = traces[0][0]
const links = span.links || []
const links = span._links || []

expect(links).to.have.lengthOf(1)
expect(links[0].attributes).to.deep.equal({
Expand All @@ -124,7 +124,9 @@ describe('Plugin', () => {
agent.use(traces => {
try {
const span = traces[0][0]
const links = span.links || []
console.log('Span structure:', JSON.stringify(span, null, 2))
console.log('Traces structure:', JSON.stringify(traces, null, 2))
const links = span._links || []

expect(links).to.have.lengthOf(1)
expect(links[0].attributes).to.deep.equal({
Expand Down Expand Up @@ -152,7 +154,7 @@ describe('Plugin', () => {
agent.use(traces => {
try {
const span = traces[0][0]
const links = span.links || []
const links = span._links || []
expect(links).to.have.lengthOf(0)
done()
} catch (error) {
Expand Down

0 comments on commit ee5d65d

Please sign in to comment.