Skip to content

Commit

Permalink
chore(website): fix example group name
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Dec 22, 2024
1 parent 04d98c6 commit 732ae6c
Show file tree
Hide file tree
Showing 19 changed files with 129 additions and 129 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
headers: Headers {
accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8',
'content-type': 'application/json',
'x-sent-at-time': '1734877667965'
'x-sent-at-time': '1734878384165'
},
method: 'post',
url: 'http://localhost:3000/graphql',
Expand Down
2 changes: 1 addition & 1 deletion examples/__outputs__/20_output/output_envelope.output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
headers: Headers {
'content-type': 'application/graphql-response+json; charset=utf-8',
'content-length': '142',
date: 'Sun, 22 Dec 2024 14:27:48 GMT',
date: 'Sun, 22 Dec 2024 14:39:45 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'encode',
id: 'e30897dc9cb51142',
id: 'f723a4047c4f8246',
kind: 0,
timestamp: 1734877668621000,
duration: 1060.917,
timestamp: 1734878385686000,
duration: 1952.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -33,14 +33,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'pack',
id: '893c1fed7b2256dd',
id: '8404e21eb12fbc92',
kind: 0,
timestamp: 1734877668623000,
duration: 18450.083,
timestamp: 1734878385689000,
duration: 12830.875,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -57,14 +57,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'exchange',
id: 'b0c30685f178d075',
id: 'c5691fe0bcfc9991',
kind: 0,
timestamp: 1734877668642000,
duration: 25750.5,
timestamp: 1734878385703000,
duration: 20900.792,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -81,14 +81,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'unpack',
id: 'c148fb01cd7693fa',
id: 'bafdd78624e21445',
kind: 0,
timestamp: 1734877668668000,
duration: 1080.291,
timestamp: 1734878385724000,
duration: 992.417,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -105,14 +105,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'decode',
id: '634824deddb746e7',
id: '32fa8b5942d69ca9',
kind: 0,
timestamp: 1734877668670000,
duration: 516.708,
timestamp: 1734878385725000,
duration: 446.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -129,14 +129,14 @@
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: undefined,
traceState: undefined,
name: 'request',
id: '6fcf4ddd316eb7dd',
id: '45c84f0a43771166',
kind: 0,
timestamp: 1734877668621000,
duration: 49549.459,
timestamp: 1734878385686000,
duration: 39771.791,
attributes: {},
status: { code: 0 },
events: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { expect, test } from 'vitest'
import { runExample } from '../../../scripts/generate-examples-derivatives/helpers.js'

test(`selection-sets`, async () => {
const exampleResult = await runExample(`./examples/70_type_level/selection-sets.ts`)
const exampleResult = await runExample(`./examples/70_type-level/selection-sets.ts`)
// Examples should output their data results.
const exampleResultMaybeEncoded = exampleResult
// If ever outputs vary by Node version, you can use this to snapshot by Node version.
// const nodeMajor = process.version.match(/v(\d+)/)?.[1] ?? `unknown`
await expect(exampleResultMaybeEncoded).toMatchFileSnapshot(
`../../../examples/__outputs__/70_type_level/selection-sets.output.txt`,
`../../../examples/__outputs__/70_type-level/selection-sets.output.txt`,
)
})
2 changes: 1 addition & 1 deletion website/content/_snippets/example-links/selection-sets.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/type_level/selection-sets">Selection Sets</a></p>
<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> <a href="../../examples/type-level/selection-sets">Selection Sets</a></p>
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'encode',
id: 'e30897dc9cb51142',
id: 'f723a4047c4f8246',
kind: 0,
timestamp: 1734877668621000,
duration: 1060.917,
timestamp: 1734878385686000,
duration: 1952.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -70,14 +70,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'pack',
id: '893c1fed7b2256dd',
id: '8404e21eb12fbc92',
kind: 0,
timestamp: 1734877668623000,
duration: 18450.083,
timestamp: 1734878385689000,
duration: 12830.875,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -97,14 +97,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'exchange',
id: 'b0c30685f178d075',
id: 'c5691fe0bcfc9991',
kind: 0,
timestamp: 1734877668642000,
duration: 25750.5,
timestamp: 1734878385703000,
duration: 20900.792,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -124,14 +124,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'unpack',
id: 'c148fb01cd7693fa',
id: 'bafdd78624e21445',
kind: 0,
timestamp: 1734877668668000,
duration: 1080.291,
timestamp: 1734878385724000,
duration: 992.417,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -151,14 +151,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'decode',
id: '634824deddb746e7',
id: '32fa8b5942d69ca9',
kind: 0,
timestamp: 1734877668670000,
duration: 516.708,
timestamp: 1734878385725000,
duration: 446.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -178,14 +178,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: undefined,
traceState: undefined,
name: 'request',
id: '6fcf4ddd316eb7dd',
id: '45c84f0a43771166',
kind: 0,
timestamp: 1734877668621000,
duration: 49549.459,
timestamp: 1734878385686000,
duration: 39771.791,
attributes: {},
status: { code: 0 },
events: [],
Expand Down
58 changes: 29 additions & 29 deletions website/content/_snippets/examples/extension/opentelemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'encode',
id: 'e30897dc9cb51142',
id: 'f723a4047c4f8246',
kind: 0,
timestamp: 1734877668621000,
duration: 1060.917,
timestamp: 1734878385686000,
duration: 1952.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -68,14 +68,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'pack',
id: '893c1fed7b2256dd',
id: '8404e21eb12fbc92',
kind: 0,
timestamp: 1734877668623000,
duration: 18450.083,
timestamp: 1734878385689000,
duration: 12830.875,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -95,14 +95,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'exchange',
id: 'b0c30685f178d075',
id: 'c5691fe0bcfc9991',
kind: 0,
timestamp: 1734877668642000,
duration: 25750.5,
timestamp: 1734878385703000,
duration: 20900.792,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -122,14 +122,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'unpack',
id: 'c148fb01cd7693fa',
id: 'bafdd78624e21445',
kind: 0,
timestamp: 1734877668668000,
duration: 1080.291,
timestamp: 1734878385724000,
duration: 992.417,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -149,14 +149,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
parentId: '6fcf4ddd316eb7dd',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: '45c84f0a43771166',
traceState: undefined,
name: 'decode',
id: '634824deddb746e7',
id: '32fa8b5942d69ca9',
kind: 0,
timestamp: 1734877668670000,
duration: 516.708,
timestamp: 1734878385725000,
duration: 446.542,
attributes: {},
status: { code: 0 },
events: [],
Expand All @@ -176,14 +176,14 @@ console.log(data)
}
},
instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined },
traceId: '0e52a2a1fb3ccb88d38cd44dded63dec',
traceId: '7adcc8f82ea6b22e5d53dc12a862e3b7',
parentId: undefined,
traceState: undefined,
name: 'request',
id: '6fcf4ddd316eb7dd',
id: '45c84f0a43771166',
kind: 0,
timestamp: 1734877668621000,
duration: 49549.459,
timestamp: 1734878385686000,
duration: 39771.791,
attributes: {},
status: { code: 0 },
events: [],
Expand Down
Loading

0 comments on commit 732ae6c

Please sign in to comment.