Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More verbose logging #7343

Merged
merged 12 commits into from
Jul 25, 2024
Merged

More verbose logging #7343

merged 12 commits into from
Jul 25, 2024

Conversation

ardatan
Copy link
Owner

@ardatan ardatan commented Jul 23, 2024

image

Timestamps

Now all logs have timestamps

Request ID

If user provides a request id with x-request-id header, it will be used as a request id otherwise Mesh generates a random UUID as a request id.
Then it will return the request id in the response headers with x-request-id header.

This x-request-id is also available in upstream headers as request-id for the upstream services to use.

This request id will also be added to the logs.

Verbose Logs for HTTP Calls and Subgraph Calls

All upstream GraphQL requests and responses are logged to the console together with HTTP Fetch calls.

Unrelated

Fixed the bug when you go to the landing page first then GraphiQL, all queries are not executed properly

Copy link
Contributor

github-actions bot commented Jul 23, 2024

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-mesh/cache-cfw-kv 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/cache-file 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/cache-localforage 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/cache-redis 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/compose-cli 0.6.3-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/fusion-composition 0.1.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/fusion-runtime 0.5.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/apollo-link 0.100.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/cli 0.92.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/config 0.101.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/graphql 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/grpc 0.101.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/json-schema 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/mongoose 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/mysql 0.100.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/neo4j 0.100.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/odata 0.101.2-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/openapi 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/postgraphile 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/raml 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/soap 0.101.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/supergraph 0.5.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/thrift 0.101.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/tuql 0.100.6-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/http 0.100.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/merger-bare 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/merger-federation 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/merger-stitching 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/runtime 0.100.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/store 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-cache 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-encapsulate 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-extend 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-federation 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-filter-schema 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-hive 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-hoist-field 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-naming-convention 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-prefix 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-prune 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-rate-limit 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-rename 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-replace-field 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-resolvers-composition 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-transfer-schema 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transform-type-merging 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/types 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/urql-exchange 0.100.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/utils 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/json-schema 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/mysql 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/neo4j 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/openapi 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/raml 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/soap 0.101.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/sqlite 0.3.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@omnigraph/thrift 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-deduplicate-request 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-hive 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/hmac-upstream-signature 0.0.3-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-http-cache 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-http-details-extensions 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-jwt-auth 0.0.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-live-query 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-mock 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-newrelic 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-operation-field-permissions 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-operation-headers 0.3.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-prometheus 0.102.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-rate-limit 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-response-cache 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-snapshot 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/plugin-statsd 0.99.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/serve-cli 0.8.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/serve-runtime 0.5.5-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-common 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-http 0.3.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-http-callback 0.0.3-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-mysql 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-neo4j 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-rest 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-soap 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-sqlite 0.3.6-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-thrift 0.4.4-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎
@graphql-mesh/transport-ws 0.0.3-alpha-20240725143321-74de3b2609682b7d17255f7f721b554a22c7a2f9 npm ↗︎ unpkg ↗︎

Copy link
Contributor

github-actions bot commented Jul 23, 2024

💻 Website Preview

The latest changes are available as preview in: https://26e06fd0.graphql-mesh.pages.dev

Copy link
Contributor

github-actions bot commented Jul 23, 2024

Published images for this PR are available at:

ghcr.io/ardatan/mesh-serve:d9ce7eb

@ardatan ardatan force-pushed the master branch 4 times, most recently from 72ed5cd to fbf068b Compare July 24, 2024 12:25
@ardatan ardatan changed the title feat(utils): add timestamp to log messages More verbose logging Jul 25, 2024
@ardatan ardatan force-pushed the timestamp-logger branch from e6b2a18 to 09954d6 Compare July 25, 2024 13:00
@ardatan ardatan requested review from dotansimha, enisdenjo, EmrysMyrddin, kamilkisiela and n1ru4l and removed request for enisdenjo July 25, 2024 13:32
@ardatan ardatan merged commit 597e790 into master Jul 25, 2024
26 checks passed
@ardatan ardatan deleted the timestamp-logger branch July 25, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants