Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tender-ways-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/http': minor
---

Support Apollo Federated Tracing
1 change: 1 addition & 0 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@graphql-mesh/runtime": "0.44.19",
"@graphql-mesh/utils": "0.41.20",
"@graphql-mesh/types": "0.84.9",
"@graphql-yoga/plugin-apollo-inline-trace": "^1.0.0-next.3",
"graphql-yoga": "3.0.0-next.3",
"itty-router": "2.6.6",
"itty-router-extras": "0.4.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/http/src/graphqlHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MeshInstance } from '@graphql-mesh/runtime';
import { CORSOptions, createYoga, useLogger } from 'graphql-yoga';
import { useApolloInlineTrace } from '@graphql-yoga/plugin-apollo-inline-trace';

export const graphqlHandler = (
mesh$: Promise<MeshInstance>,
Expand All @@ -14,6 +15,7 @@ export const graphqlHandler = (
validationCache: false,
plugins: [
...mesh.plugins,
useApolloInlineTrace(),
useLogger({
skipIntrospection: true,
logFn: (eventName, { args }) => {
Expand Down
17 changes: 16 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2542,6 +2542,14 @@
resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.1.tgz#076d78ce99822258cf813ecc1e7fa460fa74d052"
integrity sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg==

"@graphql-yoga/plugin-apollo-inline-trace@^1.0.0-next.3":
version "1.0.0-next.3"
resolved "https://registry.yarnpkg.com/@graphql-yoga/plugin-apollo-inline-trace/-/plugin-apollo-inline-trace-1.0.0-next.3.tgz#45dadf9564cc5249e84d2ada3956f0ae25dbeb45"
integrity sha512-+xRoVOYzq2rES9hGxYRIqWYuKbmcA0z+rP1s3zz/VPZFg/SFgJ9JXFf5iN+JriIaLToAYJgoxG3uZ5AILtn5gA==
dependencies:
"@whatwg-node/fetch" "0.4.6"
apollo-reporting-protobuf "^3.3.2"

"@graphql-yoga/subscription@^3.0.0-next.0":
version "3.0.0-next.0"
resolved "https://registry.yarnpkg.com/@graphql-yoga/subscription/-/subscription-3.0.0-next.0.tgz#fce94b540ec8837c7667e24b556b70553ccb558b"
Expand Down Expand Up @@ -5751,6 +5759,13 @@ apollo-reporting-protobuf@^0.8.0, "apollo-reporting-protobuf@^0.8.0 || ^3.0.0":
dependencies:
"@apollo/protobufjs" "1.2.2"

apollo-reporting-protobuf@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/apollo-reporting-protobuf/-/apollo-reporting-protobuf-3.3.2.tgz#2078c53d3140bc6221c6040c5326623e0c21c8d4"
integrity sha512-j1tx9tmkVdsLt1UPzBrvz90PdjAeKW157WxGn+aXlnnGfVjZLIRXX3x5t1NWtXvB7rVaAsLLILLtDHW382TSoQ==
dependencies:
"@apollo/protobufjs" "1.2.4"

apollo-server-caching@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/apollo-server-caching/-/apollo-server-caching-0.7.0.tgz#e6d1e68e3bb571cba63a61f60b434fb771c6ff39"
Expand Down Expand Up @@ -15166,7 +15181,7 @@ object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=

object-hash@3.0.0, object-hash@^3.0.0:
object-hash@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9"
integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==
Expand Down