Commit Graph

1531 Commits

Author SHA1 Message Date
Brandon Simmons
f0441a3d61 INFRA-833: OpenTelemetry exporter for metrics
I scratched out some changes to support this in the front end, mostly to test it easily,   maybe this can be used without much rework (validation seems to work correctly, but the tests need to be extended and probably fixed):

<img width="648" alt="fd" src="https://github.com/hasura/graphql-engine-mono/assets/68095256/e5873a90-ef83-43c3-9d54-cfc0a693baca">

-------

## Fake OTel collector for testing

ChatGPT spit this out, and it's what I used to test, if it's useful to others:

``` python
from flask import Flask, request
from opentelemetry.proto.collector.trace.v1.trace_service_pb2 import ExportTraceServiceRequest
from opentelemetry.proto.collector.metrics.v1.metrics_service_pb2 import ExportMetricsServiceRequest
import google.protobuf.json_format as json_format

app = Flask(__name__)

@app.route("/v1/traces", methods=["POST"])
def handle_traces():
    if request.method == 'POST':
        binary_trace = request.get_data()
        trace_request = ExportTraceServiceRequest()
        trace_request.ParseFromString(binary_trace)
        print("Received trace data:\n")
        print(json_format.MessageToJson(trace_request, indent=2, preserving_proto_field_name=True))
        return "Trace data received", 200

@app.route("/v1/metrics", methods=["POST"])
def handle_metrics():
    if request.method == 'POST':
        binary_metric = request.get_data()
        metric_request = ExportMetricsServiceRequest()
        metric_request.ParseFromString(binary_metric)
        print("Received metrics data:\n")
        print(json_format.MessageToJson(metric_request, indent=2, preserving_proto_field_name=True))
        return "Metrics data received", 200

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8080)
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9552
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Toan Nguyen  <1615675+hgiasac@users.noreply.github.com>
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: f340bfc5c135a7bb24735b524d015e05db422fd2
2023-07-26 05:22:17 +00:00
Rob Dominguez
8b0a4a117b docs: improve logical model and native queries docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9592
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 5825d652bf765c6e8845856971e766ca43f86433
2023-07-24 15:01:13 +00:00
Rob Dominguez
f2454b9854 docs: backport hotfix for nested sidebar rules
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9935
GitOrigin-RevId: c4390f818725af06fcf9c0e7eef1790da4b88268
2023-07-24 13:44:04 +00:00
Varun Choudhary
6b449fe7d3 docs: updated restified endpoints docs
This PR updates the docs on restified endpoints.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9867
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 94b9ea60352e2ba6b096ef2686b5bfd38ff53d41
2023-07-21 16:45:34 +00:00
Auke Booij
dad9a80dac server: null forwarding feature flag
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9861
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 46153d68adf1acc707dc451555055600b006629e
2023-07-21 15:12:32 +00:00
Rikin Kachhia
4c66d648c7 docs: add prettier
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9923
GitOrigin-RevId: 94038efe5768b63f38dfb447bc315ae5f7185c43
2023-07-21 12:52:40 +00:00
Rikin Kachhia
84cbb9e5e1 ci: update latest stable release as v2.30.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9904
GitOrigin-RevId: bc0301dcdd2fe0edd3f0cfc55331b9c46d359acf
2023-07-21 08:04:03 +00:00
Rob Dominguez
025785b876 docs: backport cloud badge for cli plugins
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9910
GitOrigin-RevId: abc3c2ac271183abf09c1b2c03723053319d7692
2023-07-20 18:01:32 +00:00
Rikin Kachhia
161569dd40 docs: refactor sidebar link
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9922
GitOrigin-RevId: 21a1a62b354ad7eac4fd0daaceb2a565bfc444ae
2023-07-20 12:48:27 +00:00
Shraddha Agrawal
9fea8ea5b9 docs: add instructions for adding a new connector in metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9870
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: f146037a7bc8b058559d6cb60e187ff2c397775d
2023-07-20 08:38:21 +00:00
Toan Nguyen
622af8c53e community: add a observability boilerplate folder
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9880
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 44b32ffaabce63a74e07f0654904b7c5f22e4b24
2023-07-19 17:51:31 +00:00
Sandeep Raj Kumar
47a2eaf686 Add hasura connector plugins docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9872
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 3095dc3f892001ccc053a592b4d4f1572773a4d7
2023-07-19 12:38:15 +00:00
Philip Lykke Carlsen
462abadb8c feat(SqlServer): Configuration option to disable the connection pool
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9834
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
GitOrigin-RevId: 6b7f8bd660ddda0cae3a5457267f5af4906ff65a
2023-07-18 18:41:10 +00:00
Rob Dominguez
58ce99e63a docs: augment existing pg note for metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9892
GitOrigin-RevId: d7219cb3ae8334a4418e437967926a26d6e169b5
2023-07-18 17:00:35 +00:00
Rob Dominguez
49659cd6ed docs: add ref from unauthenticated access docs to env var config
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9888
GitOrigin-RevId: a7274c3b78c76fd319ab9207866e8e62fcd43b30
2023-07-18 15:47:26 +00:00
Rob Dominguez
e05657a620 docs: add sched trigger recipe for review request email
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9837
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 4fc073589a50db37cdd02f6d0932d537c9cd7edc
2023-07-18 12:09:09 +00:00
Rikin Kachhia
a3f65df07f docs: move regression tests and query tags pages
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9857
GitOrigin-RevId: 5d7db0b77ef7a587e136576e251933679725db3b
2023-07-18 11:38:33 +00:00
Naveen Naidu
151a888289 docs: add input validation docs (#9734)
* docs: add input validation docs

* Optimised images with calibre/image-actions

* remove input validation feature from experimental flag

* Docs edits

* Docs edits

* Docs edits

* implement review comments

* Optimised images with calibre/image-actions

* Apply suggestions from code review

Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>

* fix brackets in request payload

* deduplicate data

* Update input-validations.mdx

* Update docs/docs/schema/postgres/data-validations.mdx

Co-authored-by: Tirumarai Selvan <tiru@hasura.io>

* Update input-validations.mdx

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <sean@hasura.io>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
GitOrigin-RevId: 5a36f61260c1a11f49f291ea6987192971d33239
2023-07-18 09:33:00 +00:00
hasura-bot
65316ee5b9 docs: update computed-fields.mdx
GITHUB_PR_NUMBER: 9774
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9774

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9860
Co-authored-by: Valentin Hervieu <2678610+ValentinH@users.noreply.github.com>
GitOrigin-RevId: 853c2a0265c6f5d724ec4aaa308c3df59d5527dd
2023-07-13 15:17:01 +00:00
Amit
4f8cc79355 Added MySQL and Oracle Dbs to the pricing table
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8726
GitOrigin-RevId: 209ecef5207465384747070a4a0cb34b1e7eebc4
2023-07-12 11:39:30 +00:00
Rob Dominguez
f6bff0bc28 docs: fix metadata api table styles
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9832
GitOrigin-RevId: d9d01bcb7bc694b59d69536c55efbdf070c7adfd
2023-07-12 09:40:39 +00:00
Varun Dey
c83897b82f Fix typo CLoud -> Cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9826
GitOrigin-RevId: b5e1a08357d3849e027dd4014a6b44b39ef9f6b3
2023-07-11 10:49:52 +00:00
Daniel Harvey
213f64c061 chore(server): add experiment feature flag to disable Postgres arrays in introspection
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9804
GitOrigin-RevId: eeb378153df070ffedcada6a91d3117a0a83dde9
2023-07-10 11:17:10 +00:00
Rob Dominguez
e4ebbbccd7 docs: add notes for input coercion on Actions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9771
GitOrigin-RevId: e243c1c5fac8655f40c2f319c3a29a519c5b37ca
2023-07-10 10:43:02 +00:00
Rob Dominguez
8472732104 docs: add refs for ee overview sections
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9810
GitOrigin-RevId: 7a0b6ebe855b176edf69412de4bad35dc31e0cba
2023-07-07 16:17:32 +00:00
Toan Nguyen
a16c3e72e1 docs: add the hasurahq dashboards link on grafana cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9807
GitOrigin-RevId: 539d15d1e9a382dde0719168a4ab533a06c39c72
2023-07-07 15:04:31 +00:00
Tirumarai Selvan
f145de2bb9 add tip for public data and session variables
add tip for public data and session variables in docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9784
GitOrigin-RevId: 5d8670ee3b506d9141b96c1d894fbb1dffa20db7
2023-07-07 14:12:52 +00:00
Daniel Chambers
9cbd29a987 docs: Stop saying native queries is EE/Cloud only
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9796
GitOrigin-RevId: 84d5c4e4658151e060bdb3c1b227fc3467a8f50d
2023-07-07 10:58:58 +00:00
Varun Choudhary
d6cb5bff4a docs: docs for export OAS from restified endpoint
This PR adds docs for the new console feature to download the OAS from the testified end point.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9740
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 8a0ea766a5199d1689db330d720312407fa8a5d7
2023-07-06 06:48:51 +00:00
Rikin Kachhia
e41be0a2d3 ci: update latest stable release as v2.29.0
Blocker: Data connector still needs to be published

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9775
GitOrigin-RevId: 93ec6478932f016a3a1c10b656218fecb00fb864
2023-07-05 18:40:06 +00:00
Tirumarai Selvan
281a6b45c9 Add max connections to production checklist
Adds a section on configuring max_connections to production checklist docs: https://hasura.io/docs/latest/deployment/production-checklist/

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9776
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 6481e760f46fc2d958728aad0c1248982660fde5
2023-07-05 15:21:50 +00:00
Toan Nguyen
31af5d6ab8 docs: EE console SSO troubleshooting and improvements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9685
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: f0e5f538b652bff0deee7a15eb5b68d991c28639
2023-07-05 14:20:22 +00:00
Rob Dominguez
147839079f docs: fix sidebar theme when starting with dark
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9772
GitOrigin-RevId: ed078792e92911157b9ef53ed1c6d7a4c3bb95b0
2023-07-05 14:02:45 +00:00
Philip Lykke Carlsen
fdcd4748a6 docs: Document support for prepared statements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9741
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 2fea0a00ec39d75dbbffb16c3fefae7dba57e815
2023-07-05 10:51:19 +00:00
paritosh-08
ab735a3a2c docs: add note for cloud users in auth-hook caching
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9653
GitOrigin-RevId: ca61d3bdf42ac7b93521d320df787a1d47121d11
2023-07-03 10:08:29 +00:00
hasura-bot
fd5b61cda6 docs: fix sample-apps URLs
GITHUB_PR_NUMBER: 9742
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9742

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9725
Co-authored-by: LW <5601392+llllvvuu@users.noreply.github.com>
GitOrigin-RevId: 9f16b267e190c44bc17e77ca4db714d3aba4df47
2023-06-30 13:48:19 +00:00
Tirumarai Selvan
b576d0f483 Docs: change flow in caching docs
Minor changes to make it easier to grok "How it works" in Caching

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9692
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 5e9808d81706cb6ba2d68248e7fd5d80d035f609
2023-06-29 05:15:15 +00:00
Tirumarai Selvan
f0a627061f improve description for retry in pool settings
fixes https://hasurahq.atlassian.net/browse/NDAT-749

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9706
GitOrigin-RevId: c94d3e152efdef15fe4e973a7aa8904db7468613
2023-06-28 16:25:23 +00:00
Sean Park-Ross
308ad0cf64 Docs: Add link to homepage on docs 404
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9695
GitOrigin-RevId: 1333da8b15a1ec9714ee20bbad641c02dfad22ef
2023-06-28 14:35:40 +00:00
Tirumarai Selvan
7ef547e1f4 change traffic golden signal in event trigger observability
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9350
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: d1f0b7684b5d758b7e3e3beb70dfc387cdcde792
2023-06-28 08:53:46 +00:00
Daniel Harvey
8e6ec8b60d feat(server): native Postgres array support
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9673
GitOrigin-RevId: 2dfbc07acf9da879910acfc9885bb7138b81e883
2023-06-28 08:47:59 +00:00
Rikin Kachhia
a36d6963bf docs: restructure cloud section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9672
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 16a90fb86885532bf63925766a492139d1dbab12
2023-06-26 17:42:00 +00:00
Sean Park-Ross
b53f1d7406 docs: restructure observability, security & caching sections
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9554
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: d14c65920049a0cc39ddc9488af34fc3d6b67467
2023-06-26 17:28:02 +00:00
Rob Dominguez
3b16bcb3ab docs: add anchor tag for views permissions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9671
GitOrigin-RevId: ee658e4492e83ead56a637745cac745df6cd65cb
2023-06-26 16:44:59 +00:00
Matthew Goodwin
8267e88ac9 docs: add console examples for stored procedure docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9662
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 9515b6f85c603441b2098e6d603541d6f8f44dae
2023-06-26 16:35:21 +00:00
Rob Dominguez
2138caab8b docs: add pointer component for contributions
[DOCS-904]: https://hasurahq.atlassian.net/browse/DOCS-904?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9658
GitOrigin-RevId: 8b6d8748f406a1c35b4c37ab3fca1467c1f15bc2
2023-06-26 07:32:34 +00:00
Rob Dominguez
60d0b4b016 docs: backport hotfix for auto-apply-migrations
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9663
GitOrigin-RevId: 293145e011f6ac518c8acedf293e7db35455e56f
2023-06-26 07:26:48 +00:00
Gil Mizrahi
653106087c mssql isolation level option
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9626
GitOrigin-RevId: 43861a982afadd9fdefb7d8996999e051e751222
2023-06-23 15:21:03 +00:00
Rob Dominguez
e7983e268a docs: clarify joins for Actions and other sources
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9607
GitOrigin-RevId: 210a82300040594a85da35e2f045099c429b394d
2023-06-23 14:27:14 +00:00
Rob Dominguez
017d3a6ec3 docs: add information to configure Dockerfile for CLI Migrations
[DOCS-1027]: https://hasurahq.atlassian.net/browse/DOCS-1027?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9600
GitOrigin-RevId: 95f55a650eff05dfe6ad2998ab37c2b879126ba2
2023-06-23 14:21:49 +00:00