Skip to content

Commit

Permalink
chore(docs): update example descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Oct 7, 2024
1 parent ac2da57 commit d63c6a8
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 128 deletions.
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion examples/60_extension/extension_throws__throws.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
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': '1728323083637'
'x-sent-at-time': '1728323381286'
},
signal: undefined,
method: 'post',
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 @@ -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'
},
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: '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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
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 @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand All @@ -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: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down
Loading

0 comments on commit d63c6a8

Please sign in to comment.