这是indexloc提供的服务,不要输入任何密码
Skip to content

pass request_id as x-request-id header to action/remote schema #6654

@albttx

Description

@albttx

I'd like to be able to trace a full request from my frontend -> hasura -> api when i call an hasura action.

There is the x-request-id header for that.

If i set it on my frontend query, as it's specified the same x-request-id will be in hasura logs, but hasura don't send this header to my API.

But i receive a 2 tracing headers: X-Hasura-Traceid and X-Hasura-Spanid. unfortunately those id aren't logged in hasura log ouput.

On a action called, hasura forward all the http headers to the api

  • if i sent from my frontend a http header x-foobar-id: 42, my API will receive it.
  • if i sent from my frontend a http header x-request-id: 42, my API will NOT receive it.

Am i missing something ?!

Tested on v1.3.3 and on v2.0.0-alpha.4

Metadata

Metadata

Assignees

Labels

k/enhancementNew feature or improve an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions