diff --git a/examples/60_extension/extension_introspection__introspection.ts b/examples/60_extension/extension_introspection__introspection.ts index 6d42c5b8f..d48ce617c 100644 --- a/examples/60_extension/extension_introspection__introspection.ts +++ b/examples/60_extension/extension_introspection__introspection.ts @@ -1,5 +1,5 @@ /** - * This example shows how to use the Or Throw extension to throw errors for one-off cases. + * This example shows how to use the Introspection extension to easily introspect your schema. */ import { Introspection } from '../../src/entrypoints/extensions.js' diff --git a/examples/60_extension/extension_throws__throws.ts b/examples/60_extension/extension_throws__throws.ts index 5a13af224..8c6fe09a7 100644 --- a/examples/60_extension/extension_throws__throws.ts +++ b/examples/60_extension/extension_throws__throws.ts @@ -1,5 +1,5 @@ /** - * This example shows how to use the Or Throw extension to throw errors for one-off cases. + * This example shows how to use the Throws extension to throw errors for one-off cases. */ import { Throws } from '../../src/entrypoints/extensions.js' diff --git a/examples/__outputs__/10_transport-http/transport-http_extension_headers__dynamicHeaders.output.txt b/examples/__outputs__/10_transport-http/transport-http_extension_headers__dynamicHeaders.output.txt index 9548a72b2..830b8b5cb 100644 --- a/examples/__outputs__/10_transport-http/transport-http_extension_headers__dynamicHeaders.output.txt +++ b/examples/__outputs__/10_transport-http/transport-http_extension_headers__dynamicHeaders.output.txt @@ -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': '1728323083637' + 'x-sent-at-time': '1728323381286' }, signal: undefined, method: 'post', diff --git a/examples/__outputs__/20_output/output_envelope.output.txt b/examples/__outputs__/20_output/output_envelope.output.txt index 4a8062bea..fc3b79159 100644 --- a/examples/__outputs__/20_output/output_envelope.output.txt +++ b/examples/__outputs__/20_output/output_envelope.output.txt @@ -18,7 +18,7 @@ headers: Headers { 'content-type': 'application/graphql-response+json; charset=utf-8', 'content-length': '142', - date: 'Mon, 07 Oct 2024 17:44:44 GMT', + date: 'Mon, 07 Oct 2024 17:49:41 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, diff --git a/examples/__outputs__/60_extension/extension_opentelemetry__opentelemetry.output.txt b/examples/__outputs__/60_extension/extension_opentelemetry__opentelemetry.output.txt index 2a998cba6..563c2c241 100644 --- a/examples/__outputs__/60_extension/extension_opentelemetry__opentelemetry.output.txt +++ b/examples/__outputs__/60_extension/extension_opentelemetry__opentelemetry.output.txt @@ -9,14 +9,14 @@ } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'encode', - id: 'e4ff4a8bb97fbbf5', + id: '87f70f2b478a9946', kind: 0, - timestamp: 1728323084547000, - duration: 558.417, + timestamp: 1728323381984000, + duration: 620.917, attributes: {}, status: { code: 0 }, events: [], @@ -33,14 +33,14 @@ } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'pack', - id: '09b726a8896e3073', + id: '4223bd045e4f82b7', kind: 0, - timestamp: 1728323084549000, - duration: 35745.875, + timestamp: 1728323381987000, + duration: 17090.167, attributes: {}, status: { code: 0 }, events: [], @@ -57,14 +57,14 @@ } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'exchange', - id: '4f03399f2bfc25db', + id: '1acd0a0de0d5eb48', kind: 0, - timestamp: 1728323084586000, - duration: 25530.709, + timestamp: 1728323382005000, + duration: 28187.833, attributes: {}, status: { code: 0 }, events: [], @@ -81,14 +81,14 @@ } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'unpack', - id: '121c06ed1ecca84e', + id: '5190c757f52e1c88', kind: 0, - timestamp: 1728323084612000, - duration: 1198.833, + timestamp: 1728323382033000, + duration: 1180.667, attributes: {}, status: { code: 0 }, events: [], @@ -105,14 +105,14 @@ } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'decode', - id: 'c901f18b864486a3', + id: '88685659d9725d48', kind: 0, - timestamp: 1728323084613000, - duration: 230.583, + timestamp: 1728323382035000, + duration: 196.375, attributes: {}, status: { code: 0 }, events: [], @@ -129,14 +129,14 @@ } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', + traceId: 'ac014dada983f302716deae963031d77', parentId: undefined, traceState: undefined, name: 'request', - id: '4f39c02937ad0f7b', + id: 'fe33e3cb84b589ed', kind: 0, - timestamp: 1728323084547000, - duration: 67030.5, + timestamp: 1728323381982000, + duration: 53359.417, attributes: {}, status: { code: 0 }, events: [], diff --git a/website/content/_snippets/examples/extension/opentelemetry.detail.md b/website/content/_snippets/examples/extension/opentelemetry.detail.md index 50578dc94..79a7203c2 100644 --- a/website/content/_snippets/examples/extension/opentelemetry.detail.md +++ b/website/content/_snippets/examples/extension/opentelemetry.detail.md @@ -37,14 +37,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'encode', - id: 'e4ff4a8bb97fbbf5', + id: '87f70f2b478a9946', kind: 0, - timestamp: 1728323084547000, - duration: 558.417, + timestamp: 1728323381984000, + duration: 620.917, attributes: {}, status: { code: 0 }, events: [], @@ -64,14 +64,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'pack', - id: '09b726a8896e3073', + id: '4223bd045e4f82b7', kind: 0, - timestamp: 1728323084549000, - duration: 35745.875, + timestamp: 1728323381987000, + duration: 17090.167, attributes: {}, status: { code: 0 }, events: [], @@ -91,14 +91,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'exchange', - id: '4f03399f2bfc25db', + id: '1acd0a0de0d5eb48', kind: 0, - timestamp: 1728323084586000, - duration: 25530.709, + timestamp: 1728323382005000, + duration: 28187.833, attributes: {}, status: { code: 0 }, events: [], @@ -118,14 +118,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'unpack', - id: '121c06ed1ecca84e', + id: '5190c757f52e1c88', kind: 0, - timestamp: 1728323084612000, - duration: 1198.833, + timestamp: 1728323382033000, + duration: 1180.667, attributes: {}, status: { code: 0 }, events: [], @@ -145,14 +145,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'decode', - id: 'c901f18b864486a3', + id: '88685659d9725d48', kind: 0, - timestamp: 1728323084613000, - duration: 230.583, + timestamp: 1728323382035000, + duration: 196.375, attributes: {}, status: { code: 0 }, events: [], @@ -172,14 +172,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', + traceId: 'ac014dada983f302716deae963031d77', parentId: undefined, traceState: undefined, name: 'request', - id: '4f39c02937ad0f7b', + id: 'fe33e3cb84b589ed', kind: 0, - timestamp: 1728323084547000, - duration: 67030.5, + timestamp: 1728323381982000, + duration: 53359.417, attributes: {}, status: { code: 0 }, events: [], diff --git a/website/content/_snippets/examples/extension/opentelemetry.md b/website/content/_snippets/examples/extension/opentelemetry.md index f1a3352a9..7094855df 100644 --- a/website/content/_snippets/examples/extension/opentelemetry.md +++ b/website/content/_snippets/examples/extension/opentelemetry.md @@ -35,14 +35,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'encode', - id: 'e4ff4a8bb97fbbf5', + id: '87f70f2b478a9946', kind: 0, - timestamp: 1728323084547000, - duration: 558.417, + timestamp: 1728323381984000, + duration: 620.917, attributes: {}, status: { code: 0 }, events: [], @@ -62,14 +62,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'pack', - id: '09b726a8896e3073', + id: '4223bd045e4f82b7', kind: 0, - timestamp: 1728323084549000, - duration: 35745.875, + timestamp: 1728323381987000, + duration: 17090.167, attributes: {}, status: { code: 0 }, events: [], @@ -89,14 +89,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'exchange', - id: '4f03399f2bfc25db', + id: '1acd0a0de0d5eb48', kind: 0, - timestamp: 1728323084586000, - duration: 25530.709, + timestamp: 1728323382005000, + duration: 28187.833, attributes: {}, status: { code: 0 }, events: [], @@ -116,14 +116,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'unpack', - id: '121c06ed1ecca84e', + id: '5190c757f52e1c88', kind: 0, - timestamp: 1728323084612000, - duration: 1198.833, + timestamp: 1728323382033000, + duration: 1180.667, attributes: {}, status: { code: 0 }, events: [], @@ -143,14 +143,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'decode', - id: 'c901f18b864486a3', + id: '88685659d9725d48', kind: 0, - timestamp: 1728323084613000, - duration: 230.583, + timestamp: 1728323382035000, + duration: 196.375, attributes: {}, status: { code: 0 }, events: [], @@ -170,14 +170,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', + traceId: 'ac014dada983f302716deae963031d77', parentId: undefined, traceState: undefined, name: 'request', - id: '4f39c02937ad0f7b', + id: 'fe33e3cb84b589ed', kind: 0, - timestamp: 1728323084547000, - duration: 67030.5, + timestamp: 1728323381982000, + duration: 53359.417, attributes: {}, status: { code: 0 }, events: [], diff --git a/website/content/_snippets/examples/output/envelope.detail.md b/website/content/_snippets/examples/output/envelope.detail.md index e494b367c..ec1f81c99 100644 --- a/website/content/_snippets/examples/output/envelope.detail.md +++ b/website/content/_snippets/examples/output/envelope.detail.md @@ -40,7 +40,7 @@ console.log(result) headers: Headers { 'content-type': 'application/graphql-response+json; charset=utf-8', 'content-length': '142', - date: 'Mon, 07 Oct 2024 17:44:44 GMT', + date: 'Mon, 07 Oct 2024 17:49:41 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, diff --git a/website/content/_snippets/examples/output/envelope.md b/website/content/_snippets/examples/output/envelope.md index 4252016ef..6b85d5763 100644 --- a/website/content/_snippets/examples/output/envelope.md +++ b/website/content/_snippets/examples/output/envelope.md @@ -38,7 +38,7 @@ console.log(result) headers: Headers { 'content-type': 'application/graphql-response+json; charset=utf-8', 'content-length': '142', - date: 'Mon, 07 Oct 2024 17:44:44 GMT', + date: 'Mon, 07 Oct 2024 17:49:41 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, diff --git a/website/content/_snippets/examples/transport-http/dynamic-headers.detail.md b/website/content/_snippets/examples/transport-http/dynamic-headers.detail.md index 57360d225..6e03525d8 100644 --- a/website/content/_snippets/examples/transport-http/dynamic-headers.detail.md +++ b/website/content/_snippets/examples/transport-http/dynamic-headers.detail.md @@ -38,7 +38,7 @@ await graffle.gql`{ pokemons { name } }`.send() headers: Headers { accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', 'content-type': 'application/json', - 'x-sent-at-time': '1728323083637' + 'x-sent-at-time': '1728323381286' }, signal: undefined, method: 'post', diff --git a/website/content/_snippets/examples/transport-http/dynamic-headers.md b/website/content/_snippets/examples/transport-http/dynamic-headers.md index 5e8e569c1..a2118fdb3 100644 --- a/website/content/_snippets/examples/transport-http/dynamic-headers.md +++ b/website/content/_snippets/examples/transport-http/dynamic-headers.md @@ -36,7 +36,7 @@ await graffle.gql`{ pokemons { name } }`.send() headers: Headers { accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', 'content-type': 'application/json', - 'x-sent-at-time': '1728323083637' + 'x-sent-at-time': '1728323381286' }, signal: undefined, method: 'post', diff --git a/website/content/examples/10_transport-http/dynamic-headers.md b/website/content/examples/10_transport-http/dynamic-headers.md index b6ef5c7fd..fa4f67fb7 100644 --- a/website/content/examples/10_transport-http/dynamic-headers.md +++ b/website/content/examples/10_transport-http/dynamic-headers.md @@ -43,7 +43,7 @@ await graffle.gql`{ pokemons { name } }`.send() headers: Headers { accept: 'application/graphql-response+json; charset=utf-8, application/json; charset=utf-8', 'content-type': 'application/json', - 'x-sent-at-time': '1728323083637' + 'x-sent-at-time': '1728323381286' }, signal: undefined, method: 'post', diff --git a/website/content/examples/20_output/envelope.md b/website/content/examples/20_output/envelope.md index c636bccc4..1e3f92d07 100644 --- a/website/content/examples/20_output/envelope.md +++ b/website/content/examples/20_output/envelope.md @@ -45,7 +45,7 @@ console.log(result) headers: Headers { 'content-type': 'application/graphql-response+json; charset=utf-8', 'content-length': '142', - date: 'Mon, 07 Oct 2024 17:44:44 GMT', + date: 'Mon, 07 Oct 2024 17:49:41 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, diff --git a/website/content/examples/60_extension/introspection.md b/website/content/examples/60_extension/introspection.md index e25638513..3a33db204 100644 --- a/website/content/examples/60_extension/introspection.md +++ b/website/content/examples/60_extension/introspection.md @@ -4,7 +4,7 @@ aside: false # Introspection -This example shows how to use the Or Throw extension to throw errors for one-off cases. +This example shows how to use the Introspection extension to easily introspect your schema. ```ts twoslash diff --git a/website/content/examples/60_extension/opentelemetry.md b/website/content/examples/60_extension/opentelemetry.md index 5a62be6e5..1a2a11208 100644 --- a/website/content/examples/60_extension/opentelemetry.md +++ b/website/content/examples/60_extension/opentelemetry.md @@ -40,14 +40,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'encode', - id: 'e4ff4a8bb97fbbf5', + id: '87f70f2b478a9946', kind: 0, - timestamp: 1728323084547000, - duration: 558.417, + timestamp: 1728323381984000, + duration: 620.917, attributes: {}, status: { code: 0 }, events: [], @@ -67,14 +67,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'pack', - id: '09b726a8896e3073', + id: '4223bd045e4f82b7', kind: 0, - timestamp: 1728323084549000, - duration: 35745.875, + timestamp: 1728323381987000, + duration: 17090.167, attributes: {}, status: { code: 0 }, events: [], @@ -94,14 +94,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'exchange', - id: '4f03399f2bfc25db', + id: '1acd0a0de0d5eb48', kind: 0, - timestamp: 1728323084586000, - duration: 25530.709, + timestamp: 1728323382005000, + duration: 28187.833, attributes: {}, status: { code: 0 }, events: [], @@ -121,14 +121,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'unpack', - id: '121c06ed1ecca84e', + id: '5190c757f52e1c88', kind: 0, - timestamp: 1728323084612000, - duration: 1198.833, + timestamp: 1728323382033000, + duration: 1180.667, attributes: {}, status: { code: 0 }, events: [], @@ -148,14 +148,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', - parentId: '4f39c02937ad0f7b', + traceId: 'ac014dada983f302716deae963031d77', + parentId: 'fe33e3cb84b589ed', traceState: undefined, name: 'decode', - id: 'c901f18b864486a3', + id: '88685659d9725d48', kind: 0, - timestamp: 1728323084613000, - duration: 230.583, + timestamp: 1728323382035000, + duration: 196.375, attributes: {}, status: { code: 0 }, events: [], @@ -175,14 +175,14 @@ console.log(data) } }, instrumentationScope: { name: 'graffle', version: undefined, schemaUrl: undefined }, - traceId: 'b2071d95c3da568c0600a0efa71af6c5', + traceId: 'ac014dada983f302716deae963031d77', parentId: undefined, traceState: undefined, name: 'request', - id: '4f39c02937ad0f7b', + id: 'fe33e3cb84b589ed', kind: 0, - timestamp: 1728323084547000, - duration: 67030.5, + timestamp: 1728323381982000, + duration: 53359.417, attributes: {}, status: { code: 0 }, events: [], diff --git a/website/content/examples/60_extension/throws.md b/website/content/examples/60_extension/throws.md index 5ffd9e41a..397fe4115 100644 --- a/website/content/examples/60_extension/throws.md +++ b/website/content/examples/60_extension/throws.md @@ -4,7 +4,7 @@ aside: false # Throws -This example shows how to use the Or Throw extension to throw errors for one-off cases. +This example shows how to use the Throws extension to throw errors for one-off cases. ```ts twoslash